Provable and Practical Online Learning Rate Adaptation with Hypergradient Descent

Ya-Chi Chu, Wenzhi Gao, Yinyu Ye, Madeleine Udell

Introduction: The Promise and Peril of HDM

In machine learning and optimization, choosing the right stepsize (learning rate) for gradient descent heavily dictates whether a model converges quickly, slowly, or not at all. Over 25 years ago, researchers proposed the Hypergradient Descent Method (HDM): a clever heuristic that uses gradient descent on the learning rate itself to automatically adapt the stepsize during training.

While empirically promising, HDM has historically suffered from a fatal flaw in practice: extreme instability. In early iterations, the objective function value can explode—spiking as high as $10^{30}$—before the algorithm finally decides to converge. Because of this terrifying "divergence" phase and a lack of rigorous mathematical guarantees, HDM was largely abandoned in favor of methods like Adam or L-BFGS.

Two-phase behavior of Vanilla HDM and the stabilizing effects of HDM-Best.

This paper provides the first rigorous theoretical foundation for HDM, explaining its quirks through an online learning lens, and introduces HDM-Best, a robust variant that achieves quasi-Newton-like superlinear convergence with the memory footprint of a standard first-order method.

Deconstructing and Fixing HDM

The authors tackle HDM by framing it as an online learning problem. Instead of just tuning a scalar learning rate, they treat HDM as updating a matrix stepsize (a preconditioner) using online gradient descent against a surrogate loss function called "hypergradient feedback."

To make the algorithm practical and solve the notorious instability, they introduce several key modifications:

  • Null Steps: If a new update increases the objective value, the algorithm simply skips the update (a "null step"). The preconditioner still learns from the failure, but the model's loss is prevented from exploding.
  • Advanced Online Learning: Instead of using basic online gradient descent to update the stepsize, they use AdaGrad. This drastically shortens the unstable "warm-up" phase.
  • Momentum Integration: They develop variants of HDM that incorporate Heavy-ball momentum (HDM-HB) and Nesterov momentum (HDM-AGD).
  • HDM-Best: The ultimate practical algorithm combines a diagonal preconditioner, heavy-ball momentum, AdaGrad for the hyper-updates, and null steps to ensure monotonic decrease.

Key Insights: The "Divergence" Illusion

The authors' theoretical analysis reveals that the terrifying early-stage spikes in vanilla HDM aren't true divergence. They are actually a "warm-up phase." The online learning algorithm is accumulating regret while it figures out the optimal preconditioner. Once it learns the landscape, it converges rapidly. HDM doesn't just find a globally acceptable learning rate; it dynamically adapts to the local optimization landscape as the parameters move through the space.

The most surprising theoretical finding is that on strongly convex problems, HDM achieves local superlinear convergence. As it gets closer to the optimum, HDM essentially learns the inverse Hessian matrix (second-order curvature). It achieves the celebrated performance of quasi-Newton methods, but does so by directly measuring preconditioner quality via hypergradient feedback rather than relying on traditional secant equations.

Empirical Results

The authors evaluated their algorithms on standard deterministic convex optimization tasks, including Support Vector Machines (SVM) and Logistic Regression, using datasets from the LIBSVM library.

Performance of HDM variants with Heavy-ball (HDM-HB) and Nesterov (HDM-AGD) momentum compared to standard baselines.
  • Unmatched First-Order Performance: On the benchmark tasks, HDM-Best significantly outperformed standard adaptive first-order methods like Adam, AdaGrad, and basic momentum gradient descent.
  • Rivaling L-BFGS with Less Memory: L-BFGS is the industry standard quasi-Newton method for these types of problems. HDM-Best matched or exceeded the performance of L-BFGS (configured with memory sizes of 5 or 10). For example, HDM-Best solved 32 out of 33 SVM problems, compared to L-BFGS-M10's 31.
  • High Efficiency: HDM-Best achieves this L-BFGS-level performance using strictly less memory (equivalent to a memory size of 1) and requires cheaper per-iteration compute costs.

Limitations and Future Work

The primary limitation of this work is its scope: the theoretical guarantees and empirical evaluations are strictly confined to smooth, deterministic, convex optimization problems.

The authors explicitly note that the crucial next step is extending the theory and practical application of HDM to stochastic and non-convex optimization. If these quasi-Newton-like benefits can be translated to the stochastic mini-batch settings used to train large-scale deep neural networks, HDM could become a highly compelling alternative to current mainstays like AdamW.

Summary updated

BibTeX
@inproceedings{chu2025provable,
  author = {Ya-Chi Chu and Wenzhi Gao and Yinyu Ye and Madeleine Udell},
  title = {{Provable and Practical Online Learning Rate Adaptation with Hypergradient Descent}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=NkVCB1Cpgl},
}
Figure