Dissecting Adam: The Sign, Magnitude and Variance of Stochastic Gradients

Lukas Balles, Philipp Hennig
5/22/2017
255 citations
cs.LGstat.ML

Official code: lballes/msvag (45 stars, Python, Apache-2.0, last commit 2018-05-11).

Abstract

The ADAM optimizer is exceedingly popular in the deep learning community. Often it works very well, sometimes it doesn't.

Show full abstract

Why? We interpret ADAM as a combination of two aspects: for each weight, the update direction is determined by the sign of stochastic gradients, whereas the update magnitude is determined by an estimate of their relative variance. We disentangle these two aspects and analyze them in isolation, gaining insight into the mechanisms underlying ADAM. This analysis also extends recent results on adverse effects of ADAM on generalization, isolating the sign aspect as the problematic one. Transferring the variance adaptation to SGD gives rise to a novel method, completing the practitioner's toolbox for problems where ADAM fails.

View on arXivView PDF

Code Implementations(1)

lballes/msvagOfficial100%
Apache-2.0

TensorFlow implementation of (Momentum) Stochastic Variance-Adapted Gradient.

452PythonFeb 12, 20188 years agoApache-2.0

Similar Papers

Cite this paper

@article{balles2017dissecting,
  title  = {Dissecting Adam: The Sign, Magnitude and Variance of Stochastic Gradients},
  author = {Lukas Balles and Philipp Hennig},
  year   = {2017},
  eprint = {1705.07774},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1705.07774}
}

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

Discussion