mlsanityData to 14 Oct 2026

Revealing and Mitigating the Local Pattern Shortcuts of Mamba

arXiv 2410.15678 ↗First posted 21 Oct 2024cs.CL cs.AIcited by 3

On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language

Abstract (arXiv)

Large language models (LLMs) have advanced significantly due to the attention mechanism, but their quadratic complexity and linear memory demands limit their performance on long-context tasks. Recently, researchers introduced Mamba, an advanced model built upon State Space Models(SSMs) that offers linear complexity and constant memory. Although Mamba is reported to match or surpass the performance of attention-based models, our analysis reveals a performance gap: Mamba excels in tasks that involve localized key information but faces challenges with tasks that require handling distributed key information. Our controlled experiments suggest that this inconsistency arises from Mamba's reliance on local pattern shortcuts, which enable the model to remember local key information within its limited memory but hinder its ability to retain more dispersed information. Therefore, we introduce a global selection module into the Mamba model to address this issue. Experiments on both existing and proposed synthetic tasks, as well as real-world tasks, demonstrate the effectiveness of our method. Notably, with the introduction of only 4M extra parameters, our approach enables the Mamba model(130M) to achieve a significant improvement on tasks with distributed information, increasing its performance from 0 to 80.54 points.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 37 of its 52 references that are in the map. First posted on arXiv 21 Oct 2024.

Builds on

37 of 52 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024Mimetic Initialization Helps State Space Models Learn to Recall14 Oct
  2. 2024Just read twice: closing the recall gap for recurrent language models7 Jul
  3. 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba20 Jun
  4. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  5. 2024The Hidden Attention of Mamba Models3 Mar
  6. 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
  7. 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks6 Feb
  8. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  9. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
  10. 2022Simplified State Space Layers for Sequence Modeling9 Aug
  11. 2022Diagonal State Spaces are as Effective as Structured State Spaces27 Mar

Other references · 26

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  5. 2016Pointer Sentinel Mixture Modelscited by 3,096
  6. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  7. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  8. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  9. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  10. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  11. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  12. 2022In-context Learning and Induction Headscited by 964
14 more
  1. 2014Neural Turing Machinescited by 644
  2. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
  3. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
  4. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  5. 2015Unitary Evolution Recurrent Neural Networkscited by 294
  6. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
  7. 2022Mega: Moving Average Equipped Gated Attentioncited by 179
  8. 2016Using Fast Weights to Attend to the Recent Pastcited by 170
  9. 2017Searching for Activation Functionscited by 169
  10. 2023Never Train from Scratch: Fair Comparison of Long-Sequence Models Requires Data-Driven Priorscited by 34
  11. 2017Gated Orthogonal Recurrent Units: On Learning to Forgetcited by 31
  12. 2023StableSSM: Alleviating the Curse of Memory in State-space Models through Stable Reparameterizationcited by 30
  13. 2016Fast Wavenet Generation Algorithmcited by 14
  14. 2017Learning to update Auto-associative Memory in Recurrent Neural Networks for Improving Sequence Memorizationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024An Empirical Study of Mamba-based Language Models
  2. 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement
  3. 2026Mamba-3: Improved Sequence Modeling using State Space Principles
  4. 2025MemMamba: Rethinking Memory Patterns in State Space Model
  5. 2024Bi-Mamba: Towards Accurate 1-Bit State Space Models
  6. 2025Controllability Analysis of State Space-based Language Model
  7. 2025Characterizing Mamba's Selective Memory using Auto-Encoders
  8. 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modeling