Stuffed Mamba: Oversized States Lead to the Inability to Forget
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
Recent advancements in recurrent architectures, such as Mamba and RWKV, have showcased strong language capabilities. Unlike transformer-based models, these architectures encode all contextual information into a fixed-size state, leading to great inference efficiency. However, this approach can cause information interference, where different token data conflicts, resulting in performance degradation and incoherent outputs beyond a certain context length. To prevent this, most RNNs incorporate mechanisms designed to "forget" earlier tokens. In this paper, we reveal that Mamba-based models struggle to effectively forget earlier tokens even with built-in forgetting mechanisms. We demonstrate that this issue stems from training on contexts that are too short for the state size, enabling the model to perform well without needing to learn how to forget. Then, we show that the minimum training length required for the model to learn forgetting scales linearly with the state size, and the maximum context length for accurate retrieval of a 5-digit passkey scales exponentially with the state size, indicating that the model retains some information beyond the point where forgetting begins. These findings highlight a critical limitation in current RNN architectures and provide valuable insights for improving long-context modeling. Our work suggests that future RNN designs must account for the interplay between state size, training length, and forgetting mechanisms to achieve robust performance in long-context tasks.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 32 of its 41 references that are in the map. First posted on arXiv 9 Oct 2024.
Builds on
32 of 41 references.
Closest ancestors · 7
Same direction, newest first
- 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba20 Jun
- 2024An Empirical Study of Mamba-based Language Models12 Jun
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks6 Feb
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
Other references · 25
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
13 more
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
- 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 266
- 2025TTT3R: 3D Reconstruction as Test-Time Trainingcited by 122
- 2026Hybrid Linear Attention Done Right: Efficient Distillation and Effective Architectures for Extremely Long Contextscited by 16
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
- 2025StateX: Enhancing RNN Recall via Post-training State Expansioncited by 1
- 2026Probing Length Generalization in Mamba via Image Reconstructioncited by 0
- 2026SurgicalMamba: Dual-Path SSD with State Regramming for Online Surgical Phase Recognitioncited by 0
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026SurgicalMamba: Dual-Path SSD with State Regramming for Online Surgical Phase Recognition14 May 2026
- 2026Probing Length Generalization in Mamba via Image Reconstruction12 Mar 2026
- 2026Hybrid Linear Attention Done Right: Efficient Distillation and Effective Architectures for Extremely Long Contexts29 Jan 2026
- 2025TTT3R: 3D Reconstruction as Test-Time Training30 Sep 2025
- 2025StateX: Enhancing RNN Recall via Post-training State Expansion26 Sep 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025MemMamba: Rethinking Memory Patterns in State Space Model
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement
- 2025Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of View
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modeling
- 2024Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Models
- 2025Characterizing Mamba's Selective Memory using Auto-Encoders
- 2025Overflow Prevention Enhances Long-Context Recurrent LLMs
- 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modeling