门控注意力机制分析:注意力汇作为谱尖峰
Attention Sinks as Spectral Spikes: A Mechanism Analysis of Gated Attention
研究将注意力汇建模为token空间协方差中由汇诱导的低秩模态,其方向与高注意力质量列对齐。SDPA后输出门控在此视角下表现为模态相关收缩,前向衰减汇诱导的谱能量,反向局部降低经汇列路由的value路径梯度。随机矩阵诊断显示门控降低离群质量、削弱汇子空间对齐并提升有效秩,训练期诊断显示门控抑制注意力集中、value梯度放大与表征主导的共现。
arXiv:2611.20403v1 Announce Type: new Abstract: Transformer attention exhibits attention sinks, where a small subset of source tokens absorbs disproportionate attention mass across layers. Recent work shows that post-SDPA output gating strongly reduces attention-sink behavior, while separate studies link attention sinks to gradient sinks and massive activations through backward training dynamics. Yet how the same gate affects forward sink structure, backward gradient concentration, and training-time representation signatures remains unclear. We address this gap by formulating attention sinks as sink-induced low-rank modes in token-space covariance, with directions aligned to high-mass attention columns. Under this view, post-SDPA gating acts as a mode-dependent contraction: it attenuates sink-induced spectral energy in the forward pass and locally reduces value-path gradients routed through sink columns in the backward pass. Empirically, random-matrix diagnostics show that gating reduces outlier mass, weakens sink-subspace alignment, and increases effective rank, while backward analyses show active-gate attenuation of first-token value gradients. Training-time diagnostics further show that gating suppresses the co-emergence of attention concentration, value-gradient amplification, and representation dominance.
来源:arXiv (AI + Vision + Imaging) · arxiv.org