atlas

Research map / Optimization / Optimizers

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

NeurIPS 2025 · Optimization › Optimizers · approach: Memory-efficient LLM optimizers · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that small batch sizes (down to 1) train stably and are more robust to hyperparameters when Adam's second-moment half-life is held fixed in tokens, enabling competitive vanilla SGD and memory-efficient Adafactor fine-tuning, and argues against gradient accumulation.

Problem

Small batch sizes are commonly believed to make language model pretraining and fine-tuning unstable, motivating gradient accumulation, while other optimizer hyperparameters (beta1, beta2) are typically held fixed across batch sizes.

Approach

Scale Adam's beta2 so that its half-life measured in training tokens stays fixed across batch sizes (beta2* = beta2^(B*/B)); with this rule small batches (down to 1) train stably, are more hyperparameter-robust, and make vanilla SGD and Adafactor competitive.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use batch size 1 instead of larger batch sizes30M model with tuned optimizers · FineWeb-Eduvalidation lossHelped
use batch size 1 instead of batch size 512Adam · GPT-2validation lossHelped
scale β₂ to keep its token half-life fixed across batch sizesAdam · C4, 19M modelperformanceHelped
use vanilla SGD without momentum30M model at small batch sizes · FineWeb-Eduvalidation lossHelped
use SGD with batch size 1 instead of the AdamW baselineGPT-3 (1.3B) · FineWebperformanceNo clear effect
use Adam or Adafactor with batch size 1 instead of the AdamW baselineGPT-3 (1.3B) · FineWebperformanceHelped
use Adafactor instead of Adam for full fine-tuningGemma 3 (4B) · MATHperformance-memory trade-offHelped
use bfloat16 weights with stochastic rounding instead of float32 weights (ablation)Adafactor fine-tuning · MATHperformanceNo clear effect
keep β₂ fixed instead of keeping its token half-life fixed (ablation)Adam at small batch sizes · FineWeb-Eduvalidation lossHurt
use square-root learning-rate scaling with batch size instead of the empirically preferred slower scaling (ablation)Adam · FineWeb-Eduvalidation lossHurt
vary Adam learning rate, β₁, or β₂ away from their optimum (ablation)Adam at larger batch sizes · FineWeb-Edu, 30M modelvalidation lossHurt
vary Adam learning rate, β₁, or β₂ away from their optimum (ablation)Adam at batch size 1 · FineWeb-Edu, 30M modelvalidation lossNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu FineWeb C4 MATH

Benchmarks: FineWeb-Edu validation loss FineWeb validation loss C4 validation loss MATH

Metrics: validation loss memory footprint loss sensitivity to hyperparameters MFU

Baselines: AdamW Adam Adafactor Muon SGD LoRA

Builds on: Adam Adafactor Muon Chinchilla scaling laws

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy