arXiv:2512.22213cs.LGcs.AI2025-12被引 3

发现并解析了中层出现的新型注意力聚集点,揭示其形成机制与模型规模的关系。

On the Existence and Behavior of Secondary Attention Sinks

  • 识别出中层MLP模块生成次级注意力聚集点,其方向对齐主聚集点。
  • 次级聚集点持续层数由向量ℓ₂范数决定,影响注意力分布结构。
  • 大模型中聚集点位置与寿命更稳定,如Qwen3-14B有六种不同层级。

注意力聚集点是语义相关性低但接收大量注意力的标记,如起始符(BOS)。本文提出一类新类型的聚集点——次级聚集点,与以往研究的主聚集点有本质区别:前者主要出现在中层,持续层数可变,吸引注意力较少但仍有显著影响。通过跨11类模型的实验发现:(1) 次级聚集点由特定中层MLP模块生成,其输出向量方向对齐该层主聚集点;(2) 向量ℓ₂范数决定次级聚集点得分及其持续层数,进而影响注意力机制;(3) 主聚集点在中层减弱,与次级聚集点出现同步。在大规模模型中,聚集点的位置与寿命呈现更确定、频繁的模式:QwQ-32B中观察到三种层级,Qwen3-14B中发现六种。代码已开源至github.com/JeffreyWong20/Secondary-Attention-Sinks。

原文摘要 · Abstract (English)

Attention sinks are tokens, often the beginning-of-sequence (BOS) token, that receive disproportionately high attention despite limited semantic relevance. In this work, we identify a class of attention sinks, which we term secondary sinks, that differ fundamentally from the sinks studied in prior works, which we term primary sinks. While prior works have identified that tokens other than BOS can sometimes become sinks, they were found to exhibit properties analogous to the BOS token. Specifically, they emerge at the same layer, persist throughout the network and draw a large amount of attention mass. Whereas, we find the existence of secondary sinks that arise primarily in middle layers and can persist for a variable number of layers, and draw a smaller, but still significant, amount of attention mass. Through extensive experiments across 11 model families, we analyze where these secondary sinks appear, their properties, how they are formed, and their impact on the attention mechanism. Specifically, we show that: (1) these sinks are formed by specific middle-layer MLP modules; these MLPs map token representations to vectors that align with the direction of the primary sink of that layer. (2) The $\ell_2$-norm of these vectors determines the sink score of the secondary sink, and also the number of layers it lasts for, thereby leading to different impacts on the attention mechanisms accordingly. (3) The primary sink weakens in middle layers, coinciding with the emergence of secondary sinks. We observe that in larger-scale models, the location and lifetime of the sinks, together referred to as sink levels, appear in a more deterministic and frequent manner. Specifically, we identify three sink levels in QwQ-32B and six levels in Qwen3-14B. We open-sourced our findings at github.com/JeffreyWong20/Secondary-Attention-Sinks.

注意力机制模型分析大模型神经网络

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。