arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.30280cs.LG
收藏

μ子的极性更新二次视角:优势、缺陷及牛顿-舒尔茨的作用

A Quadratic Lens on Muon's Polar Update: Benefits, Pitfalls, and the Role of Newton-Schulz

King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分支);MPI for Intelligent Systems(马克斯·普朗克智能系统研究所);OpenEuroLLM(开放欧洲大语言模型组织)

Egor Shulgin, Sam Laing, Antonio Orvieto, Peter Richtárik

AI总结:

本研究分析Muon核心的PolarGD,明确其正交化更新的适用条件、与梯度下降等方法的差异,揭示牛顿-舒尔茨迭代对微小奇异值的处理作用,解释Muon训练速度的快慢机制。

摘要:

Muon(μ子)沿近似正交方向更新矩阵值参数,训练大语言模型的速度常快于AdamW,但正交化何时及为何有效仍不明确。我们研究Muon核心的正交化更新方法PolarGD(极性梯度下降),针对矩阵二次型(可对优化器进行闭式分析),并在使用线搜索(消除学习率调优影响)的条件下比较更新方向。当梯度远离低秩且其最大奇异方向具有高曲率时,正交化会带来收益。对于任意海森矩阵,只要误差行正交且范数相等,PolarGD可一步达到极小值,而梯度下降需所有海森特征值相等;与符号下降不同,PolarGD不受问题旋转影响。多步运行时,PolarGD表现为以当前迭代为预条件的梯度下降,其速度由迭代的条件数而非海森的条件数决定,这既解释了其快速运行的情况,也解释了因迭代的微小奇异值导致的慢速情况——此时PolarGD远慢于梯度下降。最后,Muon中使用的少量牛顿-舒尔茨迭代会像梯度下降一样处理这些微小奇异值,因此更少的迭代可比精确正交化更快收敛;在使用Muon训练的Transformer中,注意力矩阵约四分之一的奇异值处于该慢速区间。

英文摘要:

Muon updates matrix-valued parameters along approximately orthogonalized directions and often trains large language models faster than AdamW, yet it remains unclear when and why orthogonalization helps. We study PolarGD, the orthogonalized update at the core of Muon, on matrix quadratics, where optimizers can be analyzed in closed form, and compare update directions under line search to remove the effect of learning-rate tuning. Orthogonalization pays off when the gradient is far from low rank and its largest singular directions see high curvature. PolarGD reaches the minimizer in one step whenever the rows of the error are orthogonal with equal norms, for any Hessian, whereas gradient descent needs all Hessian eigenvalues to be equal; and unlike sign descent, PolarGD is unaffected by rotations of the problem. Over many steps, PolarGD acts as gradient descent preconditioned by the current iterate, so its speed is governed by the conditioning of the iterate rather than of the Hessian. This explains fast regimes as well as a slow one, caused by tiny singular values of the iterate, in which PolarGD is much slower than gradient descent. Finally, the few Newton-Schulz iterations used in Muon treat these tiny singular values as gradient descent does, so fewer iterations can converge faster than exact orthogonalization; in a transformer trained with Muon, about a quarter of the singular values of the attention matrices fall in this regime.

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

↑