Beyond State Capacity: Why Retrieval Breaks in Mamba

Nir Yarden, Amit Ben-Artzy, Roy Schwartz
10/14/2026
cs.CL

No official code found. Best implementation: schwartz-lab-NLP/beyond_state_capacity (0 stars, Apache-2.0, last commit 2026-10-11).

Abstract

Mamba models underperform Transformers on in-context retrieval. This gap is usually attributed to Mamba's fixed-size recurrent state, which loses information as the context grows. We challenge this assumption by focusing on query-first retrieval, a setup in which the query precedes the context and state capacity should not be the binding constraint. We show that even in this setting Mamba lags substantially behind Transformers, despite its selection mechanism, which was designed to distinguish relevant content from distractors. We then demonstrate that the Mamba selection gates have sufficient control over the state updates to influence the model output: intervening on specific gates alone can swing accuracy between extremes. However, as gates are input-dependent, they require the incoming token's representation to encode its relevance to the query. We therefore probe token representations across layers, and find that the relevance signal emerges only gradually with model depth, and that the gates begin to reflect it only several layers deeper. Crucially, we find that gates in retrieval-critical layers are not yet aligned with relevance. The selection mechanism is thus expressive enough to solve the task, but it commonly operates on a relevance signal that has not yet arrived. Mamba's retrieval bottleneck therefore extends beyond state capacity: even when capacity is sufficient, the delayed emergence of relevance information across depth often prevents successful retrieval.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for the paper "Beyond State Capacity: Why Retrieval Breaks in Mamba"

00Oct 11, 20261 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{yarden2026beyond,
  title  = {Beyond State Capacity: Why Retrieval Breaks in Mamba},
  author = {Nir Yarden and Amit Ben-Artzy and Roy Schwartz},
  year   = {2026},
  eprint = {2610.19709},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.19709v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.19709.svg)](https://codeofpaper.com/paper/2610.19709)

Discussion