Deriving Hyperparameter Scaling Laws via Modern Optimization Theory

Egor Shulgin, Jörg K.h. Franke, Dimitri von Rütte, Tianyue H. Zhang, Niccolò Ajroldi, Korbinian Pöppel, Bernhard Schölkopf, Aaron Klein, Peter Richtárik, Antonio OrvietoNeurIPS 2026

TL;DR

Training massive AI models currently relies on expensive trial-and-error to tune hyperparameters like batch size and learning rate as training runs grow longer. By minimizing convergence bounds from modern optimization theory, the authors derive exact mathematical formulas for how learning rate, batch size, and momentum should scale with your token budget. It turns out much of deep learning’s empirical folklore isn't magic—it’s a predictable consequence of geometry and optimization dynamics.

What Problem Does This Paper Address?

When training large language models (LLMs) with budgets reaching $5 \times 10^{26}$ FLOPs, you only get one shot to get your hyperparameters right. While tools like $\mu\text{P}$ (Maximal Update Parametrization) brilliantly tell us how to adjust learning rates when making a model bigger, they usually assume a fixed batch size, momentum, and training duration.

What happens when you hold the model size fixed, but want to train on 10x more tokens or change your batch size for hardware efficiency? Until now, practitioners have relied on empirical guesswork, simplified quadratic models, or continuous-time stochastic differential equations (SDEs) that sometimes contradict one another. The authors ask: can we put hyperparameter scaling across training horizons on a unified, rigorous mathematical footing?

Methods

Instead of running thousands of costly GPU experiments to fit curves, the authors do math on recent non-convex optimization bounds. Specifically, they study optimizers built on a Linear Minimization Oracle (LMO).

Think of an LMO as a unified mathematical umbrella: depending on how you measure distance (the norm you choose), the LMO framework neatly morphs into modern optimizers we actually use. The Euclidean norm gives normalized SGD; the infinity norm gives signSGD (a close cousin and theoretical proxy for Adam); and the spectral norm gives Muon.

Using a recent convergence bound by Kovalev—which tracks initial error, momentum "burn-in," gradient noise floor, and landscape smoothness—the authors treat the upper bound on the gradient norm as a proxy objective. By using calculus to minimize this bound with respect to learning rate ($\eta$), batch size ($b$), and momentum ($\beta = 1 - \alpha$) for a given token budget ($T$), closed-form power-law scaling rules fall right out.

Datasets

Because this is primarily a theoretical study, most verification is numerical simulation of the proxy equations. However, to sanity-check their momentum-scaling predictions on real language modeling, the authors pretrain a 250M-parameter Qwen3 transformer on the Nemotron-CC dataset (using sequences of length 4,096). No new benchmarks are introduced.

