arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.01514cs.LGstat.ML
收藏

softmax自注意力层的训练动态:通过预条件实现快速全局收敛

Training Dynamics of Softmax Self-Attention: Fast Global Convergence via Preconditioning

Simons Institute, UC Berkeley(西蒙斯研究所,伯克利大学);Department of Electrical and Computer Engineering, University of Southern California(电气与计算机工程系,南加州大学)

Gautam Goel, Mahdi Soltanolkotabi, Peter Bartlett

AI总结:

本文提出了一种结构感知的梯度下降算法,通过预条件和谱初始化实现softmax自注意力层在有限数据下的快速全局收敛。

摘要:

我们研究了在softmax自注意力层中进行线性回归时梯度下降的训练动态,并证明一个简单的第一阶优化算法可以以几何速率收敛到全局最优的自注意力参数。我们的分析分两步进行。首先,我们证明在无限数据极限下,自注意力层解决的回归问题等价于一个非凸矩阵分解问题。其次,我们利用这一联系来设计一种新的"结构感知"梯度下降变种,高效地优化原始有限数据回归目标。我们的优化算法在标准梯度下降上有几个创新,包括帮助避免虚假 stationary 点的预条件器和正则化器,以及一种数据依赖的谱参数初始化方法,这些参数以高概率接近全局最小值的流形。

英文摘要:

We study the training dynamics of gradient descent in a multilayer softmax self-attention network trained to perform linear regression and show that in the infinite-data limit this regression problem is equivalent to a matrix factorization problem. This connection motivates the design of Hera, a new first-order optimization algorithm for training self-attention networks. Key features of Hera include a reparameterization of the model arising from the matrix factorization geometry and a rescaling of the parameters which ensures that the empirical loss gradients remain close to the auxiliary matrix factorization gradients throughout training. Hera updates in the reparameterized model are equivalent to a certain preconditioned update in the original parameterization. We also propose a variant of Hera called Hera-PSD; our main theoretical result is that under small Gaussian initialization the excess risk of the model trained by Hera-PSD decreases exponentially fast in the number of gradient descent iterations, up to an additional error term that decreases as $1/n$, up to logarithmic factors, in the size of the training set. A particularly appealing aspect of our excess risk bound is that it does not degrade as the number of self-attention layers increases. In a stylized time-series prediction experiment in a nonlinear dynamical system, we find that a model trained by Hera achieves $98.1\%$ lower mean-squared test error than a model trained by AdamW and $97.7\%$ lower than a model trained by Muon at the same iteration budget.

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

↑