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

RMNP:基于行动量归一化的可扩展矩阵优化预条件化

RMNP: Row-Momentum Normalized Preconditioning for Scalable Matrix-Based Optimization

Dartmouth College(达特茅斯学院);International Computer Science Institute(国际计算机科学研究所);University of California, Berkeley(加州大学伯克利分校);Meta

Shenyang Deng, Zhuoli Ouyang, Tianyu Pang, Zihang Liu, Ruochen Jin, Shuhua Yu, Yaoqing Yang

AI总结:

RMNP通过行归一化替代牛顿-施卢茨迭代,提升预条件化效率,保持优化性能,实验显示其在大语言模型预训练中表现优异。

摘要:

预条件自适应方法在训练深度神经网络中受到关注,因其能捕捉损失景观的丰富曲率信息。该领域的核心挑战在于平衡预条件化效果与预条件器实现的计算效率。在最近的进展中,Muon通过牛顿-施卢茨迭代获得预条件化更新,而无需显式构造预条件矩阵。尽管其优势明显,但效率仍有提升空间。本文介绍RMNP(行动量归一化预条件化),一种通过行归一化(d_in)ℓ2规范化替代牛顿-施卢茨迭代的优化器,受Transformer逐层Hessian的对角块结构启发。我们实证验证,正交化与行归一化在Transformer情况下渐近等价。这种替代将每迭代计算复杂度从O(mn·min(m,n))降至O(mn)(对于m×n权重矩阵),同时保持可比的优化性能。理论上,我们建立了RMNP在非凸设置下的收敛保证,与最近的Muon优化器结果匹配,达到最小最大最优复杂度。在大规模语言模型预训练中的广泛实验表明,RMNP在优化性能上与Muon竞争,同时显著减少预条件化时间。我们的代码可在https://github.com/Dominator-Index/RMNP获取。

英文摘要:

Preconditioned adaptive methods have gained significant attention for training deep neural networks, as they capture rich curvature information of the loss landscape. The central challenge in this field lies in balancing preconditioning effectiveness with computational efficiency of implementing the preconditioner. Among recent advances, Muon stands out by using Newton-Schulz iteration to obtain preconditioned updates without explicitly constructing the preconditioning matrix. Despite its advantages, the efficiency of Muon still leaves room for further improvement. In this paper, we introduce RMNP (Row Momentum Normalized Preconditioning), an optimizer that replaces Newton-Schulz iteration with a simple row-wise ($d_{\text{in}}$) $\ell_2$ normalization operation, motivated by the empirically observed diagonal block structure of the Transformer layerwise Hessian. We empirically verified that orthogonalization and row-wise (on input dim) $\ell_2$ normalization are asymptotically equivalent in the case of the transformer. This substitution reduces the per-iteration computational complexity from ${O}(mn\cdot\min(m,n))$ to ${O}(mn)$ for an $m\times n$ weight matrix while maintaining comparable optimization performance. Theoretically, we establish convergence guarantees for RMNP in the non-convex setting that match recent results for Muon optimizers, achieving the minimax optimal complexity. Extensive experiments on large language model pretraining show that RMNP delivers competitive optimization performance compared with Muon while substantially reducing preconditioning wall-clock time. Our code is available at https://github.com/Dominator-Index/RMNP.

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

↑