超越状态容量:为何Mamba的检索性能不佳
Beyond State Capacity: Why Retrieval Breaks in Mamba
AI总结:
该研究发现Mamba在查询优先检索中仍落后于Transformer,其瓶颈并非状态容量,而是检索关键层的选择门未与随深度延迟出现的相关性信号对齐。
摘要:
Mamba模型在上下文检索任务上的表现不如Transformer。这一差距通常被归因于Mamba的固定大小循环状态,随着上下文长度增加会丢失信息。我们通过聚焦于查询优先检索(即查询先于上下文输入,此时状态容量不应是约束条件)来挑战这一假设。我们发现,即便在该设置下,Mamba仍显著落后于Transformer,尽管其选择机制旨在区分相关内容与干扰项。随后我们证明,Mamba的选择门对状态更新有足够的控制以影响模型输出:仅干预特定门即可使准确率在极端值间波动。然而,由于门依赖于输入,它们需要传入token的表示编码其与查询的相关性。因此我们对各层的token表示进行探测,发现相关性信号仅随模型深度逐渐出现,且门仅在更深层才开始反映该信号。关键的是,我们发现检索关键层的门尚未与相关性对齐。因此,选择机制的表达能力足以解决该任务,但它通常作用于尚未到达的相关性信号。Mamba的检索瓶颈因此超出了状态容量范畴:即便容量充足,相关性信息随深度延迟出现的情况也常阻碍成功的检索。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。