arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.19861cs.LG
收藏

检索只需部分注意力

Some Attention is All You Need for Retrieval

University of Groningen(格罗宁根大学)

Felix Michalak, Steven Abreu

AI总结:

本研究证明混合SSM-Transformer架构中检索完全依赖自注意力,稀疏至15%头仍保性能,揭示功能专门化,挑战冗余假设。

摘要:

我们展示了混合SSM-Transformer架构中的完全功能分离:检索完全依赖于自注意力层。在RecurrentGemma-2B/9B和Jamba-Mini-1.6中,注意力消融导致灾难性的检索失败(0%准确率),而SSM层即使改进提示词也未能表现出补偿机制。相反,将注意力稀疏化至仅15%的头,仍能保持近乎完美的检索性能,同时保留84%的MMLU性能,这表明自注意力主要专门用于检索任务。我们确定了检索的精确机制要求:生成期间必须暴露针(needle)令牌,且在预填充或生成期间必须有足够的上下文。这种严格的功能专门化挑战了混合架构中冗余的假设,并表明这些模型作为专门模块而非集成系统运行,对架构优化和可解释性具有直接影响。

英文摘要:

We demonstrate complete functional segregation in hybrid SSM-Transformer architectures: retrieval depends exclusively on self-attention layers. Across RecurrentGemma-2B/9B and Jamba-Mini-1.6, attention ablation causes catastrophic retrieval failure (0% accuracy), while SSM layers show no compensatory mechanisms even with improved prompting. Conversely, sparsifying attention to just 15% of heads maintains near-perfect retrieval while preserving 84% MMLU performance, suggesting self-attention specializes primarily for retrieval tasks. We identify precise mechanistic requirements for retrieval: needle tokens must be exposed during generation and sufficient context must be available during prefill or generation. This strict functional specialization challenges assumptions about redundancy in hybrid architectures and suggests these models operate as specialized modules rather than integrated systems, with immediate implications for architecture optimization and interpretability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