mlsanityData to 14 Oct 2026

Small Batch Size Training for Language Models: When Vanilla SGD Works, and Why Gradient Accumulation Is Wasteful

arXiv 2507.07101 ↗First posted 9 Jul 2025cs.LGcited by 41

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  6. 2020Scaling Laws for Neural Language Modelscited by 6,586
  7. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  9. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  10. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  11. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  12. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
38 more
  1. 2025Gemma 3 Technical Reportcited by 1,824
  2. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  3. 2019Root Mean Square Layer Normalizationcited by 1,480
  4. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  5. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  6. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
  7. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  8. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  9. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
  10. 2017Large Batch Training of Convolutional Networkscited by 535
  11. 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
  12. 2018Shampoo: Preconditioned Stochastic Tensor Optimizationcited by 426
  13. 2019Implicit Regularization in Deep Matrix Factorizationcited by 405
  14. 2024LoRA Learns Less and Forgets Lesscited by 328
  15. 2018An Empirical Model of Large-Batch Trainingcited by 281
  16. 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 265
  17. 2015Escaping From Saddle Points --- Online Stochastic Gradient for Tensor Decompositioncited by 243
  18. 2020The large learning rate phase of deep learning: the catapult mechanismcited by 216
  19. 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 202
  20. 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 193
  21. 2024SOAP: Improving and Stabilizing Shampoo using Adamcited by 192
  22. 2021On the Origin of Implicit Regularization in Stochastic Gradient Descentcited by 184
  23. 2020The Break-Even Point on Optimization Trajectories of Deep Neural Networkscited by 150
  24. 2020Implicit Gradient Regularizationcited by 146
  25. 2017Revisiting Distributed Synchronous SGDcited by 142
  26. 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 135
  27. 2024Why Transformers Need Adam: A Hessian Perspectivecited by 124
  28. 2019Which Algorithmic Choices Matter at Which Batch Sizes? Insights From a Noisy Quadratic Modelcited by 117
  29. 2022Adam Can Converge Without Any Modification On Update Rulescited by 114
  30. 2022On the SDEs and Scaling Rules for Adaptive Gradient Algorithmscited by 104
  31. 2018Revisiting Small Batch Training for Deep Neural Networkscited by 102
  32. 2018On the Relation Between the Sharpest Directions of DNN Loss and the SGD Step Lengthcited by 88
  33. 2020Shape Matters: Understanding the Implicit Bias of the Noise Covariancecited by 88
  34. 2024Resolving Discrepancies in Compute-Optimal Scaling of Language Modelscited by 88
  35. 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 80
  36. 2017Gradient Descent Can Take Exponential Time to Escape Saddle Pointscited by 74
  37. 2024How Does Critical Batch Size Scale in Pre-training?cited by 73
  38. 2021Stochastic Training is Not Necessary for Generalizationcited by 63

50 most cited of 66 All 66 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 11; 2026: 30.

41 papers.

Sort:

By area:

  1. 2025AlphaFlow: Understanding and Improving MeanFlow Modelscited by 41
  2. 2025Pre-training under infinite computecited by 29
  3. 2025Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scalescited by 21
  4. 2025How Muon's Spectral Design Benefits Generalization: A Study on Imbalanced Datacited by 19
  5. 2026Learning Rate Matters: Vanilla LoRA May Suffice for LLM Fine-tuningcited by 10
  6. 2026Deriving Hyperparameter Scaling Laws via Modern Optimization Theorycited by 10
  7. 2026Clarifying Shampoo: Adapting Spectral Descent to Stochasticity and the Parameter Trajectorycited by 8
  8. 2025Optimization Benchmark for Diffusion Models on Dynamical Systemscited by 7
  9. 2026ScheduleFree+: Scaling Learning-Rate-Free & Schedule-Free Learning to Large Language Modelscited by 7
  10. 2025Seesaw: Accelerating Training by Balancing Learning Rate and Batch Size Schedulingcited by 6
  11. 2025Relative Scaling Laws for LLMscited by 6
  12. 2025Efficient Hyperparameter Tuning via Trajectory Invariance Principlecited by 4
29 more
  1. 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
  2. 2026Beware of the Batch Size: Hyperparameter Bias in Evaluating LoRAcited by 4
  3. 2026Adaptive Momentum and Nonlinear Damping for Neural Network Trainingcited by 3
  4. 2026Updating Parametric Knowledge with Context Distillation Retains Post-Training Capabilitiescited by 3
  5. 2026Disentangling Geometry, Performance, and Training in Language Modelscited by 3
  6. 2025Implicit Bias of Per-sample Adam on Separable Data: Departure from the Full-batch Regimecited by 2
  7. 2026Adaptive Batch Sizes Using Non-Euclidean Gradient Noise Scales for Stochastic Sign and Spectral Descentcited by 2
  8. 2026Configuration-to-Performance Scaling Law with Neural Ansatzcited by 2
  9. 2026A Language-Guided Bayesian Optimization for Efficient LoRA Hyperparameter Searchcited by 2
  10. 2026Revisiting the Adam-SGD Gap in LLM Pre-Training: The Role of Large Effective Learning Ratescited by 2
  11. 2026FOAM: Frequency and Operator Error-Based Adaptive Damping Method for Reducing Staleness-Oriented Error for Shampoocited by 2
  12. 2026When to use what Schatten-p norm in deep learning?cited by 2
  13. 2026Compute Efficiency and Serial Runtime Tradeoffs for Stochastic Momentum Methodscited by 2
  14. 2026On the Nonlinearity of Learning Rate Scaling for LLM Trainingcited by 2
  15. 2025BEFT: Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimescited by 1
  16. 2026Celo2: Towards Learned Optimization Free Lunchcited by 1
  17. 2026The Future of Facts: Tracing the Factual Generation-Verification Gapcited by 1
  18. 2026Beyond a Single Explanation of the Adam--SGD Gapcited by 1
  19. 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTscited by 1
  20. 2026Optimizer Memory Schedules for Outscaling the Overtraining Axiscited by 1
  21. 2025Knowledge distillation through geometry-aware representational alignmentcited by 0
  22. 2026Predicting Large Model Test Losses with a Noisy Quadratic Systemcited by 0
  23. 2026Towards Visually Grounded Multimodal Summarization via Cross-Modal Transformer and Gated Attentioncited by 0
  24. 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensionscited by 0
  25. 2026On the Principles Behind Neural Network Optimizerscited by 0
  26. 2026Blog: Survey of Optimizerscited by 0
  27. 2026Trained Agentic Context Managementcited by 0
  28. 2026The Best Optimizer Depends on Batch Sizecited by 0
  29. 2026How Inner Optimizers Shape Replica Scalingcited by 0