2025-02-20 · 专家 · 自然语言处理 · 机器学习

MoM: Linear Sequence Modeling with Mixture-of-Memories

本文提出了一种名为MoM(混合记忆)的新型线性序列建模架构,通过利用多个独立的记忆状态来增强记忆容量并消除记忆干扰,从而在召回密集型任务上显著提升性能。

更新于 2025-10-17。作者:Jusen Du、Weigao Sun、Disen Lan、Jiaxi Hu、Yu Cheng。

中文摘要

线性序列建模方法,如线性注意力、状态空间建模和线性循环神经网络(RNNs),通过减少训练和推理的复杂性,提供了显著的效率提升。然而,这些方法通常将整个输入序列压缩成一个单一的固定大小的内存状态,这在召回密集型下游任务上的表现并不理想。受到神经科学灵感的启发,尤其是大脑在减轻“记忆干扰”的同时维持稳健的长时记忆的能力,我们引入了一种新颖的架构,称为混合记忆(MoM)。MoM利用多个独立的内存状态,并通过路由网络将输入标记引导到特定的内存状态。这种方法极大地增强了整体内存容量,同时最小化了内存干扰。因此,MoM在召回密集型任务上的表现尤为出色,超越了现有的线性序列建模技术。尽管MoM包含了多个内存状态,但每个内存状态的计算复杂度仍然是线性的,这使得MoM在训练过程中保持了线性复杂度的优势,在推理过程中则保持常数复杂度。我们的实验结果表明,MoM在下游语言任务,特别是召回密集型任务上,显著优于当前的线性序列模型,甚至达到了与Transformer模型相当的性能。代码已发布在https://github.com/OpenSparseLLMs/MoM,并作为https://github.com/OpenSparseLLMs/Linear-MoE的一部分发布。

英文摘要

Linear sequence modeling methods, such as linear attention, state space modeling, and linear RNNs, offer significant efficiency improvements by reducing the complexity of training and inference. However, these methods typically compress the entire input sequence into a single fixed-size memory state, which leads to suboptimal performance on recall-intensive downstream tasks. Drawing inspiration from neuroscience, particularly the brain's ability to maintain robust long-term memory while mitigating "memory interference", we introduce a novel architecture called Mixture-of-Memories (MoM). MoM utilizes multiple independent memory states, with a router network directing input tokens to specific memory states. This approach greatly enhances the overall memory capacity while minimizing memory interference. As a result, MoM performs exceptionally well on recall-intensive tasks, surpassing existing linear sequence modeling techniques. Despite incorporating multiple memory states, the computation of each memory state remains linear in complexity, allowing MoM to retain the linear-complexity advantage during training, while constant-complexity during inference. Our experimental results show that MoM significantly outperforms current linear sequence models on downstream language tasks, particularly recall-intensive tasks, and even achieves performance comparable to Transformer models. The code is released at https://github.com/OpenSparseLLMs/MoM and is also released as a part of https://github.com/OpenSparseLLMs/Linear-MoE.

解读

一句话总结

本文提出了一种名为MoM(混合记忆)的新型线性序列建模架构,通过利用多个独立的记忆状态来增强记忆容量并消除记忆干扰,从而在召回密集型任务上显著提升性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt