How to Set the Batch Size for Large-Scale Pre-training?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhou, Yunhua, Huang, Junhao, Xing, Shuhao, Zhang, Yechen, Peng, Runyu, Guo, Qiping, Qiu, Xipeng
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915717962530816
author Zhou, Yunhua
Huang, Junhao
Xing, Shuhao
Zhang, Yechen
Peng, Runyu
Guo, Qiping
Qiu, Xipeng
author_facet Zhou, Yunhua
Huang, Junhao
Xing, Shuhao
Zhang, Yechen
Peng, Runyu
Guo, Qiping
Qiu, Xipeng
contents The concept of Critical Batch Size, as pioneered by OpenAI, has long served as a foundational principle for large-scale pre-training. However, with the paradigm shift towards the Warmup-Stable-Decay (WSD) learning rate scheduler, we observe that the original theoretical framework and its underlying mechanisms fail to align with new pre-training dynamics. To bridge this gap between theory and practice, this paper derives a revised E(S) relationship tailored for WSD scheduler, characterizing the trade-off between training data consumption E and steps S during pre-training. Our theoretical analysis reveals two fundamental properties of WSD-based pre-training: 1) B_min, the minimum batch size threshold required to achieve a target loss, and 2) B_opt, the optimal batch size that maximizes data efficiency by minimizing total tokens. Building upon these properties, we propose a dynamic Batch Size Scheduler. Extensive experiments demonstrate that our revised formula precisely captures the dynamics of large-scale pre-training, and the resulting scheduling strategy significantly enhances both training efficiency and final model quality.
format Preprint
id arxiv_https___arxiv_org_abs_2601_05034
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle How to Set the Batch Size for Large-Scale Pre-training?
Zhou, Yunhua
Huang, Junhao
Xing, Shuhao
Zhang, Yechen
Peng, Runyu
Guo, Qiping
Qiu, Xipeng
Artificial Intelligence
The concept of Critical Batch Size, as pioneered by OpenAI, has long served as a foundational principle for large-scale pre-training. However, with the paradigm shift towards the Warmup-Stable-Decay (WSD) learning rate scheduler, we observe that the original theoretical framework and its underlying mechanisms fail to align with new pre-training dynamics. To bridge this gap between theory and practice, this paper derives a revised E(S) relationship tailored for WSD scheduler, characterizing the trade-off between training data consumption E and steps S during pre-training. Our theoretical analysis reveals two fundamental properties of WSD-based pre-training: 1) B_min, the minimum batch size threshold required to achieve a target loss, and 2) B_opt, the optimal batch size that maximizes data efficiency by minimizing total tokens. Building upon these properties, we propose a dynamic Batch Size Scheduler. Extensive experiments demonstrate that our revised formula precisely captures the dynamics of large-scale pre-training, and the resulting scheduling strategy significantly enhances both training efficiency and final model quality.
title How to Set the Batch Size for Large-Scale Pre-training?
topic Artificial Intelligence
url https://arxiv.org/abs/2601.05034