Cite Score
95
AI summary
This paper introduces a decoupled weight decay regularization method for Adam, which decouples weight decay from optimization steps, improving Adam's generalization on image classification datasets, rivaling SGD with momentum. The method is implemented in TensorFlow and PyTorch.
Main Contributions
Abstract
L2 regularization and weight decay regularization are equivalent for standard stochastic gradient descent (when rescaled by the learning rate), but as we demonstrate this is not the case for adaptive gradient algorithms, such as Adam. While common implementations of these algorithms employ L2 regularization (often calling it "weight decay" in what may be misleading due to the inequivalence we expose), we propose a simple modification to recover the original formulation of weight decay regularization by decoupling the weight decay from the optimization steps taken w.r.t. the loss function. We provide empirical evidence that our proposed modification (i) decouples the optimal choice of weight decay factor from the setting of the learning rate for both standard SGD and Adam and (ii) substantially improves Adam's generalization performance, allowing it to compete with SGD with momentum on image classification datasets (on which it was previously typically outperformed by the latter). Our proposed decoupled weight decay has already been adopted by many researchers, and the community has implemented it in TensorFlow and PyTorch; the complete source code for our experiments is available at https://github.com/loshchil/AdamW-and-SGDW
Citation Graph
References [28]
D. P. Kingma, Jimmy Lei Ba - 2014
49 papers in library cite
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin - 2017
47 papers in library cite
Alex Krizhevsky - 2009
27 papers in library cite
John Duchi, Elad Hazan, Yoram Singer - 2011
19 papers in library cite
Alec Radford, K. Narasimhan, T. Salimans, Ilya Sutskever - 2018
23 papers in library cite
K. Xu, Jimmy Lei Ba, R. Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhutdinov, R. Zemel, Yoshua Bengio - 2015
12 papers in library cite
Frank Hutter - 2017
4 papers in library cite
S. J. Hanson, Lorien Y. Pratt - 1988
3 papers in library cite
Barret Zoph, V. Vasudevan, J. Shlens, Quoc Le - 2017
2 papers in library cite
Nitish Shirish Keskar, D. Mudigere, J. Nocedal, M. Smelyanskiy, P. T. P. Tang - 2016
4 papers in library cite
L. S. Smith - 2016
3 papers in library cite
S. J. Reddi, S. Kale, S. Kumar - 2018
2 papers in library cite
2018
1 paper in library cites
A. C. Wilson, R. Roelofs, M. Stern, N. Srebro, Benjamin Recht - 2017
1 paper in library cites
L. Dinh, Razvan Pascanu, Samy Bengio, Yoshua Bengio - 2017
1 paper in library cites
P. Chrabaszcz, I. Loshchilov, Frank Hutter - 2017
1 paper in library cites
X. Gastaldi - 2017
2 papers in library cite
T. Tieleman, Geoffrey Hinton - 2012
4 papers in library cite
G. Huang, Yiwei Li, G. Pleiss, Ze Liu, J. Hopcroft, K. Weinberger - 2016
3 papers in library cite
James Martens, R. Grosse - 2015
2 papers in library cite
Alec Radford, Luke Metz, S. Chintala - 2015
2 papers in library cite
L. Aitchison - 2018
1 paper in library cites
M. Volker, J. Hammer, R. T. Schirrmeister, J. Behncke, L. D. Fiederer, A. S. Bonhage, P. Marusic, W. Burgard, T. Ball - 2018
1 paper in library cites
Zhengyou Zhang, L. Ma, Zhiyuan Li, Chiyu Wu - 2017
1 paper in library cites
J. Wang, Y. Yuan, G. Yu, S. Jian - 2018
1 paper in library cites
G. Zhang, Caitlin Wang, B. Xu, R. Grosse - 2018
1 paper in library cites
H. Li, Zhiwei Xu, G. Taylor, T. Goldstein - 2017
1 paper in library cites
Shusheng Yang, P. Luo, C. C. Loy, X. Tang - 2016
1 paper in library cites
Cited by
7
papers in your library
Cites
17
papers in your library
Read
on August 6, 2025
Your review
Tags
Paper Aliases
No aliases