[1711.05101] Decoupled Weight Decay Regularization
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 this https URL
Published as a conference paper at ICLR 2019 D ECOUPLED W EIGHT D ECAY R EGULARIZATION Ilya Loshchilov & Frank Hutter University of Freiburg Freiburg, Germany, {ilya,fh}@cs.uni-freiburg.de A BSTRACT L2 regularization and weight decay regularization are…
saved by
related reading
- Understanding deep learning requires rethinking generalizationarxiv.org
- Why Momentum Really Worksdistill.pub
- Does Muon improve regulatory DNA learning? Part 1. — Origin Bioorigin.bio
- LoRA Without Regret - Thinking Machines Labthinkingmachines.ai
- AdaGrad - Cornell University Computational Optimization Open Textbook - Optimization Wikioptimization.cbe.cornell.edu
- [2101.12176] On the Origin of Implicit Regularization in Stochastic Gradient Descentarxiv.org
- [2310.07831] Optimal Linear Decay Learning Rate Schedules and Further Refinementsarxiv.org
- A Visual Explanation of Gradient Descent Methods (Momentum, AdaGrad, RMSProp, Adam) | Towards Data Sciencetowardsdatascience.com
- Stochastic gradient descent - Wikipediaen.m.wikipedia.org
- Deriving Muonjeremybernste.in
- An overview of gradient descent optimization algorithmsruder.io
- Adampytorch.org