How Does Critical Batch Size Scale in Pre-training?

Hanlin Zhang, Depen Morwani, Nikhil Vyas, Jingfeng Wu, Difan Zou +3 more
2/12/2026

No official code found. Best implementation: hlzhang109/critical-batch-size (10 stars, MIT, last commit 2025-02-20).

Abstract

Training large-scale models under given resources requires careful design of parallelism strategies. In particular, the efficiency notion of critical batch size (CBS), concerning the compromise between time and compute, marks the threshold beyond which greater data parallelism leads to diminishing returns. To operationalize it, we propose a measure of CBS and pre-train a series of auto-regressive language models, ranging from 85 million to 1.2 billion parameters, on the C4 dataset. Through extensive hyper-parameter sweeps and careful control of factors such as batch size, momentum, and learning rate along with its scheduling, we systematically investigate the impact of scale on CBS. Then we fit scaling laws with respect to model and data sizes to decouple their effects. Overall, our results demonstrate that CBS scales primarily with data size rather than model size, a finding we justify theoretically through the analysis of infinite-width limits of neural networks and infinite-dimensional least squares regression. Of independent interest, we highlight the importance of common hyper-parameter choices and strategies for studying large-scale pre-training beyond fixed training durations.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2025] How Does Critical Batch Size Scale in Pre-training?

101Shell, PythonOct 17, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhang2026does,
  title  = {How Does Critical Batch Size Scale in Pre-training?},
  author = {Hanlin Zhang and Depen Morwani and Nikhil Vyas and Jingfeng Wu and Difan Zou and Udaya Ghai and Dean Foster and S. Kakade},
  year   = {2026},
  eprint = {2410.21676},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.21676},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.21676.svg)](https://codeofpaper.com/paper/2410.21676)

Discussion