Fast Catch-Up, Late Switching: Optimal Batch Size Scheduling via Functional Scaling Laws
School of Mathematical Sciences, Peking University(北京大学数学科学学院);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心);School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学学院);State Key Laboratory of Cognitive Intelligence, University of Science and Technology of China(中国科学技术大学认知智能国家重点实验室);Meituan, Beijing(美团(北京));AI for Science Institute, Beijing(北京人工智能科学研究院)
Batch size scheduling (BSS) plays a critical role in large-scale deep learning training, influencing both optimization dynamics and computational efficiency. Yet, its theoretical foundations remain poorly understood. In this work, we show that the functional scaling law (FSL) framework introduced in Li et al. (2025a) provides a principled lens for analyzing BSS. Specifically, we characterize the optimal BSS under a fixed data budget and show that its structure depends sharply on task difficulty. For easy tasks, optimal schedules keep increasing batch size throughout. In contrast, for hard tasks, the optimal schedule maintains small batch sizes for most of training and switches to large batches only in a late stage. To explain the emergence of late switching, we uncover a dynamical mechanism -- the fast catch-up effect -- which also manifests in large language model (LLM) pretraining. After switching from small to large batches, the loss rapidly aligns with the constant large-batch trajectory. Using FSL, we show that this effect stems from rapid forgetting of accumulated gradient noise, with the catch-up speed determined by task difficulty. Crucially, this effect implies that large batches can be safely deferred to late training without sacrificing performance, while substantially reducing data consumption. Finally, extensive LLM pretraining experiments -- covering both Dense and MoE architectures with up to 1.1B parameters and 1T tokens -- validate our theoretical predictions. Across all settings, late-switch schedules consistently outperform constant-batch and early-switch baselines.
LLM Serving Optimization with Variable Prefill and Decode Lengths
Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系);Department of Management Science and Engineering, Stanford University(斯坦福大学管理科学与工程系);Department of Industrial Engineering and Decision Analytics, HKUST(香港科技大学工业工程与决策分析系)
Optimizing Job Shop Scheduling in the Furniture Industry: A Reinforcement Learning Approach Considering Machine Setup, Batch Variability, and Intralogistics
Faculty of Wood Technology and Construction(木材技术与建筑学院);Rosenheim Technical University of Applied Sciences(罗森heim应用技术大学);Center for Research, Development and Transfer(研究、开发与转让中心);Faculty of Management and Engineering(管理与工程学院)
Catch-Up Distillation: You Only Need to Train Once for Accelerating Sampling
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Southeast University(东南大学);Hong Kong University of Science and Technology(香港科技大学);Tsinghua University(清华大学)
Apt-Serve: Adaptive Request Scheduling on Hybrid Cache for Scalable LLM Inference Serving
The Hong Kong University of Science and Technology(香港科技大学);Shanghai Jiao Tong University(上海交通大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Throughput-Optimal Scheduling Algorithms for LLM Inference and AI Agents
School of Operations Research and Information Engineering, Cornell University(Cornell大学运筹学与信息工程学院);Operations Management, Booth School of Business, University of Chicago(芝加哥大学博斯商学院运营管理系);Decision, Risk and Operations, Columbia Business School, Columbia University(哥伦比亚大学哥伦比亚商学院决策、风险与运营系)
Learning Faster without Deeper Networks: A*-Inspired Batch Selection for Efficient CNN Training
AI Laboratory, University Metropolitan Tirana(地拉那都市大学人工智能实验室);Laboratory of Images Signals and Intelligent Systems, ESIEE Paris(巴黎高等电子与电工工程师学校图像信号与智能系统实验室)