跳到正文
arXiv:cs.CL· Nir Yarden, Amit Ben-Artzy, Roy Schwartz·· 7 小时前

为什么 Mamba 的检索能力不及 Transformer:研究揭示与状态容量无关的深层原因

Beyond State Capacity: Why Retrieval Breaks in Mamba

AI 导读

Mamba 在上下文检索上落后 Transformer 的原因并非其固定大小的循环状态容量不足:在查询先于上下文的 query-first 检索设置下,Mamba 仍显著落后。

正文

View PDF HTML (experimental)

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.
Comments: 15 pages, 6 figures. Under review
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2610.19709 [cs.CL]
  (or arXiv:2610.19709v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2610.19709

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Nir Yarden [view email]
[v1] Wed, 14 Oct 2026 07:37:53 UTC (395 KB)

来源:arXiv:cs.CL · arxiv.org