Key Insights and Ideas

  • Why Adam has a "sweet spot" batch size (and SGD doesn't): Under a fixed token budget, classical SGD bounds show that increasing batch size reduces variance at the exact same rate it costs you update steps—the effects cancel out, meaning no non-trivial optimal batch size exists. LMO methods (like Adam/Muon) break this cancellation because normalization and momentum introduce unique noise-floor terms, creating a genuine, mathematically predictable optimal batch size!
  • Momentum and batch size are interchangeable levers: If you keep batch size fixed, optimization eventually hits a noise wall. You can break through it by scaling up the batch size or by scaling momentum closer to 1 as your token budget grows. If hardware caps your maximum batch size, tuning momentum becomes essential to hit optimal convergence rates.
  • A flat valley of "good enough" choices: When tuning learning rate, batch size, and momentum all at once, the optimization landscape is surprisingly forgiving. Many different batch-size growth rates achieve the exact same optimal asymptotic performance, provided you re-tune momentum and learning rate accordingly.
Optimal batch size and learning rate scaling

Key Results

Holding model size fixed as the token budget $T$ grows, minimizing the LMO proxy recovers famous empirical rules and reveals new ones across three regimes (all achieving the optimal convergence rate of $\propto T^{-1/4}$):

  • Fixed Momentum: At a fixed batch size $b$, the optimal learning rate scales as $\eta^\star \propto b^{1/2} T^{-1/2}$—recovering both the famous square-root batch scaling rule and token-horizon decay. Optimizing $b$ jointly yields an optimal batch size $b^\star \propto T^{1/2}$ (after an initial burn-in phase where $b^\star = 1$, shown above) and $\eta^\star \propto T^{-1/4}$. Moreover, if you already scale $b$ optimally, also tuning momentum improves the rate constant by at most $2^{1/4} \approx 1.19\times$.
  • Fixed Batch Size: Tuning momentum gap ($\alpha = 1 - \beta$) and learning rate yields $\alpha^\star \propto b \cdot T^{-1/2}$ and $\eta^\star \propto b \cdot T^{-3/4}$.
  • Jointly Tuned Everything: Minimizing all three gives $b^\star \propto T^{1/6}$, $\eta^\star \propto T^{-7/12}$, and $\alpha^\star \propto T^{-1/3}$—though any batch scaling $b(T) = T^\phi$ with $\phi \le 1/2$ can still achieve the optimal $T^{-1/4}$ rate.
  • LLM Validation: Training the 250M Qwen3 model from ~20.5B to ~128.5B tokens (at a fixed ~4.2M token batch size) confirmed the theory: longer token horizons shifted the validation loss sweet spot toward higher momentum ($\beta$ moving from ~0.975–0.99 up toward 0.9925–0.995) and lower learning rates.

Limitations and Future Work

The authors are refreshingly upfront about what their math doesn't capture yet:

  • Fixed model size: The elephant in the room is parameter count ($N$). Combining these horizon-scaling laws with $\mu\text{P}$ to handle model size, batch size, and token budget simultaneously is a major next step.
  • Idealized training: The theory assumes a constant learning rate, zero weight decay, and matched momentum initialization—leaving out standard practicalities like warmup and cosine annealing.
  • Optimization vs. Generalization: The bounds measure stationarity (gradient norms) assuming an infinite-data population oracle, ignoring finite-sample overfitting or heavy-tailed gradient noise.
  • Empirical puzzles remain: Some recent empirical papers report increasing optimal learning rates when batch size and tokens scale together—a trend the authors suspect stems from experimental protocol constraints or looseness in current theoretical bounds.

Summary updated

Abstract

Hyperparameter transfer has become an important component of modern large-scale training recipes. Existing methods, such as muP, primarily focus on transfer between model sizes, with transfer across batch sizes and training horizons often relying on empirical scaling rules informed by insights from timescale preservation, quadratic proxies, and continuous-time approximations. We study hyperparameter scaling laws for modern first-order optimizers through the lens of recent convergence bounds for methods based on the Linear Minimization Oracle (LMO), a framework that includes normalized SGD, signSGD (approximating Adam), and Muon. Treating bounds in recent literature as a proxy and minimizing them across different tuning regimes yields closed-form power-law schedules for learning rate, momentum, and batch size as functions of the iteration or token budget. Our analysis, holding model size fixed, recovers most insights and observations from the literature under a unified and principled perspective, with clear directions open for future research. Our results draw particular attention to the interaction between momentum and batch-size scaling, suggesting that optimal performance may be achieved with several scaling strategies.
BibTeX
@inproceedings{shulgin2026deriving,
  author = {Egor Shulgin and Jörg K.H. Franke and Dimitri von Rütte and Tianyue H. Zhang and Niccolò Ajroldi and Korbinian Pöppel and Bernhard Schölkopf and Aaron Klein and Peter Richtárik and Antonio Orvieto},
  title = {{Deriving Hyperparameter Scaling Laws via Modern Optimization Theory}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=A9u0AReK7q},
}

Loading related content...

Figure