TL;DR
Choosing a learning rate schedule—like cosine annealing or warmup-stable-decay—is usually treated as deep learning folklore rather than exact science. By applying optimal control theory to a solvable model of stochastic gradient descent (SGD), the authors prove that the "right" schedule isn't universal: it depends entirely on whether your task falls into a mathematical "easy" or "hard" regime. Remarkably, their first-principles math organically rediscovers the exact heuristic schedules practitioners rely on every day, while explaining why learning rates sometimes fail to transfer when you train for longer.
What Problem Does This Paper Address?
Scaling up deep learning models requires navigating a minefield of hyperparameters. Recently, researchers figured out how to parameterize networks so that optimal learning rates transfer cleanly from small models to massive ones. However, a frustrating wrinkle remains: optimal learning rates do not automatically transfer when you change the training horizon $T$ (the total number of steps). Train for twice as long, and your previously optimal learning rate might suddenly underperform.
Beyond picking a base learning rate, practitioners also rely on schedules—gradually decaying the rate over time. While linear decay, polynomial decay, and warmup-stable-decay (WSD) are wildly popular, we lack a unified theory telling us when to use one over the other, or how to scale them as training runs get longer.
Methods
To get exact mathematical traction, the authors step back from messy, nonlinear deep networks and analyze a power-law random feature model—a standard theoretical proxy for neural scaling laws where data features and task difficulty decay according to power-law exponents ($b$ for feature covariance decay, and $a$ for target weight decay).
What’s new here is treating hyperparameter tuning as an optimal control problem. Instead of guessing a parametric schedule (like cosine decay) and testing it, the authors ask: Out of all possible functions, what continuous trajectory of learning rates $\eta(t)$ minimizes the final test loss at step $T$? They solve the exact discrete SGD loss dynamics numerically (using CasADi) and derive analytical scaling laws in continuous time using calculus of variations (specifically, Noether’s theorem). They then extend this optimal control lens to jointly optimize batch size schedules and momentum schedules.
Datasets
Alongside synthetic Gaussian features for the theoretical model, the authors validate their predictions on two standard deep learning benchmarks (no new datasets are introduced):
- CIFAR-5M: Used for one-pass image classification with deep convolutional ResNets trained via SGD.
- C4 (Colossal Clean Crawled Corpus): Used for next-token language modeling with 125M-parameter GPT-2 style transformers trained via Adam.
Key Insights and Ideas
- Two Phases of Learning: Tasks naturally split into an easy phase ($a > b$, fast-decaying task weights) and a hard phase ($b > a$, slow-decaying task weights).
- Practice Meets Theory: In the easy phase, optimal control dictates a smooth polynomial decay that balances bias and variance reduction simultaneously. In the hard phase, the optimal learning rate slams against its maximum stability limit for almost the entire run before plunging at the very end—organically deriving the constant-then-decay (WSD) schedule without needing to assume a "river-valley" loss landscape!
- Why Horizon Transfer Fails (or Succeeds): In the hard phase, because the optimal schedule hugs the maximum stable rate, the base learning rate stays constant across horizons $T$ (as long as you anneal at the end). In the easy phase, the optimal base rate must shrink as $T^{b/a - 1}$, meaning hyperparameter transfer across horizons fails even with annealing.
- You Must Know When You’re Stopping: Optimal schedules depend heavily on the final step $T$ to postpone variance reduction until the final moments. "Anytime" schedules (like $\eta(t) \sim t^{-\delta}$) that don't know $T$ in advance are mathematically stuck with worse scaling exponents.
- Batch Ramps Beat Learning Rate Decay (in Wall-Clock Time): When fixing the total data budget, holding the learning rate at its maximum and ramping up the batch size achieves the exact same final loss as decaying the learning rate, while drastically cutting wall-clock steps in the easy phase.
Key Results
- Better Scaling Exponents: Under constant or anytime power-law schedules, excess test loss scales suboptimally as $T^{-\frac{a-1}{a+b-1}}$. The derived optimal schedule improves this exponent to $T^{-\frac{a-1}{\max(a,b)}}$, matching the theoretical minimax optimum in the easy phase. For example, in an easy-phase numerical test ($a=3.5, b=2$), the scaling exponent jumped from $\approx 0.56$ (constant LR) to $\approx 0.69$ (optimal schedule).
- Momentum Breaks the Hard-Phase Ceiling: While time-varying momentum $\beta(t)$ doesn't change the scaling exponent in the easy phase, jointly optimizing $\eta(t)$ and $\beta(t)$ strictly outperforms optimal SGD in the hard phase.
- Real-World Deep Network Alignment: ResNets on CIFAR-5M exhibit classic hard-phase behavior: under polynomial annealing, their optimal base learning rate stays roughly flat as $T$ increases from $1\text{k}$ to $50\text{k}$ steps. Conversely, GPT-2 transformers on C4 exhibit easy-phase behavior: their optimal base learning rate steadily shifts downward as training scales from $1\text{B}$ to $16\text{B}$ tokens, even with cosine annealing.
Limitations and Future Work
The theoretical backbone relies on linear models trained with SGD, which formally only captures neural networks in the "lazy" (kernel) regime where representations don't evolve. Consequently, it doesn't directly model feature learning or adaptive, preconditioned optimizers like Adam (used in their LLM experiments), Muon, or Shampoo. Additionally, while numerical optimization proved that momentum improves hard-phase scaling exponents, deriving the exact analytical formula for that improved exponent remains an open problem, as does finding practical ways to measure $a$ and $b$ on real-world datasets before training begins.
Summary updated