Training Deep Neural Networks with Adaptive Momentum Inspired by the Quadratic Optimization

Tao Sun, Huaming Ling, Zuoqiang Shi, Dongsheng Li, Bao Wang
10/18/2021
cs.LGmath.OC

Official code: kentaroy47/vision-transformers-cifar10 (721 stars, Python, MIT, last commit 2025-11-20).

Abstract

Heavy ball momentum is crucial in accelerating (stochastic) gradient-based optimization algorithms for machine learning. Existing heavy ball momentum is usually weighted by a uniform hyperparameter, which relies on excessive tuning.

Show full abstract

Moreover, the calibrated fixed hyperparameter may not lead to optimal performance. In this paper, to eliminate the effort for tuning the momentum-related hyperparameter, we propose a new adaptive momentum inspired by the optimal choice of the heavy ball momentum for quadratic optimization. Our proposed adaptive heavy ball momentum can improve stochastic gradient descent (SGD) and Adam. SGD and Adam with the newly designed adaptive momentum are more robust to large learning rates, converge faster, and generalize better than the baselines. We verify the efficiency of SGD and Adam with the new adaptive momentum on extensive machine learning benchmarks, including image classification, language modeling, and machine translation. Finally, we provide convergence guarantees for SGD and Adam with the proposed adaptive momentum.

View on arXivView PDF

Code Implementations(1)

MIT

Let's train vision transformers (ViT) for cifar 10 / cifar 100!

721136PythonOct 27, 20201 years agoMIT

Similar Papers

Cite this paper

@article{sun2021training,
  title  = {Training Deep Neural Networks with Adaptive Momentum Inspired by the Quadratic Optimization},
  author = {Tao Sun and Huaming Ling and Zuoqiang Shi and Dongsheng Li and Bao Wang},
  year   = {2021},
  eprint = {2110.09057},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.09057}
}

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/2110.09057.svg)](https://codeofpaper.com/paper/2110.09057)

Discussion