Fixing Weight Decay Regularization in Adam

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

Adam: A Method forStochastic OptimizationAdam: A Method for Stochastic OptimizationShow, Attend and Tell:Neural Image Caption…Show, Attend and Tell: Neural Image Caption Generation with Visual AttentionNo More Pesky LearningRate Guessing GamesNo More Pesky Learning Rate Guessing GamesUnsupervisedRepresentation Learning…Unsupervised Representation Learning with Deep Convolutional Generative Adversarial NetworksWeight Normalization: ASimple…Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural NetworksSGDR: StochasticGradient Descent with…SGDR: Stochastic Gradient Descent with Warm RestartsSnapshot Ensembles:Train 1, Get M for FreeSnapshot Ensembles: Train 1, Get M for FreeDensely ConnectedConvolutional NetworksDensely Connected Convolutional NetworksOn Large-Batch Trainingfor Deep Learning…On Large-Batch Training for Deep Learning: Generalization Gap and Sharp MinimaAutoAugment: LearningAugmentation Policies…AutoAugment: Learning Augmentation Policies from DataOn the Convergence ofAdam and BeyondOn the Convergence of Adam and BeyondLearning Multiple Layersof Features from Tiny…Learning Multiple Layers of Features from Tiny ImagesAlign before Fuse:Vision and Language…Align before Fuse: Vision and Language Representation Learning with Momentum Distillation3D Object Detection WithPointformer3D Object Detection With PointformerDPT: DeformablePatch-based Transformer…DPT: Deformable Patch-based Transformer for Visual RecognitionHow to Train BERT withan Academic BudgetHow to Train BERT with an Academic BudgetRe-parameterizing YourOptimizers rather than…Re-parameterizing Your Optimizers rather than ArchitecturesI2VGen-XL: High-QualityImage-to-Video Synthesi…I2VGen-XL: High-Quality Image-to-Video Synthesis via Cascaded Diffusion ModelsNo Train No Gain:Revisiting Efficient…No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language ModelsMicron-BERT: BERT-BasedFacial Micro-Expression…Micron-BERT: BERT-Based Facial Micro-Expression RecognitionTransformers LearnShortcuts to AutomataTransformers Learn Shortcuts to AutomataAUDIT: Audio Editing byFollowing Instructions…AUDIT: Audio Editing by Following Instructions with Latent Diffusion ModelsELLA: Equip DiffusionModels with LLM for…ELLA: Equip Diffusion Models with LLM for Enhanced Semantic AlignmentWhy Do We Need Warm-up?A Theoretical…Why Do We Need Warm-up? A Theoretical PerspectiveFixing Weight DecayRegularization in AdamFixing Weight Decay Regularization in Adam過去の参考文献中心の論文この論文を引用する論文古い新しい

ノードをクリックするとフォーカスを固定、空白をクリックすると本論文に戻ります。ホバーで一時的にプレビューできます。各ノードのページはタイトルから開けます。