arXiv (Cornell University)· 2017· Preprint
Decoupled Weight Decay Regularization
- 9,135citations
- 2017year
Short summary
A new method decouples weight decay from gradient updates in adaptive optimization algorithms like Adam, improving generalization performance.
AI-generated from the title and abstract; the full text is not read.
Key points
- Weight decay and L2 regularization are not equivalent for adaptive optimizers like Adam.
- A 'decoupled' weight decay method is proposed, separating regularization from gradient updates.
- The decoupled method makes optimal weight decay independent of learning rate for both SGD and Adam.
- Adam with decoupled weight decay matches SGD with momentum on image classification generalization.
AI-generated from the title and abstract; the full text is not read.
Abstract
L$_2$ regularization and weight decay regularization are equivalent for standard stochastic gradient descent (when rescaled by the learning rate), but as we demonstrate this is \emph{not} the case for adaptive gradient algorithms, such as Adam. While common implementations of these algorithms employ L$_2$ 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 \emph{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
The authors' abstract, as published at the source. arXiv (Cornell University), 2017 · DOI ↗
Continue with a free account
Ask the paper: 3 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.
Continue free on the webSign in with Google or Apple; no card needed. You come back to this paper.
On your phone:
Field: Computational Mechanics
Computational MechanicsEngineering