Lune

ICLR2023Top-tier venue

Noise Is Not the Main Factor Behind the Gap Between Sgd and Adam on Transformers, But Sign Descent Might Be

Frederik Kunstner, Jacques Chen, Jonathan Wilder Lavington, Mark Schmidt

Abstract

The success of the Adam optimizer on a wide array of architectures has made it the default in settings where stochastic gradient descent (SGD) performs poorly. However, our theoretical understanding of this discrepancy is lagging, preventing the development of significant improvements on either algorithm. Recent work advances the hypothesis that Adam and other heuristics like gradient clipping outperform SGD on language tasks because the distribution of the error induced by sampling has heavy tails. This suggests that Adam outperform SGD because it uses a more robust gradient estimate. We evaluate this hypothesis by varying the batch size, up to the entire dataset, to control for stochasticity. We present evidence that stochasticity and heavy-tailed noise are not major factors in the performance gap between SGD and Adam. Rather, Adam performs better as the batch size increases, while SGD is less effective at taking advantage of the reduction in noise. This raises the question as to why Adam outperforms SGD in the full-batch setting. Through further investigation of simpler variants of SGD, we find that the behavior of Adam with large batches is similar to sign descent with momentum.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

62 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training cites Why are Adaptive Methods Good for Attention Models?
  • Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training cites Symbolic Discovery of Optimization Algorithms
  • Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models cites Why are Adaptive Methods Good for Attention Models?
  • Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models cites Symbolic Discovery of Optimization Algorithms
  • Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Why are Adaptive Methods Good for Attention Models? cites Stochastic Optimization with Heavy-Tailed Noise via Accelerated Gradient Clipping
  • Why are Adaptive Methods Good for Attention Models? cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Stochastic Optimization with Heavy-Tailed Noise via Accelerated Gradient Clipping cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Convergence of Adam Under Relaxed Assumptions cites Why are Adaptive Methods Good for Attention Models?
  • Convergence of Adam Under Relaxed Assumptions cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Convergence of Adam Under Relaxed Assumptions cites Linear attention is (maybe) all you need (to understand Transformer optimization)
  • Linear attention is (maybe) all you need (to understand Transformer optimization) cites Why are Adaptive Methods Good for Attention Models?
  • Linear attention is (maybe) all you need (to understand Transformer optimization) cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Why Transformers Need Adam: A Hessian Perspective cites Why are Adaptive Methods Good for Attention Models?
  • Why Transformers Need Adam: A Hessian Perspective cites Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Why Transformers Need Adam: A Hessian Perspective cites Convergence of Adam Under Relaxed Assumptions
  • Why Transformers Need Adam: A Hessian Perspective cites Linear attention is (maybe) all you need (to understand Transformer optimization)
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers62

  1. Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingHong Liu, Zhiyuan Li, David Leo Wright Hall, Percy Liang et al.ICLR 2024 · 264 citations
  2. Why Transformers Need Adam: A Hessian PerspectiveYushun Zhang, Congliang Chen, Tian Ding, Ziniu Li et al.NeurIPS 2024 · 149 citations
  3. Convergence of Adam Under Relaxed AssumptionsHaochuan Li, Alexander Rakhlin, Ali JadbabaieNeurIPS 2023 · 132 citations
  4. Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language ModelsFrederik Kunstner, Alan Milligan, Robin Yadav, Mark Schmidt et al.NeurIPS 2024 · 100 citations
  5. Linear attention is (maybe) all you need (to understand Transformer optimization)Kwangjun Ahn, Xiang Cheng, Minhak Song, Chulhee Yun et al.ICLR 2024 · 92 citations

Builds on13

  1. Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu et al.ICLR 2020 · 1,170 citations
  2. Symbolic Discovery of Optimization AlgorithmsXiangning Chen, Chen Liang, Da Huang, Esteban Real et al.NeurIPS 2023 · 734 citations
  3. Why Gradient Clipping Accelerates Training: A Theoretical Justification for AdaptivityJingzhao Zhang, Tianxing He, Suvrit Sra, Ali JadbabaieICLR 2020 · 598 citations
  4. Why are Adaptive Methods Good for Attention Models?Jingzhao Zhang, Sai Praneeth Karimireddy, Andreas Veit, Seungyeon Kim et al.NeurIPS 2020 · 397 citations
  5. Stochastic Optimization with Heavy-Tailed Noise via Accelerated Gradient ClippingEduard Gorbunov, Marina Danilova, Alexander V. GasnikovNeurIPS 2020 · 181 citations

Related papers

  1. Clipping Improves Adam-Norm and AdaGrad-Norm when the Noise Is Heavy-TailedSavelii Chezhegov, Yaroslav Klyukin, Andrei Semenov, Aleksandr Beznosikov et al.ICML 2025
  2. Multiplicative Noise and Heavy Tails in Stochastic OptimizationLiam Hodgkinson, Michael W. MahoneyICML 2021 · 90 citations
  3. Adaptive Methods through the Lens of SDEs: Theoretical Insights on the Role of NoiseEnea Monzio Compagnoni, Tianlin Liu, Rustem Islamov, Frank Norbert Proske et al.ICLR 2025
  4. Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang et al.NeurIPS 2022 · 111 citations
  5. Scaling Laws for Gradient Descent and Sign Descent for Linear Bigram Models under Zipf's LawFrederik Kunstner, Francis BachNeurIPS 2025 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines