Online Learning Rate Adaptation with Hypergradient Descent
Atilim Gunes Baydin, Robert Cornish, David Martinez Rubio, Mark Schmidt, Frank Wood
TL;DR
The paper presents Hypergradient Descent (HD), a lightweight online method that tunes the global learning rate of gradient-based optimizers by descending on the hypergradient of the objective with respect to the learning rate. HD requires only one extra gradient copy and minimal computation, and it can be applied to SGD, SGD with Nesterov momentum, and Adam. Empirical results across logistic regression, multilayer networks, and CNNs show HD consistently improves convergence and reduces the need for manual learning-rate tuning, with robust behavior across initial learning rates. The authors also propose extensions for smoother transitions to fixed rates and discuss higher-order hypergradients, along with partial convergence guarantees under convex assumptions. Overall, HD aims to make learning-rate tuning largely automatic and widely applicable in practice.
Abstract
We introduce a general method for improving the convergence rate of gradient-based optimizers that is easy to implement and works well in practice. We demonstrate the effectiveness of the method in a range of optimization problems by applying it to stochastic gradient descent, stochastic gradient descent with Nesterov momentum, and Adam, showing that it significantly reduces the need for the manual tuning of the initial learning rate for these commonly used algorithms. Our method works by dynamically updating the learning rate during optimization using the gradient with respect to the learning rate of the update rule itself. Computing this "hypergradient" needs little additional computation, requires only one extra copy of the original gradient to be stored in memory, and relies upon nothing more than what is provided by reverse-mode automatic differentiation.
