Online Learning Rate Adaptation with Hypergradient Descent

Atilim Gunes Baydin, Robert Cornish, David Martinez Rubio, Mark Schmidt, Frank Wood
3/14/2017
cs.LGstat.ML

Official code: gbaydin/hypergradient-descent (148 stars, MIT, last commit 2024-05-31).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Hypergradient descent

14821Shell, PythonFeb 3, 20182 years agoMIT

Similar Papers

Cite this paper

@article{baydin2017online,
  title  = {Online Learning Rate Adaptation with Hypergradient Descent},
  author = {Atilim Gunes Baydin and Robert Cornish and David Martinez Rubio and Mark Schmidt and Frank Wood},
  year   = {2017},
  eprint = {1703.04782},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1703.04782}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1703.04782.svg)](https://codeofpaper.com/paper/1703.04782)

Discussion