mlsanityData to 7 Oct 2026

On the Recall Scaling Laws in Mamba: A Theoretical and Mechanistic Study via Hashing

arXiv 2609.07681 ↗First posted 7 Sep 2026cs.LG cs.CLcited by 1

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

Abstract (arXiv)

Associative Recall (AR) is the cognitive ability to learn and retrieve links between items in memory. In NLP, AR is used as a benchmark for evaluating the in-context memory capacity of architectures such as Mamba, and has been found to strongly correlate with language modeling performance. This paper explores AR from the perspective of mechanistic interpretability, aiming to reverse-engineer the exact internal algorithm used by Mamba to perform recall. Our key insight is that Mamba performs recall by implicitly learning linear hash functions, and we identify the low-level circuit that enables this behavior. Building on these findings and inspired by theoretical tools in similarity-preserving hashing, such as the Johnson-Lindenstrauss lemma, we develop a theoretical framework for analyzing AR, which we term Recall Scaling Laws. Given the vocabulary size and the number of facts in context, this framework allows us to (1) predict the embedding and state dimensions required for Mamba to achieve perfect recall, (2) predict recall success probability given the model dimensions, and (3) analyze multi-layer models and multi-head SSM patterns. Empirical results show that our theoretical findings are accurate and predictive, offering insights into how AR capacity scales with vocabulary, state, embedding size, and architecture.

Key facts. Cited by 1 paper 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 25 of its 50 references that are in the map. First posted on arXiv 7 Sep 2026.

Builds on

25 of 50 references.

Closest ancestors · 13

Same direction, newest first

  1. 2025Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacity13 Jun
  2. 2025Mechanistic evaluation of Transformers and state space models21 May
  3. 2025Overflow Prevention Enhances Long-Context Recurrent LLMs12 May
  4. 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargement22 Apr
  5. 2025On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approach4 Feb
  6. 2024Mimetic Initialization Helps State Space Models Learn to Recall14 Oct
  7. 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba20 Jun
  8. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  9. 2024Simple linear attention language models balance the recall-throughput tradeoff28 Feb
  10. 2024BlackMamba: Mixture of Experts for State-Space Models1 Feb
  11. 2024MambaByte: Token-free Selective State Space Model24 Jan
  12. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
1 more
  1. 2022Simplified State Space Layers for Sequence Modeling9 Aug

Other references · 12

  1. 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,051
  2. 2024VMamba: Visual State Space Modelcited by 955
  3. 2022In-context Learning and Induction Headscited by 930
  4. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  5. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  6. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
  7. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
  8. 2024Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spacescited by 132
  9. 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
  10. 2025Overclocking LLM Reasoning: Monitoring and Controlling Thinking Path Lengths in LLMscited by 22
  11. 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
  12. 2025Quantifying Memory Utilization with Effective State-Sizecited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Revisiting associative recall in modern recurrent models
  2. 2025MemMamba: Rethinking Memory Patterns in State Space Model
  3. 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modeling
  4. 2025Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of View
  5. 2024Stuffed Mamba: Oversized States Lead to the Inability to Forget
  6. 2026Echo: KV-Cache-Free Associative Recall with Spectral Koopman Operators
  7. 2026Memory by Design: Probabilistic Sequence Layers
  8. 2025MoM: Linear Sequence Modeling with Mixture-of-Memories