Lookahead Optimizer: k steps forward, 1 step back

Michael R. Zhang, James Lucas, Geoffrey Hinton, Jimmy Ba
7/19/2019
cs.LGcs.NEstat.ML

Official code: michaelrzhang/lookahead (244 stars, MIT, last commit 2022-04-29).

Abstract

The vast majority of successful deep neural networks are trained using variants of stochastic gradient descent (SGD) algorithms. Recent attempts to improve SGD can be broadly categorized into two approaches: (1) adaptive learning rate schemes, such as AdaGrad and Adam, and (2) accelerated schemes, such as heavy-ball and Nesterov momentum. In this paper, we propose a new optimization algorithm, Lookahead, that is orthogonal to these previous approaches and iteratively updates two sets of weights. Intuitively, the algorithm chooses a search direction by looking ahead at the sequence of fast weights generated by another optimizer. We show that Lookahead improves the learning stability and lowers the variance of its inner optimizer with negligible computation and memory cost. We empirically demonstrate Lookahead can significantly improve the performance of SGD and Adam, even with their default hyperparameter settings on ImageNet, CIFAR-10/100, neural machine translation, and Penn Treebank.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation for the Lookahead Optimizer.

24429PythonAug 8, 20194 years agoMIT

Cite this paper

@article{zhang2019lookahead,
  title  = {Lookahead Optimizer: k steps forward, 1 step back},
  author = {Michael R. Zhang and James Lucas and Geoffrey Hinton and Jimmy Ba},
  year   = {2019},
  eprint = {1907.08610},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.08610}
}

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/1907.08610.svg)](https://codeofpaper.com/paper/1907.08610)

Discussion