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

Shampoo预处理器的全新视角

A New Perspective on Shampoo's Preconditioner

SEAS(工程与应用科学学院);Harvard University(哈佛大学);Kempner Institute(肯普纳研究所)

Depen Morwani, Itai Shapira, Nikhil Vyas, Eran Malach, Sham Kakade, Lucas Janson

AI总结:

本文揭示了Shampoo预处理器近似与最优Kronecker积近似间的联系,证明其近似平方等价于幂迭代单步,并实验验证了其接近最优且研究了实用计算技巧对Hessian近似质量的影响。

摘要:

Shampoo是一种使用Kronecker积预处理器的二阶优化算法,近期引起了机器学习社区越来越多的关注。Shampoo使用的预处理器既可以被视为对Hessian矩阵的Gauss--Newton分量的近似,也可以被视为Adagrad维护的梯度协方差矩阵。我们提供了这些矩阵的最优Kronecker积近似与Shampoo所作近似之间的显式且新颖的联系。我们的联系突显了关于Shampoo近似的一个微妙但普遍的误解。具体而言,Shampoo优化器使用的近似的平方,等价于计算上述最优Kronecker积近似的幂迭代算法的单步迭代。在各种数据集和架构上,我们通过实验证明这接近于最优Kronecker积近似。此外,针对Hessian近似视角,我们通过实验研究了各种实用技巧(例如使用批量梯度和经验Fisher)对Hessian近似质量的影响,以使Shampoo在计算上更高效。

英文摘要:

Shampoo, a second-order optimization algorithm which uses a Kronecker product preconditioner, has recently garnered increasing attention from the machine learning community. The preconditioner used by Shampoo can be viewed either as an approximation of the Gauss--Newton component of the Hessian or the covariance matrix of the gradients maintained by Adagrad. We provide an explicit and novel connection between the $\textit{optimal}$ Kronecker product approximation of these matrices and the approximation made by Shampoo. Our connection highlights a subtle but common misconception about Shampoo's approximation. In particular, the $\textit{square}$ of the approximation used by the Shampoo optimizer is equivalent to a single step of the power iteration algorithm for computing the aforementioned optimal Kronecker product approximation. Across a variety of datasets and architectures we empirically demonstrate that this is close to the optimal Kronecker product approximation. Additionally, for the Hessian approximation viewpoint, we empirically study the impact of various practical tricks to make Shampoo more computationally efficient (such as using the batch gradient and the empirical Fisher) on the quality of Hessian approximation.

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

↑