How Does Critical Batch Size Scale in Pre-training?

Hanlin Zhang, Depen Morwani, Nikhil Vyas, Jingfeng Wu, Difan Zou, Udaya Ghai, Dean Foster, Sham M. Kakade

TL;DR

This paper reveals that the Critical Batch Size (CBS)—the threshold where increasing data parallelism yields diminishing returns—scales primarily with the amount of training data, not the number of model parameters. By decoupling model and data size, the authors show that as we move toward "long-horizon" training on trillions of tokens, we can leverage significantly larger batch sizes to accelerate training without sacrificing compute efficiency.

Introduction & Motivation

In the world of Large Language Models (LLMs), time is money. To speed up training, researchers use data parallelism, which involves processing large "batches" of data simultaneously across thousands of GPUs.

However, batch size cannot be increased indefinitely. There is a "sweet spot" known as the Critical Batch Size (CBS). Below this limit, doubling your batch size roughly halves your training time, demonstrating linear scaling. Above it, diminishing returns set in: you spend more total compute (FLOPs) to reach the same level of model performance.

Until now, it wasn't clear what actually drives the CBS. Does a larger model inherently require a larger batch? Or is it the sheer volume of data that dictates the limit? Because standard scaling laws (like Chinchilla) usually scale model size ($N$) and data size ($D$) together, their individual effects on CBS have remained intertwined.

Methodology

To isolate these variables, the authors systematically decoupled model size and data size by pre-training a series of autoregressive language models ranging from 85M to 1.2B parameters on the C4 (Colossal Clean Crawled Corpus) dataset.

Key methodological innovations include:

  • Operationalizing CBS: The authors defined CBS as the batch size that incurs a 20% step overhead compared to perfect linear scaling for a specific target loss.
  • Constant+EWA Strategy: Standard learning rate schedules (like Cosine decay) require knowing the total number of steps in advance. Instead, the authors used a constant learning rate combined with Exponential Weight Averaging (EWA). This allowed them to treat "target loss" as the finish line, enabling fair comparisons across different batch sizes.
  • Extensive Hyper-parameter Tuning: Rigorous sweeps over learning rates, momentum ($\beta_1$), and Adam’s $\beta_2$ ensured that the observed CBS was a fundamental property of the training dynamics, not an artifact of suboptimal optimization.

Decoupling Model and Data Scale

The most significant insight from the study is that data is the primary driver of CBS.

Scaling behavior of Critical Batch Size across Chinchilla, Fixed Data, and Fixed Model settings.

As shown in the decoupling experiments:

  • Fixed Data Size: If you keep the dataset size fixed and grow the model, the CBS stays nearly flat.
  • Fixed Model Size: Conversely, if you keep the model size fixed and increase the training duration (more data), the CBS grows significantly.
  • Width vs. Depth: Whether a model is scaled by making it wider or deeper, the impact on CBS remains remarkably similar.

The authors provide theoretical backing for this phenomenon using "infinite-width" neural network theory. They argue that once a model is sufficiently wide, its training dynamics become independent of its width. Therefore, expanding the model further shouldn't drastically alter the optimal batch size.

Empirical Scaling Laws

By fitting power laws to their empirical observations, the authors quantified these relationships:

  • Chinchilla Scaling: When scaling $N$ and $D$ together (the standard Chinchilla setting), the CBS follows a clear power law: $B^* \approx 93.20 \times N^{0.47}$.
  • Decoupled Scaling: When holding data size constant, the dependence on model size is very weak ($B^* \propto N^{0.087}$).
  • Theoretical Alignment: Their analysis of infinite-dimensional least squares regression predicts that CBS should grow with data size $D$ as $D^c$ (where $0 < c < 0.5$), which perfectly aligns with their empirical observations.

These results suggest that as the industry moves toward training on massive datasets (e.g., 10T+ tokens), the CBS will continue to rise. This justifies the use of massive compute clusters with very large global batch sizes, ensuring high hardware utilization.

Limitations & Future Directions

  • Model Scale: While 1.2B parameters is significant for a controlled study, it is relatively small compared to frontier models (100B+). Testing at the 10B-100B scale is necessary to fully validate these laws.
  • Architecture Scope: The study focuses on autoregressive Transformers. Different architectures, such as Mixture of Experts (MoE) or State Space Models, might exhibit different noise scales and CBS behaviors.
  • Simplified Theory: The theoretical portion relies on Gaussian linear regression and infinite-width limits, which may not capture every non-linear nuance of LLM training.

Ultimately, this paper provides a practical roadmap for scaling data parallelism: if you plan to train on significantly more data, you can safely scale your batch size to keep training times manageable.

Summary updated

BibTeX
@inproceedings{zhang2025how,
  author = {Hanlin Zhang and Depen Morwani and Nikhil Vyas and Jingfeng Wu and Difan Zou and Udaya Ghai and Dean Foster and Sham M. Kakade},
  title = {{How Does Critical Batch Size Scale in Pre-training?}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=JCiF03qnmi},
}
Figure