Paper Reading AI Learner

MoM: Linear Sequence Modeling with Mixture-of-Memories

2025-02-19 12:53:55
Jusen Du, Weigao Sun, Disen Lan, Jiaxi Hu, Yu Cheng

Abstract

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 this https URL and is also released as a part of this https URL.

Abstract (translated)

线性序列建模方法,如线性注意、状态空间模型和线性RNNs,通过减少训练和推理的复杂度提供了显著的效率提升。然而,这些方法通常会将整个输入序列压缩到单一固定大小的记忆状态中,这在需要大量回忆能力的任务上会导致次优性能。受到神经科学的启发,特别是大脑能够在保持强大的长期记忆的同时减轻“记忆干扰”的能力,我们引入了一种新的架构叫做混合内存(MoM)。MoM利用多个独立的记忆状态,并且一个路由器网络负责将输入令牌导向特定的记忆状态。这种做法极大地提高了整体记忆力容量,同时最小化了记忆之间的干扰。因此,MoM在需要大量回忆任务上表现出色,超越现有的线性序列建模技术。 尽管采用了多内存状态,但每个内存状态的计算复杂度仍然保持为线性,在训练时保留了线性复杂度的优势,并且在推理中维持恒定复杂度。我们的实验结果表明,MoM在线下语言任务特别是需要大量回忆的任务上显著优于当前的线性序列模型,并且甚至实现了与Transformer模型相当的表现。 代码可在以下链接找到:[请在此处插入具体URL],并且也是这个项目的组成部分之一:[请在此处插入具体URL]。

URL

https://arxiv.org/abs/2502.13685

PDF

https://arxiv.org/pdf/2502.13685.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot