Small Batch Size Training for Language Models: When Vanilla SGD Works, and Why Gradient Accumulation Is Wasteful
Not on the map. Why?
Abstract (arXiv)
Conventional wisdom dictates that small batch sizes make language model pretraining and fine-tuning unstable, motivating gradient accumulation, which trades off the number of optimizer steps for a proportional increase in batch size. While it is common to decrease the learning rate for smaller batch sizes, other hyperparameters are often held fixed. In this work, we revisit small batch sizes all the way down to batch size one, and we propose a rule for scaling Adam hyperparameters to small batch sizes. In particular, rather than holding the decay rate of the second moment fixed across batch sizes, we propose to hold its half-life fixed in terms of tokens. We find that small batch sizes (1) train stably, (2) are consistently more robust to hyperparameter choices, (3) achieve equal or better per-FLOP performance than larger batch sizes, and (4) notably enable stable language model training with vanilla SGD, even without momentum, despite storing no optimizer state. Building on these results, we provide practical recommendations for selecting a batch size and setting optimizer hyperparameters. We further recommend against gradient accumulation unless training on multiple devices with multiple model replicas. Finally, we show that a small batch size combined with an optimizer with a small state size can provide the performance benefits of full fine-tuning while maintaining a similar memory footprint to LoRA.
Key facts. Cited by 41 papers in the map (data through 14 Oct 2026). Builds on 66 of its 83 references that are in the map. First posted on arXiv 9 Jul 2025.
Builds on
66 of 83 references.
References · 66
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
38 more
- 2025Gemma 3 Technical Reportcited by 1,824
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
- 2017Large Batch Training of Convolutional Networkscited by 535
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
- 2018Shampoo: Preconditioned Stochastic Tensor Optimizationcited by 426
- 2019Implicit Regularization in Deep Matrix Factorizationcited by 405
- 2024LoRA Learns Less and Forgets Lesscited by 328
- 2018An Empirical Model of Large-Batch Trainingcited by 281
- 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 265
- 2015Escaping From Saddle Points --- Online Stochastic Gradient for Tensor Decompositioncited by 243
- 2020The large learning rate phase of deep learning: the catapult mechanismcited by 216
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 202
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 193
- 2024SOAP: Improving and Stabilizing Shampoo using Adamcited by 192
- 2021On the Origin of Implicit Regularization in Stochastic Gradient Descentcited by 184
- 2020The Break-Even Point on Optimization Trajectories of Deep Neural Networkscited by 150
- 2020Implicit Gradient Regularizationcited by 146
- 2017Revisiting Distributed Synchronous SGDcited by 142
- 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 135
- 2024Why Transformers Need Adam: A Hessian Perspectivecited by 124
- 2019Which Algorithmic Choices Matter at Which Batch Sizes? Insights From a Noisy Quadratic Modelcited by 117
- 2022Adam Can Converge Without Any Modification On Update Rulescited by 114
- 2022On the SDEs and Scaling Rules for Adaptive Gradient Algorithmscited by 104
- 2018Revisiting Small Batch Training for Deep Neural Networkscited by 102
- 2018On the Relation Between the Sharpest Directions of DNN Loss and the SGD Step Lengthcited by 88
- 2020Shape Matters: Understanding the Implicit Bias of the Noise Covariancecited by 88
- 2024Resolving Discrepancies in Compute-Optimal Scaling of Language Modelscited by 88
- 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 80
- 2017Gradient Descent Can Take Exponential Time to Escape Saddle Pointscited by 74
- 2024How Does Critical Batch Size Scale in Pre-training?cited by 73
- 2021Stochastic Training is Not Necessary for Generalizationcited by 63
50 most cited of 66 All 66 (JSON)
Built on by
Citing papers per year: 2025: 11; 2026: 30.
41 papers.
Sort:
By area:
- 2025AlphaFlow: Understanding and Improving MeanFlow Modelscited by 41
- 2025Pre-training under infinite computecited by 29
- 2025Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scalescited by 21
- 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Datacited by 19
- 2026Learning Rate Matters: Vanilla LoRA May Suffice for LLM Fine-tuningcited by 10
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theorycited by 10
- 2026Clarifying Shampoo: Adapting Spectral Descent to Stochasticity and the Parameter Trajectorycited by 8
- 2025Optimization Benchmark for Diffusion Models on Dynamical Systemscited by 7
- 2026ScheduleFree+: Scaling Learning-Rate-Free & Schedule-Free Learning to Large Language Modelscited by 7
- 2025Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Schedulingcited by 6
- 2025Relative Scaling Laws for LLMscited by 6
- 2025Efficient Hyperparameter Tuning via Trajectory Invariance Principlecited by 4
29 more
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2026Beware of the Batch Size: Hyperparameter Bias in Evaluating LoRAcited by 4
- 2026Adaptive Momentum and Nonlinear Damping for Neural Network Trainingcited by 3
- 2026Updating Parametric Knowledge with Context Distillation Retains Post-Training Capabilitiescited by 3
- 2026Disentangling Geometry, Performance, and Training in Language Modelscited by 3
- 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regimecited by 2
- 2026Adaptive Batch Sizes Using Non-Euclidean Gradient Noise Scales for Stochastic Sign and Spectral Descentcited by 2
- 2026Configuration-to-Performance Scaling Law with Neural Ansatzcited by 2
- 2026A Language-Guided Bayesian Optimization for Efficient LoRA Hyperparameter Searchcited by 2
- 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Ratescited by 2
- 2026FOAM: Frequency and Operator Error-Based Adaptive Damping Method for Reducing Staleness-Oriented Error for Shampoocited by 2
- 2026When to use what Schatten-p norm in deep learning?cited by 2
- 2026Compute Efficiency and Serial Runtime Tradeoffs for Stochastic Momentum Methodscited by 2
- 2026On the Nonlinearity of Learning Rate Scaling for LLM Trainingcited by 2
- 2025BEFT: Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimescited by 1
- 2026Celo2: Towards Learned Optimization Free Lunchcited by 1
- 2026The Future of Facts: Tracing the Factual Generation-Verification Gapcited by 1
- 2026Beyond a Single Explanation of the Adam--SGD Gapcited by 1
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTscited by 1
- 2026Optimizer Memory Schedules for Outscaling the Overtraining Axiscited by 1
- 2025Knowledge distillation through geometry-aware representational alignmentcited by 0
- 2026Predicting Large Model Test Losses with a Noisy Quadratic Systemcited by 0
- 2026Towards Visually Grounded Multimodal Summarization via Cross-Modal Transformer and Gated Attentioncited by 0
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensionscited by 0
- 2026On the Principles Behind Neural Network Optimizerscited by 0
- 2026Blog: Survey of Optimizerscited by 0
- 2026Trained Agentic Context Managementcited by 0
- 2026The Best Optimizer Depends on Batch Sizecited by 0
- 2026How Inner Optimizers Shape Replica Scalingcited by 0
- 2026How Inner Optimizers Shape Replica Scaling13 Oct 2026
- 2026The Best Optimizer Depends on Batch Size6 Oct 2026
- 2026Trained Agentic Context Management1 Oct 2026
- 2026Optimizer Memory Schedules for Outscaling the Overtraining Axis4 Sep 2026
- 2026Blog: Survey of Optimizers28 Aug 2026
- 2026On the Principles Behind Neural Network Optimizers17 Aug 2026
- 2026On the Nonlinearity of Learning Rate Scaling for LLM Training28 Jun 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
- 2026Compute Efficiency and Serial Runtime Tradeoffs for Stochastic Momentum Methods17 Jun 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
- 2026FOAM: Frequency and Operator Error-Based Adaptive Damping Method for Reducing Staleness-Oriented Error for Shampoo1 Jun 2026
29 more
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensions27 May 2026
- 2026The Future of Facts: Tracing the Factual Generation-Verification Gap26 May 2026
- 2026ScheduleFree+: Scaling Learning-Rate-Free & Schedule-Free Learning to Large Language Models18 May 2026
- 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Rates18 May 2026
- 2026Towards Visually Grounded Multimodal Summarization via Cross-Modal Transformer and Gated Attention12 May 2026
- 2026Predicting Large Model Test Losses with a Noisy Quadratic System9 May 2026
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theory16 Mar 2026
- 2026Disentangling Geometry, Performance, and Training in Language Models24 Feb 2026
- 2026Celo2: Towards Learned Optimization Free Lunch22 Feb 2026
- 2026Updating Parametric Knowledge with Context Distillation Retains Post-Training Capabilities17 Feb 2026
- 2026Configuration-to-Performance Scaling Law with Neural Ansatz10 Feb 2026
- 2026Beware of the Batch Size: Hyperparameter Bias in Evaluating LoRA10 Feb 2026
- 2026Clarifying Shampoo: Adapting Spectral Descent to Stochasticity and the Parameter Trajectory10 Feb 2026
- 2026Learning Rate Matters: Vanilla LoRA May Suffice for LLM Fine-tuning4 Feb 2026
- 2026Adaptive Batch Sizes Using Non-Euclidean Gradient Noise Scales for Stochastic Sign and Spectral Descent3 Feb 2026
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adam2 Feb 2026
- 2026Adaptive Momentum and Nonlinear Damping for Neural Network Training30 Jan 2026
- 2026A Language-Guided Bayesian Optimization for Efficient LoRA Hyperparameter Search19 Jan 2026
- 2025Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scales5 Dec 2025
- 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regime30 Oct 2025
- 2025Relative Scaling Laws for LLMs28 Oct 2025
- 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Data27 Oct 2025
- 2025AlphaFlow: Understanding and Improving MeanFlow Models23 Oct 2025
- 2025Optimization Benchmark for Diffusion Models on Dynamical Systems22 Oct 2025
- 2025Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Scheduling16 Oct 2025
- 2025Efficient Hyperparameter Tuning via Trajectory Invariance Principle29 Sep 2025
- 2025Knowledge distillation through geometry-aware representational alignment27 Sep 2025
- 2025BEFT: Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimes19 Sep 2025
- 2025Pre-training under infinite compute18 Sep 2025
- 2025AlphaFlow: Understanding and Improving MeanFlow Models23 Oct 2025
- 2025Optimization Benchmark for Diffusion Models on Dynamical Systems22 Oct 2025
- 2026Trained Agentic Context Managementcited by 0
- 2026Trained Agentic Context Management1 Oct 2026
- 2025Pre-training under infinite computecited by 29
- 2025Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scalescited by 21
- 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Datacited by 19
- 2026Learning Rate Matters: Vanilla LoRA May Suffice for LLM Fine-tuningcited by 10
- 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theorycited by 10
- 2026Clarifying Shampoo: Adapting Spectral Descent to Stochasticity and the Parameter Trajectorycited by 8
- 2026ScheduleFree+: Scaling Learning-Rate-Free & Schedule-Free Learning to Large Language Modelscited by 7
- 2025Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Schedulingcited by 6
- 2025Relative Scaling Laws for LLMscited by 6
- 2025Efficient Hyperparameter Tuning via Trajectory Invariance Principlecited by 4
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2026Beware of the Batch Size: Hyperparameter Bias in Evaluating LoRAcited by 4
12 most cited of 37 All 37 (JSON)
- 2026How Inner Optimizers Shape Replica Scaling13 Oct 2026
- 2026The Best Optimizer Depends on Batch Size6 Oct 2026
- 2026Optimizer Memory Schedules for Outscaling the Overtraining Axis4 Sep 2026
- 2026Blog: Survey of Optimizers28 Aug 2026
- 2026On the Principles Behind Neural Network Optimizers17 Aug 2026
- 2026On the Nonlinearity of Learning Rate Scaling for LLM Training28 Jun 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
- 2026Compute Efficiency and Serial Runtime Tradeoffs for Stochastic Momentum Methods17 Jun 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
- 2026FOAM: Frequency and Operator Error-Based Adaptive Damping Method for Reducing Staleness-Oriented Error for Shampoo1 Jun 2026
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensions27 May 2026
12 newest of 37 All 37 (JSON)