scimeatlas

Research map / Architectures and efficiency / Attention and transformers

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

Yuval Koren, Assaf Ben-Kish, Raja Giryes, Lior Wolf, Itamar Zimerman

NeurIPS 2026Architectures and efficiency › Attention and transformersapproach: State space and recurrent sequence modelsopen problems in this approach1 citations (OpenAlex)

Tel Aviv University · Mentee Robotics

Read the paperPlace an idea next to itCheck your own paper ↗

6measured effects
3improved
2no clear effect
1hurt
In one sentence

Reverse-engineers how a linear Mamba solves multi-query associative recall as implicit JL-based linear hashing, and derives recall scaling laws relating embedding size D, state size N, vocabulary V and facts N_f, validated empirically.

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Problem

Understanding the internal algorithm Mamba uses for associative recall (AR/MQAR) and how recall capacity scales with vocabulary size, number of facts, state size, and embedding size.

Approach

Shows Mamba implements recall via JL-style linear hash functions (key/query compressed by a JL matrix into the state, values stored as outer products), and uses this to derive probabilistic scaling laws, extended to multi-layer and multi-head Mamba-2 models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add Conv1D of length 2 (copy and shift) to an SSM-only Mamba block (ablation)Simplified single-layer Mamba · MQARrecall accuracy: nearly perfect recall vs fails completelyImproved
use MQA or MKA head pattern instead of MVA (ablation)Simplified multi-head Mamba-2 · MQARrecall accuracyHurt
use MHA head pattern instead of single head (ablation)Simplified multi-head Mamba-2 · MQARrecall accuracyImproved
use MVA head pattern instead of single head (ablation)Simplified multi-head Mamba-2 · MQARrecall accuracyNo clear effect
add layers at fixed total effective state (Lambda N) (ablation)Simplified multi-layer Mamba · AR/MQARrecall accuracyNo clear effect
replace simplified linear Mamba by full nonlinear MambaMamba · MQARscaling-law constant a: a_full is about 1/2 of a_linearImproved

Surprising findings

  • Padding tokens sampled randomly from the full vocabulary are used following the original MQAR implementation, which adds noise to the recall task.
  • Among Mamba-2 head patterns, MVA matches the single-head baseline rather than improving on it.

Limitations

  • Analysis relies on simplified linear or simplified Mamba models; the role of the gating branch is not characterized.
  • Full nonlinear model scaling constant a_full was determined heuristically.
  • Theory analyzes single-query and MQAR settings under idealized JL assumptions with large-V asymptotics.

Open problems this paper states

Open problems in state space and recurrent sequence models

Do state space and recurrent models keep their efficiency and recall at large scale and long context?

All 5 open problems and what was already tried →

Experimental setup

Datasets: MQAR synthetic data

Benchmarks: MQAR AR

Metrics: recall accuracy best-of-seeds accuracy

Builds on: Mamba Mamba-2 MQAR Johnson-Lindenstrauss lemma

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy