Theory of Optimal Learning Rate Schedules and Scaling Laws for a Random Feature Model

Blake Bordelon, Francesco Mori

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.

Figure 1: Learning rates do not automatically transfer over training horizons T. This motivates theory that can identify not only how to scale η with T, but also how to set the entire learning rate schedule η(t) with T. (a) The loss of a deep ResNet trained on CIFAR-5M. (b) GPT-style transformer trained on next word prediction on C4 dataset. (c) Test loss of a random feature model trained with SGD as a function of fixed learning rate η.

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).
Optimal learning rate schedules outperform constant and power-law baselines in scaling exponent.
  • 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

Abstract

Setting the learning rate (LR) for a deep learning model is a critical part of successful training. Choosing LRs is often done empirically with trial and error. In this work, we explore a solvable model of optimal LR schedules for a powerlaw random feature model trained with stochastic gradient descent (SGD). We consider the optimal schedule $\eta_T^\star(t)$ where $t$ is the current iterate and $T$ is the training horizon. This schedule is computed both as a numerical optimization problem and also analytically using optimal control theory. Our analysis reveals two regimes which we term the easy phase and hard phase. In the easy phase the optimal schedule is a polynomial decay $\eta_T^\star(t) \simeq T^{-\xi} (1-t/T)^{\delta}$ where $\xi$ and $\delta$ depend on the properties of the features and task. In the hard phase, the optimal schedule features an initial period of constant LR, followed by annealing performed over a vanishing fraction of training steps, similar to warmup-stable-decay. We investigate joint optimization of LR and batch size and find batch ramps can improve the wall-clock time in the easy phase. Beyond SGD, we derive optimal schedules for momentum parameter $\beta(t)$ and show that it improves the loss-scaling exponent in the hard phase. We compare our optimal schedule to various benchmarks including (1) optimal constant learning rates $\eta_T(t) \sim T^{-\xi}$ (2) optimal power laws $\eta_T(t) \sim T^{-\xi} t^{-\chi}$, finding that our schedule achieves better rates than either of these. Our theory suggests that LR transfer across training horizon depends on the structure of the model and task. For ResNet image classification on CIFAR-5M, the learning curves exhibit hard-phase behavior where optimal base LRs are constant under sufficient annealing. GPT-2 style transformers trained in language modeling exhibit easy-phase behavior where optimal LRs shift even under annealing.
BibTeX
@inproceedings{bordelon2026theory,
  author = {Blake Bordelon and Francesco Mori},
  title = {{Theory of Optimal Learning Rate Schedules and Scaling Laws for a Random Feature Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DzVZ8bvupU},
}
Figure