[论文解读] On the Role of Batch Size in Stochastic Conditional Gradient Methods
本工作分析在 μ-Kurdyka–Łojasiewicz (μ-KL) 条件下,批量大小、序列长度与令牌预算如何在随机条件梯度方法中相互作用,推导 BST 伸缩规律,并提出自适应策略与理论支持的指引,在 NanoGPT 上得到验证。
We study the role of batch size in stochastic conditional gradient methods under a $μ$-Kurdyka-Łojasiewicz ($μ$-KL) condition. Focusing on momentum-based stochastic conditional gradient algorithms (e.g., Scion), we derive a new analysis that explicitly captures the interaction between stepsize, batch size, and stochastic noise. Our study reveals a regime-dependent behavior: increasing the batch size initially improves optimization accuracy but, beyond a critical threshold, the benefits saturate and can eventually degrade performance under a fixed token budget. Notably, the theory predicts the magnitude of the optimal stepsize and aligns well with empirical practices observed in large-scale training. Leveraging these insights, we derive principled guidelines for selecting the batch size and stepsize, and propose an adaptive strategy that increases batch size and sequence length during training while preserving convergence guarantees. Experiments on NanoGPT are consistent with the theoretical predictions and illustrate the emergence of the predicted scaling regimes. Overall, our results provide a theoretical framework for understanding batch size scaling in stochastic conditional gradient methods and offer guidance for designing efficient training schedules in large-scale optimization.
研究动机与目标
- Motivate and study how batch size, sequence length, and token budget jointly affect optimization in stochastic conditional gradient methods.
- Derive explicit error bounds as a function of batch size, sequence length, and total token budget under a μ-KL condition.
- Identify regime-specific behavior and the critical BST scaling BS ~ T^{2/3} where performance is optimized.
- Provide practical guidelines and adaptive strategies for choosing and updating (B, S, β) during training under fixed token budgets.
提出的方法
- Formulate stochastic SCG with momentum under a μ-KL error bound and smoothness assumptions.
- Derive convergence guarantees with explicit dependence on batch size B, sequence length S, and token budget T.
- Translate iteration complexity to token complexity via T = KBS to obtain BST scaling rules.
- Derive and present the BST scaling: BS ~ T^{2/3}, β ~ 1/K, α = const, and a two-stage training protocol.
- Propose adaptive scheduling rules for adjusting B, S, and β across training stages and token-budget growth.
- Validate theory with experiments on NanoGPT showing regime transitions and alignment with predictions.
实验结果
研究问题
- RQ1How do batch size B, sequence length S, and token budget T jointly influence optimization error under stochastic SCG with μ-KL?
- RQ2What is the regime-dependent behavior of performance as BS changes, and what is the optimal BST scaling under a fixed token budget?
- RQ3Can we derive practical, token-budget-aware guidelines for adapting (B, S, β) during training?
- RQ4Do the theoretical predictions hold empirically on large-scale language model training (NanoGPT) and how do they manifest in regime transitions?
主要发现
- There are three regimes: noise-dominated (increasing BS helps), intermediate (error largely independent of BS), and large-batch (error grows with BS under fixed T).
- The BST scaling rule BS ~ T^{2/3} captures the principal tradeoffs and yields a regime where large batches can be effective with proper scaling.
- The Frank–Wolfe stepsize β should scale as 1/K and momentum α can be kept constant under BST, enabling token-budget-aware schedules.
- A two-stage (or multi-stage) training protocol with adaptive BST and step-size preserves convergence guarantees while improving token efficiency.
- Empirical results on NanoGPT align with the predicted scaling regimes and demonstrate the emergence of the scaling behavior with increasing token budgets.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。