mlsanityData to 14 Oct 2026

Mamba Modulation: On the Length Generalization of Mamba

arXiv 2509.19633 ↗First posted 23 Sep 2025cs.LG cs.AI stat.MLcited by 16

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

Abstract (arXiv)

The quadratic complexity of the attention mechanism in Transformer models has motivated the development of alternative architectures with sub-quadratic scaling, such as state-space models. Among these, Mamba has emerged as a leading architecture, achieving state-of-the-art results across a range of language modeling tasks. However, Mamba's performance significantly deteriorates when applied to contexts longer than those seen during pre-training, revealing a sharp sensitivity to context length extension. Through detailed analysis, we attribute this limitation to the out-of-distribution behaviour of its state-space dynamics, particularly within the parameterization of the state transition matrix A. Unlike recent works which attribute this sensitivity to the vanished accumulation of discretization time steps, exp(-sumt=1NDeltat), we establish a connection between state convergence behavior as the input length approaches infinity and the spectrum of the transition matrix A, offering a well-founded explanation of its role in length extension. Next, to overcome this challenge, we propose an approach that applies spectrum scaling to pre-trained Mamba models to enable robust long-context generalization by selectively modulating the spectrum of A matrices in each layer. We show that this can significantly improve performance in settings where simply modulating Deltat fails, validating our insights and providing avenues for better length generalization of state-space models with structured transition matrices.

Key facts. Cited by 16 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 112 of its 148 references that are in the map. First posted on arXiv 23 Sep 2025.

Builds on

112 of 148 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement22 Apr
  2. 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues19 Nov
  3. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Models27 Aug
  4. 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba20 Jun
  5. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  6. 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks6 Feb
  7. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  8. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
  9. 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct

Other references · 103

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  6. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  7. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  8. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  9. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  10. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  11. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
  12. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
38 more
  1. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  2. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2016Pointer Sentinel Mixture Modelscited by 3,096
  6. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  7. 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
  8. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  9. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  10. 2022Emergent Abilities of Large Language Modelscited by 2,512
  11. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  12. 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,200
  13. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  14. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  15. 2019Language Models as Knowledge Bases?cited by 1,936
  16. 2025Gemma 3 Technical Reportcited by 1,824
  17. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  18. 2020Reformer: The Efficient Transformercited by 1,668
  19. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  20. 2020Rethinking Attention with Performerscited by 1,601
  21. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  22. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  23. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  24. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  25. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  26. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  27. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  28. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
  29. 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
  30. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
  31. 2020Efficient Transformers: A Surveycited by 790
  32. 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 748
  33. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  34. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
  35. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  36. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
  37. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  38. 2018Universal Transformerscited by 647

50 most cited of 103 All 103 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 15.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024A Survey of Mamba
  2. 2024An Empirical Study of Mamba-based Language Models
  3. 2024Sparse Mamba: Introducing Controllability, Observability, And Stability To Structural State Space Models
  4. 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Model
  5. 2025Block-Biased Mamba for Long-Range Sequence Processing
  6. 2024Speech-Mamba: Long-Context Speech Recognition with Selective State Spaces Models
  7. 2025Differential Mamba
  8. 2025From Markov to Laplace: How Mamba In-Context Learns Markov Chains