在注意力汇形成之前:隐状态几何揭示并调控其形成过程
Before Attention Sinks Form: Hidden-State Geometry Reveals and Modulates Their Formation
AI总结:
该研究发现注意力汇形成前存在隐状态的短谱重组,通过修改隐状态奇异值的干预可因果性改变Qwen2.5等模型的后续注意力汇形成过程。
摘要:
注意力汇通常在形成后才被研究。我们探究是否存在可测量的隐状态变化出现在其形成之前,以及改变该几何结构是否会影响后续过程。为消除网络深度作为捷径的影响,我们在同一模型的同一层比较不同提示。当不同提示的汇出现时间不同时,隐状态的简单谱摘要能提供超出当前注意力的信息,其中最清晰的提示特异性信号出现在汇形成前约2至3层的短窗口内。该预测强度随组变化,因此我们将该谱视为汇前状态变化的读出指标,而非通用预警统计量。该信号比单一测量的极端激活更广泛。随后,我们仅修改当前注意力计算后层后隐状态的奇异值。这些干预改变了Qwen2.5、GLM-Z1和GPT-OSS中后续的汇行为,相较于范数匹配的随机谱扰动,在Qwen2.5中,直接抑制效应伴随下一层对位置0的查询-键偏好降低,且从大幅减少的训练数据估计时,学习到的谱方向保持稳定。综上,结果表明注意力汇前存在隐状态的短谱重组,直接扰动该几何结构可因果性改变后续汇的形成。
英文摘要:
Attention sinks are usually studied after they have formed. We ask whether a measurable hidden-state change appears beforehand and whether changing that geometry alters what happens later. To remove network depth as a shortcut, we compare prompts in the same model and at the same layer. When sink timing varies across prompts, simple spectral summaries of the hidden states add information beyond current attention, with the clearest prompt-specific signal in a short window about two to three layers before sink formation. The predictive strength varies across cohorts, so we treat the spectrum as a readout of a pre-sink state change rather than a universal warning statistic. The signal is broader than one measured extreme activation. We then modify only the singular values of the post-layer hidden states after current attention has already been computed. These interventions change later sink behavior in Qwen2.5, GLM-Z1, and GPT-OSS relative to norm-matched random spectral perturbations. In Qwen2.5, the immediate suppressive effect is accompanied by a reduction in next-layer query--key preference for position~0, and the learned spectral directions remain stable when estimated from substantially less training data. Together, the results show that attention sinks are preceded by a short spectral reorganization of hidden states, and directly perturbing this geometry can causally alter subsequent sink formation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。