Mamba Modulation: On the Length Generalization of Mamba
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
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement22 Apr
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues19 Nov
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Models27 Aug
- 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba20 Jun
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 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
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 103
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
38 more
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,200
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2025Gemma 3 Technical Reportcited by 1,824
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2020Efficient Transformers: A Surveycited by 790
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 748
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2018Universal Transformerscited by 647
50 most cited of 103 All 103 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 15.
16 papers.
Sort:
By area:
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 9
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 6
- 2026On the Spatiotemporal Dynamics of Generalization in Neural Networkscited by 3
- 2026CLIMP: Contrastive Language-Image Mamba Pretrainingcited by 1
- 2025Mamba-driven multi-perspective structural understanding for molecular ground-state conformation predictioncited by 0
- 2026Probing Length Generalization in Mamba via Image Reconstructioncited by 0
- 2026How Many Different Outputs Can a Transformer Generate?cited by 0
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Testcited by 0
- 2026Mutual Modality Trust with Lightweight Reconstruction Regularization for Fine-grained Tire Pattern Recognitioncited by 0
- 2026SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterizationcited by 0
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Modelscited by 0
- 2026ARM: Attention with Routed-Memory for Learnable Sparse Controlcited by 0
4 more
- 2026History Replays Itself: Unleashing Long-Context Capability in Linear Attention11 Oct 2026
- 2026Understanding Mamba-3 Through Oscillatory Dynamics9 Oct 2026
- 2026Length Generalization Needs Proper Regularization3 Oct 2026
- 2026Fractional State Space Transition for Long Sequence Modeling28 Sep 2026
- 2026ARM: Attention with Routed-Memory for Learnable Sparse Control21 Sep 2026
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models15 Sep 2026
- 2026SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterization13 Sep 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Mutual Modality Trust with Lightweight Reconstruction Regularization for Fine-grained Tire Pattern Recognition27 Jul 2026
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Test30 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026Probing Length Generalization in Mamba via Image Reconstruction12 Mar 2026
4 more
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agent2 Feb 2026
- 2026On the Spatiotemporal Dynamics of Generalization in Neural Networks2 Feb 2026
- 2026CLIMP: Contrastive Language-Image Mamba Pretraining11 Jan 2026
- 2025Mamba-driven multi-perspective structural understanding for molecular ground-state conformation prediction10 Nov 2025
- 2026CLIMP: Contrastive Language-Image Mamba Pretrainingcited by 1
- 2025Mamba-driven multi-perspective structural understanding for molecular ground-state conformation predictioncited by 0
- 2026Probing Length Generalization in Mamba via Image Reconstructioncited by 0
- 2026Understanding Mamba-3 Through Oscillatory Dynamicscited by 0
- 2026Understanding Mamba-3 Through Oscillatory Dynamics9 Oct 2026
- 2026Probing Length Generalization in Mamba via Image Reconstruction12 Mar 2026
- 2026CLIMP: Contrastive Language-Image Mamba Pretraining11 Jan 2026
- 2025Mamba-driven multi-perspective structural understanding for molecular ground-state conformation prediction10 Nov 2025
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 9
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 6
- 2026On the Spatiotemporal Dynamics of Generalization in Neural Networkscited by 3
- 2026How Many Different Outputs Can a Transformer Generate?cited by 0
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Testcited by 0
- 2026Mutual Modality Trust with Lightweight Reconstruction Regularization for Fine-grained Tire Pattern Recognitioncited by 0
- 2026SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterizationcited by 0
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Modelscited by 0
- 2026ARM: Attention with Routed-Memory for Learnable Sparse Controlcited by 0
- 2026Fractional State Space Transition for Long Sequence Modelingcited by 0
- 2026Length Generalization Needs Proper Regularizationcited by 0
- 2026History Replays Itself: Unleashing Long-Context Capability in Linear Attentioncited by 0
- 2026History Replays Itself: Unleashing Long-Context Capability in Linear Attention11 Oct 2026
- 2026Length Generalization Needs Proper Regularization3 Oct 2026
- 2026Fractional State Space Transition for Long Sequence Modeling28 Sep 2026
- 2026ARM: Attention with Routed-Memory for Learnable Sparse Control21 Sep 2026
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models15 Sep 2026
- 2026SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterization13 Sep 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Mutual Modality Trust with Lightweight Reconstruction Regularization for Fine-grained Tire Pattern Recognition27 Jul 2026
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Test30 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agent2 Feb 2026
- 2026On the Spatiotemporal Dynamics of Generalization in Neural Networks2 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2024A Survey of Mamba
- 2024An Empirical Study of Mamba-based Language Models
- 2024Sparse Mamba: Introducing Controllability, Observability, And Stability To Structural State Space Models
- 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Model
- 2025Block-Biased Mamba for Long-Range Sequence Processing
- 2024Speech-Mamba: Long-Context Speech Recognition with Selective State Spaces Models
- 2025Differential Mamba
- 2025From Markov to Laplace: How Mamba In-Context Learns Markov Chains