[Research Deep Dive] Scaling Law for Batch Size: Why µP Isn't Enough for Your Token Budget

On the Role of Batch Size in Stochastic Conditional Gradient Methods

Summary
Problem
Method
Results
Takeaways
Abstract

This paper introduces a token-budget-aware theoretical framework for momentum-based Stochastic Conditional Gradient (SCG) methods, such as Scion, under a µ-Kurdyka–Łojasiewicz (µ-KL) condition. It identifies a "BST scaling rule" that governs the optimal relationship between batch size (B), sequence length (S), and token budget (T), achieving state-of-the-art results in hyperparameter transfer for NanoGPT.

TL;DR

Training large-scale models is a race against a fixed token budget (T). While frameworks like µP ensure your gradients don't explode at step zero, they don't tell you how to scale batch size () or sequence length () as you train longer. This paper provides a new theoretical compass: the BST Scaling Rule. By analyzing Stochastic Conditional Gradient (SCG) methods under the µ-KL condition, the authors prove that the optimal batch-sequence scale follows .

The Motivation: The "Too Large Batch" Trap

In modern LLM training, we often increase batch size to utilize hardware better. However, there is a known "critical batch size" beyond which optimization efficiency collapses under a fixed token budget.

Existing methods like µP (Maximal Update Parameterization) focus on local stability—ensuring updates stay regardless of width. But optimization is a global journey. The authors argue that a learning rate that is optimal for a small budget becomes provably suboptimal as the token horizon expands. They shifted the perspective from "how many steps" to "how many tokens" ().

Methodology: SCG and the µ-KL Geometry

The authors analyze Algorithm 1: Stochastic Conditional Gradient (SCG). Unlike standard SGD, SCG is projection-free and uses a Linear Minimization Oracle (LMO), making it a theoretical sibling to modern optimizers like Muon.

The Core Insight: The µ-KL Condition

The researchers validated that LLM training (specifically NanoGPT) follows the µ-Kurdyka–Łojasiewicz (µ-KL) condition. This condition effectively bridges the gap between the gradient's dual norm and the objective suboptimality:

abla f(x)\|_* \geq \mu(f(x) - f^\star)$$ ### The BST Scaling Rule By solving the convergence bounds, they identified three distinct regimes for optimization error ($\varepsilon$): 1. **Noise-dominated**: Performance improves as $BS$ increases. 2. **Optimal/BST Regime**: Error is independent of $B$ and $S$; this is the "sweet spot." 3. **Iteration-starved**: $B$ is so large that the model doesn't get enough updates ($K$ is too small), and error increases. ![Model Architecture and Validation](https://cdn.atominnolab.com/wisdoc/images/20260324-55e573f4-14ef-4739-a3ab-141e3c1c0ca9/page_004_block_000.png) *Figure 1: Empirical verification of the µ-KL condition. Note the linear fit between the dual gradient norm and training loss.* ## Practical Strategies: Hyperparameter Restart The theory leads to a "Hyperparameter Restart" strategy. If you start with a small token budget $T_0$ and move to a larger $T_1$: 1. **Increase Scale**: $B_1 S_1 = B_0 S_0 (T_1/T_0)^{2/3}$. 2. **Tune LR**: Adjust $\beta$ according to the ratio of tokens and batch scale. 3. **Keep Momentum**: Interestingly, the momentum parameter $\alpha$ is a "constant of motion" that transfers directly. ![Scaling Regimes](https://cdn.atominnolab.com/wisdoc/images/20260324-55e573f4-14ef-4739-a3ab-141e3c1c0ca9/page_005_block_001.png) *Figure 2: Validation of gradient variance scaling, supporting the assumption that noise scales inverse-linearly with batch size.* ## Experimental Results The authors tested their scaling laws by migrating from a **124M NanoGPT** to a **1B parameter model**. * **µP vs. BST**: The µP baseline (fixed $B, S, \beta$) became increasingly suboptimal as the token budget grew. * **The Power of Restarts**: Models that "restarted" their hyperparameters (increased $B$ mid-run) based on the BST rule outperformed all fixed large-batch baselines. * **Optimal Batching**: For the 1B model, increasing $B$ beyond 1024 (the theory-predicted limit) resulted in a visible degradation in validation loss, confirming the "Iteration-starved" regime exists. ![Comparison of Scheduling Strategies](https://cdn.atominnolab.com/wisdoc/images/20260324-55e573f4-14ef-4739-a3ab-141e3c1c0ca9/page_013_block_000.png) *Figure 3: Restarting SCG (Yellow/Gray) consistently hits lower validation loss than fixed µP approaches.* ## Critical Analysis & Conclusion **Takeaway**: This work provides a rigorous bridge between deep learning scaling laws and optimization theory. It proves that software-level hyperparameters (like batch size) must evolve with the data-level budget ($T$). **Limitations**: The constants ($L, \mu, \rho$) still require empirical estimation via power laws. While the authors provide these for NanoGPT, a practitioner on a completely different architecture (e.g., a Mixture-of-Experts) would need to re-estimate these. **Future Path**: The interaction between these scaling rules and **Schedule-Free** optimizers or **context-length extension** techniques remains an open, high-value frontier.

Find Similar Papers

Try Our Examples

  • Search for recent papers investigating the Kurdyka-Łojasiewicz (KL) condition in the loss landscape of Large Language Models (LLMs).
  • Which original paper introduced the Scion or Muon optimizers, and how does the current work's momentum SCG analysis extend their theoretical guarantees?
  • Explore research that applies Stochastic Conditional Gradient (SCG) or projection-free methods to vision transformers or reinforcement learning tasks.
Contents
[Research Deep Dive] Scaling Law for Batch Size: Why µP Isn't Enough for Your Token Budget
1. TL;DR
2. The Motivation: The "Too Large Batch" Trap
3. Methodology: SCG and the µ-KL Geometry
3.1. The Core Insight: The µ-KL Condition
3.2. The BST Scaling Rule
4. Practical Strategies: Hyperparameter Restart
5. Experimental Results
6. Critical Analysis & Conclusion