Rethinking Adam: A Twofold Exponential Moving Average Approach

Yizhou Wang, Yue Kang, Can Qin, Huan Wang, Yi Xu +2 more
6/22/2021
cs.LGcs.AI

Official code: wyzjack/AdaM3 (26 stars, Python, last commit 2024-03-30).

Abstract

Adaptive gradient methods, e.g. \textsc{Adam}, have achieved tremendous success in machine learning. Scaling the learning rate element-wisely by a certain form of second moment estimate of gradients, such methods are able to attain rapid training of modern deep neural networks.

Show full abstract

Nevertheless, they are observed to suffer from compromised generalization ability compared with stochastic gradient descent (\textsc{SGD}) and tend to be trapped in local minima at an early stage during training. Intriguingly, we discover that substituting the gradient in the second raw moment estimate term with its momentumized version in \textsc{Adam} can resolve the issue. The intuition is that gradient with momentum contains more accurate directional information and therefore its second moment estimation is a more favorable option for learning rate scaling than that of the raw gradient. Thereby we propose \textsc{AdaMomentum} as a new optimizer reaching the goal of training fast while generalizing much better. We further develop a theory to back up the improvement in generalization and provide convergence guarantees under both convex and nonconvex settings. Extensive experiments on a wide range of tasks and models demonstrate that \textsc{AdaMomentum} exhibits state-of-the-art performance and superior training stability consistently.

View on arXivView PDF

Code Implementations(1)

wyzjack/AdaM3Official100%

[ICDM 2023] Momentum is All You Need for Data-Driven Adaptive Optimization

261Python, ShellJun 30, 20232 years ago
deep-learningoptimizer

Similar Papers

Cite this paper

@article{wang2021rethinking,
  title  = {Rethinking Adam: A Twofold Exponential Moving Average Approach},
  author = {Yizhou Wang and Yue Kang and Can Qin and Huan Wang and Yi Xu and Yulun Zhang and Yun Fu},
  year   = {2021},
  eprint = {2106.11514},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.11514}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.11514.svg)](https://codeofpaper.com/paper/2106.11514)

Discussion