MoME:用于上下文感知稀疏查找的记忆嵌入混合
研究论文 · 2026/09/21
MoME(Mixture-of-Memory Embeddings)是一种上下文感知的记忆机制,它将每个token的单一记忆行替换为M个槽位的混合,并使用基于隐藏状态的学习门控在每个位置选择读取哪些槽位。在nanochat、Llama-3/MobileLLM和Qwen3骨干网络的受控预训练实验中,MoME在等参数和等训练FLOP设置下优于Value Embedding、Bigram和STEM基线,在亚十亿规模下展现出更有前景的记忆规模扩展趋势,并在训练和推理中保持高效。对多义词的定性路由分析进一步表明,学习到的混合具有一定程度的语义可解释性,能够将同一表面token在不同含义下分配到不同的记忆槽位。
该工作提出了一种上下文感知的稀疏查找机制,在多个骨干网络上验证了其有效性,并展示了语义可解释性,对高效扩展语言模型和提升多义词处理能力具有参考价值。
Scaling large language models efficiently has motivated sparse capacity mechanisms such as Mixture-of-Experts and, more recently, conditional memory: token-indexed embedding tables that augment the backbone with cheap parametric lookups. Existing memory-embedding methods retrieve via a deterministic function of the surface form, which collapses different contextual senses of the same token (e.g., python the language vs. the animal) into a single fixed entry. We introduce Mixture of Memory Embeddings (MoME), a context-aware memory mechanism that replaces each token's single memory row with a mixture of M slots and uses a learned gate over the hidden state to choose which slots to read at each position. In controlled pretraining experiments across nanochat, Llama-3/MobileLLM, and Qwen3 backbones, MoME improves over Value Embedding, Bigram, and STEM baselines in iso-parameter and iso-training-FLOP settings, shows a more promising memory-size scaling trend at sub-billion scale, and remains efficient in training and inference. Qualitative routing analyses on polysemous tokens further suggest that the learned mixture exhibits a degree of semantic interpretability, dispatching the same surface token to distinct memory slots under different senses.