Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacity
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
State-Space Models (SSMs), and particularly Mamba, have recently emerged as a promising alternative to Transformers. Mamba introduces input selectivity to its SSM layer (S6) and incorporates convolution and gating into its block definition. While these modifications do improve Mamba's performance over its SSM predecessors, it remains largely unclear how Mamba leverages the additional functionalities provided by input selectivity, and how these interact with the other operations in the Mamba architecture. In this work, we demystify the role of input selectivity in Mamba, investigating its impact on function approximation power, long-term memorization, and associative recall capabilities. In particular: (i) we prove that the S6 layer of Mamba can represent projections onto Haar wavelets, providing an edge over its Diagonal SSM (S4D) predecessor in approximating discontinuous functions commonly arising in practice; (ii) we show how the S6 layer can dynamically counteract memory decay; (iii) we provide analytical solutions to the MQAR associative recall task using the Mamba architecture with different mixers -- Mamba, Mamba-2, and S4D. We demonstrate the tightness of our theoretical constructions with empirical results on concrete tasks. Our findings offer a mechanistic understanding of Mamba and reveal opportunities for improvement.
Key facts. Cited by 7 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 20 of its 33 references that are in the map. First posted on arXiv 13 Jun 2025.
Builds on
20 of 33 references.
Closest ancestors · 6
Same direction, newest first
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues19 Nov
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 2024Theoretical Foundations of Deep Selective State-Space Models29 Feb
- 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 14
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2024The Illusion of State in State-Space Modelscited by 187
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2024Theoretical limitations of multi-layer Transformercited by 45
- 2023Universality of Linear Recurrences Followed by Non-linear Projections: Finite-Width Guarantees and Benefits of Complex Eigenvaluescited by 36
- 2024One-layer transformers fail to solve the induction heads taskcited by 32
- 2021Pointer Value Retrieval: A new benchmark for understanding the limits of neural network generalizationcited by 29
2 more
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2025ParaRNN: Unlocking Parallel Training of Nonlinear RNNs for Large Language Modelscited by 15
- 2026A Theoretical Analysis of Mamba's Training Dynamics: Filtering Relevant Features for Generalization in State Space Modelscited by 3
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projectionscited by 1
- 2026On the Recall Scaling Laws in Mamba: A Theoretical and Mechanistic Study via Hashingcited by 1
- 2026Sessa: Selective State Space Attentioncited by 0
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Modelscited by 0
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learningcited by 0
- 2026A Comparative Analysis of Attention versus State-Space Models for In-Context Learning26 Sep 2026
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models15 Sep 2026
- 2026On the Recall Scaling Laws in Mamba: A Theoretical and Mechanistic Study via Hashing7 Sep 2026
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
- 2026Sessa: Selective State Space Attention20 Apr 2026
- 2026A Theoretical Analysis of Mamba's Training Dynamics: Filtering Relevant Features for Generalization in State Space Models13 Feb 2026
- 2025ParaRNN: Unlocking Parallel Training of Nonlinear RNNs for Large Language Models24 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modeling
- 2024Mimetic Initialization Helps State Space Models Learn to Recall
- 2024The Hidden Attention of Mamba Models
- 2025Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of View
- 2025Achilles' Heel of Mamba: Essential difficulties of the Mamba architecture demonstrated by synthetic data
- 2024An Empirical Study of Mamba-based Language Models
- 2025Block-Biased Mamba for Long-Range Sequence Processing
- 2025MemMamba: Rethinking Memory Patterns in State Space Model