arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.03595cs.LGcs.AIstat.ML
收藏

净化Shampoo:通过分解其预条件矩阵探究Shampoo的启发式策略

Purifying Shampoo: Investigating Shampoo's Heuristics by Decomposing its Preconditioner

Department of Engineering, University of Cambridge(剑桥大学工程系);Meta Platforms, Inc.(Meta公司);Fundamental AI Research, Meta Superintelligence Labs(Meta超智能实验室基础人工智能研究部);AI and Systems Co-Design, Meta Platforms(Meta平台人工智能与系统联合设计);The Alan Turing Institute(艾伦·图灵研究所);Infrastructure Optimizations, Meta Superintelligence Labs, Meta Platforms, Inc.(Meta超智能实验室基础设施优化)

Runa Eschenhagen, Aaron Defazio, Tsung-Hsien Lee, Richard E. Turner, Hao-Jun Michael Shi

AI总结:

该研究针对Shampoo优化算法依赖启发式策略、缺乏理论支撑的问题,通过分解预条件矩阵的特征值与特征基更新,提出直接修正特征值、自适应确定特征基计算频率的方法,为去除启发式策略、改进克罗内克分解类训练算法提供了理论化方向。

摘要:

Shampoo近期在AlgoPerf竞赛中取得成功,重新引发了人们对基于克罗内克分解的神经网络训练优化算法的兴趣。尽管成效显著,Shampoo在大规模应用中实现高性能严重依赖学习率嫁接、 stale预条件等多种启发式策略。这些启发式策略提升了算法复杂度,需要额外的超参数调优,且缺乏理论依据。本文从全矩阵Adam的Frobenius范数近似角度研究这些启发式策略,将预条件矩阵的特征值与特征基更新解耦。我们证明,从Adam进行嫁接能够缓解预条件矩阵特征值的陈旧性和缩放失配问题,且直接修正特征值可消除对学习率嫁接的需求。为应对特征基计算不频繁带来的误差,我们受暖启动QR算法终止条件启发,提出了一种确定特征基计算频率的自适应准则。该准则解耦了不同预条件矩阵的更新频率,使我们能够探究近似误差对收敛的影响。这些实用技术为去除Shampoo的启发式策略、开发更优的基于克罗内克分解的训练算法提供了有理论依据的方向。

英文摘要:

The recent success of Shampoo in the AlgoPerf contest has sparked renewed interest in Kronecker-factorization-based optimization algorithms for training neural networks. Despite its success, Shampoo relies heavily on several heuristics such as learning rate grafting and stale preconditioning to achieve performance at-scale. These heuristics increase algorithmic complexity, necessitate further hyperparameter tuning, and lack theoretical justification. This paper investigates these heuristics from the angle of Frobenius norm approximation to full-matrix Adam and decouples the preconditioner's eigenvalues and eigenbasis updates. We show that grafting from Adam mitigates the staleness and mis-scaling of the preconditioner's eigenvalues and how correcting the eigenvalues directly eliminates the need for learning rate grafting. To manage the error induced by infrequent eigenbasis computations, we propose an adaptive criterion for determining the eigenbasis computation frequency motivated by terminating a warm-started QR algorithm. This criterion decouples the update frequency of different preconditioner matrices and enables us to investigate the impact of approximation error on convergence. These practical techniques offer a principled angle towards removing Shampoo's heuristics and developing improved Kronecker-factorization-based training algorithms.

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

↑