NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Role of Batch Size in Stochastic Conditional Gradient Methods

Rustem Islamov, Roman Machacek, Aurelien Lucchi, Tony Silveti-Falls, Eduard Gorbunov, Volkan Cevher

Abstract: We study the role of batch size in stochastic conditional gradient methods under a $\mu$-Kurdyka–Łojasiewicz ($\mu$-KL) condition. Focusing on momentum-based stochastic Frank–Wolfe–type conditional gradient algorithms, 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.

The Challenge of Scaling Under a Token Budget

In the realm of Large Language Models (LLMs), training is rarely about reaching "convergence" in the classical optimization sense. Instead, practitioners are constrained by a fixed token budget ($T$). The standard workflow involves tuning hyperparameters—such as learning rate and batch size—on smaller proxy models and transferring them to massive production runs.

While frameworks like Maximal Update Parameterization ($\mu$P) are invaluable for ensuring local stability during this transfer, they do not provide guidance on how to scale the batch size ($B$) or sequence length ($S$) globally as the total token budget grows. This creates a Goldilocks problem:

  • Too small: A batch size that is too small wastes compute fighting stochastic noise.
  • Too large: A batch size that is too large exhausts the token budget before the model has performed enough parameter updates to learn effectively.

Recent research addresses this by identifying the "critical batch size"—the threshold where increasing the batch size stops improving, and starts degrading, performance under a fixed budget.

Methodology: SCG and the $\mu$-KL Condition

The researchers focused their analysis on Stochastic Conditional Gradient (SCG) methods, also known as stochastic Frank-Wolfe algorithms. These projection-free algorithms are gaining significant traction in deep learning, exemplified by optimizers like Muon.

The study introduces three key methodological innovations:

  1. The $\mu$-KL Condition: The analysis is grounded in the $\mu$-Kurdyka–Łojasiewicz condition, a mathematical framework relating gradient magnitude to model suboptimality. The authors empirically demonstrate that this condition, often treated as a theoretical abstraction, accurately models the training dynamics of LLMs.
  2. Token-Budget Analysis: Rather than plotting error against iteration counts ($K$), the authors rewrite convergence bounds entirely in terms of tokens, where $T = K \cdot B \cdot S$.
  3. The BST Rule: Through this lens, they derive a closed-form scaling law indicating that the effective batch-sequence scale should grow proportionally to $T^{2/3}$.

Key Insights: The Three Regimes of Scaling

By analyzing the interaction between stepsize, batch size, and noise, the paper identifies a non-monotone, regime-dependent relationship between batch size and error:

  1. Noise-Dominated Regime: The batch size is too small, and stochastic noise obscures the optimization signal.
  2. The Sweet Spot: The error becomes essentially independent of the batch size, representing peak efficiency.
  3. Iteration-Starved Regime: The batch size is so large that the model fails to perform enough gradient updates to converge within the allotted token budget.

Hyperparameter Restarts and Efficiency

The theory also supports dynamic training schedules. Practitioners do not need to commit to a single batch size. Instead, training can begin with a smaller batch size and "restart" with larger batch sizes and sequence lengths as more data is processed. This is effective provided the Frank-Wolfe stepsize ($\beta$) is adjusted according to the derived $T^{-1/3}$ rule. Ultimately, this approach disentangles local stability (handled by $\mu$P) from global efficiency (handled by the BST rule).

Empirical Validation

To test these theoretical scaling laws, the researchers trained and evaluated various versions of NanoGPT (ranging from 124M to 1B parameters) on the FineWeb dataset.

The results strongly corroborated the theory:

  • Predictive Power: The BST scaling rule successfully predicted the optimal Frank-Wolfe stepsize ($\beta$) for a 1B parameter model using only tuning data from a 124M parameter model.
  • Performance Gains: Models utilizing "restarted" training schedules with BST-derived batch sizes achieved lower validation losses compared to those using fixed batch sizes or standard $\mu$P transfers that ignored the token budget.
  • Optimal Scaling Confirmed: The experiments verified the existence of an iteration-starved regime, confirming that the $T^{2/3}$ rule accurately identifies the peak efficiency point for a fixed token budget.

Limitations and Future Directions

While the BST rule offers a powerful new framework for LLM training, the authors note a few limitations:

  • Variance Assumptions: The current analysis assumes that gradient noise variance ($\sigma^2$) remains constant as model size increases. While measuring this in massive models is computationally prohibitive, it may fluctuate in practice.
  • Smoothness Constraints: The theoretical bounds rely on standard $L$-smoothness. Extending this to "generalized smoothness"—which better accounts for the rapid gradient changes typical in LLM training—is a crucial next step.
  • Algorithm Specificity: The findings are currently tailored to SCG/Frank-Wolfe methods. Extending these global scaling laws to ubiquitous optimizers like AdamW remains an open and exciting challenge for the community.

Summary updated

BibTeX
@inproceedings{islamov2026role,
  author = {Rustem Islamov and Roman Machacek and Aurelien Lucchi and Tony Silveti-Falls and Eduard Gorbunov and Volkan Cevher},
  title = {{On the Role of Batch Size in Stochastic Conditional Gradient Methods}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=yTFTLj7MoN},
}
Figure