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

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

18 Oct 2021arXiv:2110.09057archive 2025-07-28

Tao Sun, Huaming Ling, Zuoqiang Shi, Dongsheng Li, Bao Wang

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2110.09057")

Code

Syntology Ran 12 of 17 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · violated contract; 5 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kentaroy47/vision-transformers-cifar10 officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 12 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · violated contract
5ran · our draft was wrong
1ran · fixture could not drive it
2ran
5unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kentaroy47/vision-transformers-cifar10. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ConvMixer kentaroy47/vision-transformers-cifar10/models/convmixer.py official repository ran · our draft was wrong MIT (permissive) · a7690d61376264fc · report
FeedForward kentaroy47/vision-transformers-cifar10/models/mlpmixer.py official repository ran · our draft was wrong MIT (permissive) · 7ad86819c80a33c6 · report
ResNet18 kentaroy47/vision-transformers-cifar10/models/resnet.py official repository ran · our draft was wrong MIT (permissive) · 0f23e7e681845fe0 · report
ResNet50 kentaroy47/vision-transformers-cifar10/models/resnet.py official repository ran MIT (permissive) · 21ba14c82993c2fe · report
conv_1x1_bn kentaroy47/vision-transformers-cifar10/models/mobilevit.py official repository ran · our draft was wrong MIT (permissive) · 3fb34464dacbb0d3 · report
conv_nxn_bn kentaroy47/vision-transformers-cifar10/models/mobilevit.py official repository ran · our draft was wrong MIT (permissive) · e01bc963fa545868 · report
create_mask kentaroy47/vision-transformers-cifar10/models/swin.py official repository ran · violated contract MIT (permissive) · c0a5cd5e8d1e1870 · report
dropout_layers kentaroy47/vision-transformers-cifar10/models/cait.py official repository ran MIT (permissive) · 5c177b03eb4157b4 · report
exists kentaroy47/vision-transformers-cifar10/models/cait.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
get_relative_distances kentaroy47/vision-transformers-cifar10/models/swin.py official repository ran · honoured contract MIT (permissive) · ea931f8eaca3c48c · report
pair kentaroy47/vision-transformers-cifar10/models/dyt.py official repository ran · violated contract fingerprinted MIT (permissive) · 6ba8cee9f5daea41 · report
posemb_sincos_2d kentaroy47/vision-transformers-cifar10/models/simplevit.py official repository ran · fixture could not drive it MIT (permissive) · 17f6d223949a7e58 · report
ResNet34 kentaroy47/vision-transformers-cifar10/models/resnet.py official repository unverified MIT (permissive) · ac3dd06d1a08c549 · report
convert_ln_to_dyt kentaroy47/vision-transformers-cifar10/models/dyt.py official repository unverified MIT (permissive) · 4e79865ad6540be5 · report
load_model kentaroy47/vision-transformers-cifar10/export_models.py official repository unverified MIT (permissive) · 157f64840d3dfd7c · report
mobilevit_xxs kentaroy47/vision-transformers-cifar10/models/mobilevit.py official repository unverified MIT (permissive) · 2e42a5b92c3a9f95 · report
swin_t kentaroy47/vision-transformers-cifar10/models/swin.py official repository unverified MIT (permissive) · 516538f47edf5014 · report

Tasks

BIG-bench Machine LearningImage ClassificationLanguage ModelingLanguage ModellingMachine TranslationTranslationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamSGD

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections