arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05498cs.AIcs.CL
收藏

尖峰、稀疏与汇点:大规模激活与注意力汇点的解剖

The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks

New York University(纽约大学)

Shangwen Sun, Alfredo Canziani, Yann LeCun, Jiachen Zhu

AI总结:

研究揭示了Transformer中大规模激活与注意力汇点的关联性及作用机制,指出预归一化配置是二者共存的关键因素。

摘要:

我们研究了Transformer语言模型中两种反复出现的现象:大规模激活,其中少量token在几个通道中表现出极端异常值,以及注意力汇点,其中某些token吸引不成比例的注意力质量,无论语义相关性如何。先前的工作观察到这些现象经常同时出现,并且通常涉及相同的token,但它们的功能角色和因果关系仍不清楚。通过系统实验,我们表明这种同时出现主要是现代Transformer设计的架构产物,并且这两种现象起着相关但不同的作用。大规模激活是全局性的:它们诱导出近似恒定的隐藏表示,这些表示在层之间持续存在,实际上起到了模型的隐含参数作用。注意力汇点是局部性的:它们调节跨头的注意力输出,并使个别头偏向短程依赖性。我们确定预归一化配置是使这两种现象同时出现的关键选择,并展示去除它会使这两种现象解耦。

英文摘要:

We study two recurring phenomena in Transformer language models: massive activations, in which a small number of tokens exhibit extreme outliers in a few channels, and attention sinks, in which certain tokens attract disproportionate attention mass regardless of semantic relevance. Prior work observes that these phenomena frequently co-occur and often involve the same tokens, but their functional roles and causal relationship remain unclear. Through systematic experiments, we show that the co-occurrence is largely an architectural artifact of modern Transformer design, and that the two phenomena serve related but distinct functions. Massive activations operate globally: they induce near-constant hidden representations that persist across layers, effectively functioning as implicit parameters of the model. Attention sinks operate locally: they modulate attention outputs across heads and bias individual heads toward short-range dependencies. We identify the pre-norm configuration as the key choice that enables the co-occurrence, and show that ablating it causes the two phenomena to decouple.

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

↑