mlsanityData to 7 Oct 2026

Stuffed Mamba: Oversized States Lead to the Inability to Forget

arXiv 2410.07145 ↗First posted 9 Oct 2024cs.CL cs.AI cs.LGcited by 7

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

  1. 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba20 Jun
  2. 2024An Empirical Study of Mamba-based Language Models12 Jun
  3. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  4. 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
  5. 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks6 Feb
  6. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec

Other references · 25

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  5. 2019Root Mean Square Layer Normalizationcited by 1,425
  6. 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
  7. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  8. 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
  9. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  10. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  11. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
  12. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
13 more
  1. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  2. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  3. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  4. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
  5. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
  6. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
  7. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
  8. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  9. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
  10. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
  11. 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
  12. 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
  13. 2023Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encodingcited by 32

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 4.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025MemMamba: Rethinking Memory Patterns in State Space Model
  2. 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement
  3. 2025Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of View
  4. 2024ReMamba: Equip Mamba with Effective Long-Sequence Modeling
  5. 2024Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Models
  6. 2025Characterizing Mamba's Selective Memory using Auto-Encoders
  7. 2025Overflow Prevention Enhances Long-Context Recurrent LLMs
  8. 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modeling