paper-with-me

홈 › Papers

Can We Remove the Square-Root in Adaptive Gradient Methods? A Second-Order Perspective

2024-02-05 · Wu Lin, Felix Dangel, Runa Eschenhagen, Juhan Bae, Richard E. Turner, Alireza Makhzani

Adaptive gradient optimizers like Adam(W) are the default training algorithms for many deep learning architectures, such as transformers. Their diagonal preconditioner is based on the gradient outer product which is incorporated into the parameter update via a square root. While these methods are often motivated as approximate second-order methods, the square root represents a fundamental difference. In this work, we investigate how the behavior of adaptive methods changes when we remove the root, i.e., strengthen their second-order motivation. Surprisingly, we find that such square-root-free adaptive methods close the generalization gap to SGD on convolutional architectures, while maintaining their root-based counterpart's performance on transformers. The second-order perspective also has practical benefits for developing non-diagonal methods that can incorporate arbitrary curvature approximations through the concept of preconditioner invariance. In contrast to root-based methods like Shampoo, root-free counterparts work well and fast with half-precision since they do not require numerically unstable matrix root decompositions and inversions. Overall, our findings provide new insights into the development of adaptive methods and raise important questions regarding the overlooked role of adaptivity in their success. (experiment code: https://github.com/yorkerlin/remove-the-square-root optimizer code: https://github.com/f-dangel/sirfshampoo)

📄 PDF Abstract BibTeX arXiv:2402.03496

Code (2)

f-dangel/sirfshampoo 공식 구현 pytorch
yorkerlin/remove-the-square-root 공식 구현 pytorch

Tasks

Second-order methods

Methods 이 논문이 사용한 방법론

SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…

Similar Papers 제목 키워드 기반

Second-order Information in First-order Optimization Methods

2019-12-20 · Yuzheng Hu, Licong Lin, Shange Tang

In this paper, we try to uncover the second-order essence of several first-order optimization methods. For Nesterov Accelerated Gradient, we rigorously prove that the algorithm makes use of the difference between past an…

2D Human Pose Estimation

Bayesian filtering unifies adaptive and non-adaptive neural network optimization methods

2018-07-19 · NeurIPS 2020 12 · Laurence Aitchison

We formulate the problem of neural network optimization as Bayesian filtering, where the observations are the backpropagated gradients. While neural network optimization has previously been studied using natural gradient…

Bayesian Inference

Investigating Alternatives to the Root Mean Square for Adaptive Gradient Methods

2021-06-10 · Brett Daley, Christopher Amato

Adam is an adaptive gradient method that has experienced widespread adoption due to its fast and reliable training performance. Recent approaches have not offered significant improvement over Adam, often because they do …

PRISM: Distribution-free Adaptive Computation of Matrix Functions for Accelerating Neural Network Training

2026-01-29 · Shenghao Yang, Zhichao Wang, Oleg Balabanov, N. Benjamin Erichson 외 arxiv

Matrix functions such as square root, inverse roots, and orthogonalization play a central role in preconditioned gradient methods for neural network training. This has motivated the development of iterative algorithms th…

Adaptive Methods for Nonconvex Optimization

2018-12-01 · NeurIPS 2018 12 · Manzil Zaheer, Sashank Reddi, Devendra Sachan, Satyen Kale 외

Adaptive gradient methods that rely on scaling gradients down by the square root of exponential moving averages of past squared gradients, such RMSProp, Adam, Adadelta have found wide application in optimizing the noncon…

Stochastic Optimization