理解深度学习优化的各向同性曲率模型:梯度正交化是最优的吗?
Isotropic Curvature Model for Understanding Deep Learning Optimization: Is Gradient Orthogonalization Optimal?
AI总结:
本文提出各向同性曲率模型分析深度学习单次迭代优化,发现Muon等方法的梯度正交化方向正确但非严格最优,为设计新优化方法提供理论基础。
摘要:
在本文中,我们通过利用权重的矩阵结构,引入了一个用于分析单次迭代中深度学习优化的模型。我们通过假设损失函数在所有扰动方向上的曲率(包括二阶 Hessian 和高阶项)具有各向同性来推导该模型;因此,我们将其称为各向同性曲率模型。该模型是一个易于分析的凸优化程序,使我们能够理解以矩阵形式对权重进行的更新如何与总损失函数的变化相关联。作为应用,我们使用各向同性曲率模型分析了最近引入的 Muon 优化器和其他用于训练语言模型的矩阵梯度方法。首先,我们证明在曲率满足一般增长条件的情况下,最优更新矩阵是通过使原始梯度矩阵的谱更加均匀——即让奇异值在比例上更接近——来获得的,这特别改善了更新矩阵的条件数。接着,我们证明当曲率在增长上表现出相变时,正交化梯度成为各向同性曲率模型的最优解。综上所述,这些结果表明,Muon 及其他相关方法中采用的梯度正交化在方向上是正确的,但可能不是严格最优的。最后,我们讨论了如何利用各向同性曲率模型来设计用于训练深度学习和语言模型的新优化方法的未来研究。
英文摘要:
In this paper, we introduce a model for analyzing deep learning optimization over a single iteration by leveraging the matrix structure of the weights. We derive the model by assuming isotropy of curvature, including the second-order Hessian and higher-order terms, of the loss function across all perturbation directions; hence, we call it the isotropic curvature model. This model is a convex optimization program amenable to analysis, which allows us to understand how an update on the weights in the form of a matrix relates to the change in the total loss function. As an application, we use the isotropic curvature model to analyze the recently introduced Muon optimizer and other matrix-gradient methods for training language models. First, we show that under a general growth condition on the curvature, the optimal update matrix is obtained by making the spectrum of the original gradient matrix more homogeneous -- that is, making its singular values closer in ratio -- which in particular improves the conditioning of the update matrix. Next, we show that the orthogonalized gradient becomes optimal for the isotropic curvature model when the curvature exhibits a phase transition in growth. Taken together, these results suggest that the gradient orthogonalization employed in Muon and other related methods is directionally correct but may not be strictly optimal. Finally, we discuss future research on how to leverage the isotropic curvature model for designing new optimization methods for training deep learning and language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。