arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.03993cs.LGcond-mat.dis-nn
收藏

softmax 注意力头的专门化:来自高维单位置模型的见解

Specialization of softmax attention heads: insights from the high-dimensional single-location model

Statistical physics of computation laboratory, École Polytechnique Fédérale de Lausanne, Switzerland(计算物理学实验室,瑞士联邦理工学院拉沃斯纳分校)

M. Sagitova, O. Duranthon, L. Zdeborová

AI总结:

本文研究了多头注意力机制中注意力头的专门化现象,提出了一种理论模型,分析了SGD下多头softmax注意力的训练动态,并引入了Bayes-softmax注意力以优化预测性能。

摘要:

多头注意力使Transformer模型能够同时表示多种注意力模式。经验上,头的专门化在训练过程中出现于不同的阶段,而许多头仍然冗余且学习相似的表示。我们提出了一种理论模型,基于多索引和单位置回归框架,捕捉这一现象。第一部分分析了多头softmax注意力在SGD下的训练动态,揭示了初始非专门化阶段后,不同头依次对齐潜在信号方向的多阶段专门化阶段。第二部分研究了注意力激活函数对性能的影响。我们引入了Bayes-softmax注意力,该方法在该设置中实现了最优的预测性能。

英文摘要:

Multi-head attention enables transformer models to represent multiple attention patterns simultaneously. Empirically, head specialization emerges in distinct stages during training, while many heads remain redundant and learn similar representations. We propose a theoretical model capturing this phenomenon, based on the multi-index and single-location regression frameworks. In the first part, we analyze the training dynamics of multi-head softmax attention under SGD, revealing an initial unspecialized phase followed by a multi-stage specialization phase in which different heads sequentially align with latent signal directions. In the second part, we study the impact of attention activation functions on performance. We introduce the Bayes-softmax attention, which achieves optimal prediction performance in this setting.

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

↑