跳到正文
arXiv (AI + Vision + Imaging)· Gautam Goel, Mahdi Soltanolkotabi, Peter Bartlett·· 13 天前AI 评分20

Hera:面向softmax自注意力网络训练的一阶优化算法,实现快速全局收敛

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

AI 导读

研究将多层softmax自注意力网络的线性回归训练在无限数据极限下等价为矩阵分解问题,并据此设计一阶优化算法Hera,其重参数化更新等价于原参数化下的预条件更新。变体Hera-PSD在较小高斯初始化下使超额风险随梯度下降迭代次数指数下降,且该界不随自注意力层数增加而退化。在非线性动力系统时间序列预测实验中,Hera的均方测试误差较AdamW低98.1%、较Muon低97.7%。

正文 · 原文

arXiv:2603.01514v2 Announce Type: replace Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org