paper-with-me

Papers

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

2026-01-08 · Yunhua Zhou, Junhao Huang, Shuhao Xing, Yechen Zhang, Runyu Peng, Qiping Guo, Xipeng Qiu arxiv

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.

📄 PDF Abstract BibTeX arXiv:2601.05034

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training

2025-05-29 · William Merrill, Shane Arora, Dirk Groeneveld, Hannaneh Hajishirzi

The right batch size is important when training language models at scale: a large batch size is necessary for fast training, but a batch size that is too large will harm token efficiency. To navigate this tradeoff, McCan…

Language ModelingLanguage ModellingNavigate

AdaScale SGD: A User-Friendly Algorithm for Distributed Training

2020-07-09 · ICML 2020 1 · Tyler B. Johnson, Pulkit Agrawal, Haijie Gu, Carlos Guestrin

When using large-batch training to speed up stochastic gradient descent, learning rates must adapt to new batch sizes in order to maximize speed-ups and preserve model quality. Re-tuning learning rates is resource intens…

image-classificationImage ClassificationMachine Translationobject-detection+4

AdAdaGrad: Adaptive Batch Size Schemes for Adaptive Gradient Methods

2024-02-17 · Tim Tsz-Kit Lau, Han Liu, Mladen Kolar

The choice of batch sizes in minibatch stochastic gradient optimizers is critical in large-scale model training for both optimization and generalization performance. Although large-batch training is arguably the dominant…

image-classificationImage Classification

Large-Batch Training for LSTM and Beyond

2019-01-24 · Yang You, Jonathan Hseu, Chris Ying, James Demmel 외

Large-batch training approaches have enabled researchers to utilize large-scale distributed processing and greatly accelerate deep-neural net (DNN) training. For example, by scaling the batch size from 256 to 32K, resear…

Large Batch Optimization for Object Detection: Training COCO in 12 Minutes

2020-08-01 · ECCV 2020 8 · Tong Wang, Yousong Zhu, Chaoyang Zhao, Wei Zeng 외

Most of existing object detectors usually adopt a small training batch size ( ~16), which severely hinders the whole community from exploring large-scale datasets due to the extremely long training procedure. In this pap…

object-detectionObject Detection