MoM: Linear Sequence Modeling with Mixture-of-Memories
🤗 Upvotes: 22 | cs.CL, cs.AI, cs.LG
Authors:
Jusen Du, Weigao Sun, Disen Lan, Jiaxi Hu, Yu Cheng
Title:
MoM: Linear Sequence Modeling with Mixture-of-Memories
Arxiv:
http://arxiv.org/abs/2502.13685v1
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 https://github.com/OpenSparseLLMs/MoM and is also released as a part of https://github.com/OpenSparseLLMs/Linear-MoE.
You May Also Like
Discovery
BBC World Service

Vida Eterna. Respuestas desde la Ciencia | Dr. Manuel Sans Segarra
Dr. Manuel Sans Segarra

The Grave Talks | Haunted, Paranormal & Supernatural
Ghost Stores, Haunted, Paranormal & Supernatural Stories

Real Ghost Stories Online
Real Ghost Stories Online | Paranormal, Supernatural & Horror Radio

The Dissenter
Ricardo Lopes

The Birding Life Podcast Network
The Birding Life Podcast Network

Geopop - Le Scienze nella vita di tutti i giorni
Geopop

Hidden Brain
Hidden Brain, Shankar Vedantam

Глобальный доступ на рынок медицинских изделий
Pure Global

Accès au Marché Mondial des Dispositifs Médicaux
Pure Global
Community discussion