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

通过Kullback-Leibler最小化理解并改进洗发水与SOAP

Understanding and Improving Shampoo and SOAP via Kullback-Leibler Minimization

Vector Institute(向量研究所);University of Cambridge(剑桥大学);Microsoft(微软);University of Toronto(多伦多大学)

Wu Lin, Scott C. Lowe, Felix Dangel, Runa Eschenhagen, Zikun Xu, Roger B. Grosse

AI总结:

本文通过将估计过程转化为KL散度最小化下的协方差估计,改进了Shampoo和SOAP,提出KL-Shampoo和KL-SOAP方法,在神经网络预训练中表现更优,且无需依赖Adam。

摘要:

洗发水及其高效变种SOAP利用结构化的二阶矩估计,在训练神经网络(NNs)中表现出色。然而,Shampoo通常需要与Adam结合使用以竞争性表现,而SOAP通过在Shampoo的特征基上应用Adam来缓解这一问题,但两者都面临额外的内存开销。以往的分析大多依赖于Frobenius范数来推动这些估计方案。本文将这些估计过程重新解释为在KL散度最小化下的协方差估计,揭示了一个被忽视的理论限制,并推动了有原则的重新设计。基于这一视角,我们开发了KL-Shampoo和KL-SOAP,这些实用方案在NN预训练中表现匹配或优于Shampoo和SOAP,同时达到SOAP级别的每迭代运行时间。值得注意的是,KL-Shampoo无需依赖Adam即可获得竞争力表现,消除了由Adam引入的内存开销。在我们的实验中,KL-Shampoo在性能上始终优于SOAP、Shampoo和甚至KL-SOAP,确立了基于KL的方法作为设计神经网络优化中结构化方法的有前途的基础。KL-Shampoo/KL-SOAP的实现可在https://github.com/yorkerlin/KL-Methods找到。

英文摘要:

Shampoo and its efficient variant, SOAP, employ structured second-moment estimations and have shown strong performance for training neural networks (NNs). In practice, however, Shampoo typically requires step-size grafting with Adam to be competitive, and SOAP mitigates this by applying Adam in Shampoo's eigenbasis -- at the cost of additional memory overhead from Adam in both methods. Prior analyses have largely relied on the Frobenius norm to motivate these estimation schemes. We instead recast their estimation procedures as covariance estimation under Kullback-Leibler (KL) divergence minimization, revealing a previously overlooked theoretical limitation and motivating principled redesigns. Building on this perspective, we develop $\textbf{KL-Shampoo}$ and $\textbf{KL-SOAP}$, practical schemes that match or exceed the performance of Shampoo and SOAP in NN pre-training while achieving SOAP-level per-iteration runtime. Notably, KL-Shampoo does not rely on Adam to attain competitive performance, eliminating the memory overhead introduced by Adam. Across our experiments, KL-Shampoo consistently outperforms SOAP, Shampoo, and even KL-SOAP, establishing the KL-based approach as a promising foundation for designing structured methods in NN optimization. An implementation of KL-Shampoo/KL-SOAP is available at https://github.com/yorkerlin/KL-Methods

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

↑