Is your batch size the problem? Revisiting the Adam-SGD gap in language modeling
Not on the map. Why?
Abstract (arXiv)
Adam is known to perform significantly better than Stochastic Gradient Descent (SGD) in language models, a phenomenon for which a number of explanations have been proposed. In this work, we revisit this "optimizer gap" through a series of comprehensively tuned baseline training runs for language modeling with Transformers. We exhaustively study how momentum, gradient clipping, and batch size affect the gap between SGD and Adam. Our empirical findings show that SGD with momentum can actually perform similarly to Adam in small-batch settings, if tuned correctly. We revisit existing explanations for Adam's advantage, including heavy-tailed class imbalance, directional sharpness, and Hessian heterogeneity, which struggle to directly explain this phenomenon. Towards bridging this gap in our understanding, by analyzing our Transformer training runs and simple quadratic settings inspired by the literature, we provide new insights, driven by stochastic differential equation models, into the role of batch size on the training dynamics.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 40 of its 49 references that are in the map. First posted on arXiv 14 Jun 2025.
Builds on
40 of 49 references.
References · 40
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020GLU Variants Improve Transformercited by 1,804
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 2019Root Mean Square Layer Normalizationcited by 1,480
28 more
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2018signSGD: Compressed Optimisation for Non-Convex Problemscited by 571
- 2025Muon is Scalable for LLM Trainingcited by 428
- 2019Why gradient clipping accelerates training: A theoretical justification for adaptivitycited by 341
- 2017The Marginal Value of Adaptive Gradient Methods in Machine Learningcited by 250
- 2024Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durationscited by 170
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2024Why Transformers Need Adam: A Hessian Perspectivecited by 124
- 2023Noise Is Not the Main Factor Behind the Gap Between SGD and Adam on Transformers, but Sign Descent Might Becited by 114
- 2022On the SDEs and Scaling Rules for Adaptive Gradient Algorithmscited by 104
- 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 98
- 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 80
- 2025Practical Efficiency of Muon for Pretrainingcited by 80
- 2024How Does Critical Batch Size Scale in Pre-training?cited by 73
- 2024Implicit Bias of AdamW: ℓ_∞ Norm Constrained Optimizationcited by 58
- 2023Toward Understanding Why Adam Converges Faster Than SGD for Transformerscited by 53
- 2020Disentangling Adaptive Gradient Methods from Learning Ratescited by 42
- 2024Deconstructing What Makes a Good Optimizer for Language Modelscited by 41
- 2025In Search of Adam's Secret Saucecited by 40
- 2022How Does Adaptive Optimization Impact Local Neural Network Geometry?cited by 24
- 2022How to Fine-Tune Vision Models with SGDcited by 23
- 2024Adam Exploits ℓ_∞-geometry of Loss Landscape via Coordinate-wise Adaptivitycited by 23
- 2024Adaptive Methods through the Lens of SDEs: Theoretical Insights on the Role of Noisecited by 23
- 2025Gradient Heterogeneity Complements Hessian Heterogeneity in Transformer Optimizationcited by 7
- 2025On the Interaction of Batch Noise, Adaptivity, and Compression, under (L0,L1)-Smoothness: An SDE Approachcited by 4
Built on by
Citing papers per year: 2025: 5; 2026: 10.
15 papers.
Sort:
By area:
- 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Datacited by 19
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theorycited by 10
- 2025Optimization Benchmark for Diffusion Models on Dynamical Systemscited by 7
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMscited by 7
- 2025Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Schedulingcited by 6
- 2025On the Origin of Algorithmic Progress in AIcited by 6
- 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regimecited by 2
- 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Ratescited by 2
- 2026When to use what Schatten-p norm in deep learning?cited by 2
- 2026Beyond a Single Explanation of the Adam--SGD Gapcited by 1
- 2026Excitation: Momentum For Expertscited by 0
- 2026Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamicscited by 0
3 more
- 2026A Theoretical and Experimental Study of a Novel Adaptive Learning Algorithmcited by 0
- 2026On the Principles Behind Neural Network Optimizerscited by 0
- 2026The Best Optimizer Depends on Batch Sizecited by 0
- 2026The Best Optimizer Depends on Batch Size6 Oct 2026
- 2026On the Principles Behind Neural Network Optimizers17 Aug 2026
- 2026When to use what Schatten-p norm in deep learning?13 Jun 2026
- 2026Beyond a Single Explanation of the Adam--SGD Gap12 Jun 2026
- 2026A Theoretical and Experimental Study of a Novel Adaptive Learning Algorithm28 May 2026
- 2026Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamics21 May 2026
- 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Rates18 May 2026
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theory16 Mar 2026
- 2026Excitation: Momentum For Experts25 Feb 2026
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs7 Feb 2026
- 2025On the Origin of Algorithmic Progress in AI26 Nov 2025
- 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regime30 Oct 2025
- 2026Excitation: Momentum For Expertscited by 0
- 2026Excitation: Momentum For Experts25 Feb 2026
- 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Datacited by 19
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theorycited by 10
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMscited by 7
- 2025Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Schedulingcited by 6
- 2025On the Origin of Algorithmic Progress in AIcited by 6
- 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regimecited by 2
- 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Ratescited by 2
- 2026When to use what Schatten-p norm in deep learning?cited by 2
- 2026Beyond a Single Explanation of the Adam--SGD Gapcited by 1
- 2026Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamicscited by 0
- 2026A Theoretical and Experimental Study of a Novel Adaptive Learning Algorithmcited by 0
- 2026On the Principles Behind Neural Network Optimizerscited by 0
12 most cited of 13 All 13 (JSON)
- 2026The Best Optimizer Depends on Batch Size6 Oct 2026
- 2026On the Principles Behind Neural Network Optimizers17 Aug 2026
- 2026When to use what Schatten-p norm in deep learning?13 Jun 2026
- 2026Beyond a Single Explanation of the Adam--SGD Gap12 Jun 2026
- 2026A Theoretical and Experimental Study of a Novel Adaptive Learning Algorithm28 May 2026
- 2026Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamics21 May 2026
- 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Rates18 May 2026
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theory16 Mar 2026
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs7 Feb 2026
- 2025On the Origin of Algorithmic Progress in AI26 Nov 2025
- 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regime30 Oct 2025
- 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Data27 Oct 2025
12 newest of 13 All 13 (JSON)