arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.06248cs.LGmath.OCstat.ML
收藏

梯度流使Softmax输出向低熵解极化

Gradient Flow Polarizes Softmax Outputs towards Low-Entropy Solutions

Theory of Machine Learning Lab, EPFL(机器学习理论实验室,苏黎世联邦理工学院)

Aditya Varre, Mark Rofin, Nicolas Flammarion

AI总结:

本文研究了基于Softmax模型的梯度流动态,揭示其驱动优化向低熵解发展,并探讨了其在Transformer训练中的普遍性和实际影响。

摘要:

理解基于Softmax模型的复杂非凸训练动态对于解释Transformer的实证成功至关重要。在本文中,我们分析了值-Softmax模型的梯度流动态,定义为L(Vσ(a)),其中V和a分别是可学习的价值矩阵和注意力向量。由于矩阵乘以Softmax向量参数化是自注意力的核心构建块,我们的分析为Transformer的训练动态提供了直接见解。我们揭示梯度流在该结构上本质上会驱动优化向以低熵输出为特征的解发展。我们证明了这种极化效应在各种目标中普遍存在,包括逻辑损失和平方损失。此外,我们讨论了这些理论结果的实践意义,提供了一个正式的机制来解释诸如注意力沉底和大规模激活等实证现象。

英文摘要:

Understanding the intricate non-convex training dynamics of softmax-based models is crucial for explaining the empirical success of transformers. In this article, we analyze the gradient flow dynamics of the value-softmax model, defined as ${L}(\mathbf{V} σ(\mathbf{a}))$, where $\mathbf{V}$ and $\mathbf{a}$ are a learnable value matrix and attention vector, respectively. As the matrix times softmax vector parameterization constitutes the core building block of self-attention, our analysis provides direct insight into transformer's training dynamics. We reveal that gradient flow on this structure inherently drives the optimization toward solutions characterized by low-entropy outputs. We demonstrate the universality of this polarizing effect across various objectives, including logistic and square loss. Furthermore, we discuss the practical implications of these theoretical results, offering a formal mechanism for empirical phenomena such as attention sinks and massive activations.

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

↑