Decoupled weight decay, solely responsible for the performance advantage of AdamW over Adam, has long been set to proportional to learning rate $γ$ without questioning. Some researchers have recently challenged such assumption and argued that decoupled weight decay should be set $\propto γ^2$ instead based on orthogonality arguments at steady state. To the contrary, we find that eliminating the contribution of the perpendicular component of the update to the weight norm leads to little change to the training dynamics. Instead, we derive that decoupled weight decay $\propto γ^2$ results in stable weight norm based on the simple assumption that updates become independent of the weights at steady state, regardless of the nature of the optimizer. Based on the same assumption, we derive and empirically verify that the Total Update Contribution (TUC) of a minibatch under the Scion optimizer is better characterized by the momentum-dependent effective learning rate whose optimal value transfers and we show that decoupled weight decay $\propto γ^2$ leads to stable weight and gradient norms and allows us to better control the training dynamics and improve the model performance.
L $_2$正则化和权重衰减正则化对于标准的随机梯度下降是等价的(当通过学习率重新缩放时),但是正如我们所证明的,这是自适应梯度算法的\emph{not}情况,例如Adam。虽然这些算法的常见实现采用L $_2$正则化(通常称之为“权重衰减”,由于我们暴露的不等价性,可能会产生误导),但我们提出了一个简单的修改,以通过\emph{decoupling}从w.r.t.损失函数。我们提供的经验证据表明,我们提出的修改(i)从标准SGD和Adam的学习率设置中获得了权重衰减因子的最佳选择,(ii)大大提高了Adam的泛化性能,使其能够在图像分类数据集上与具有动量的SGD竞争(在此之前,后者通常优于前者)。我们提出的解耦权重衰减已经被许多研究人员采用,社区已经在TensorFlow和PyTorch中实现了它;我们实验的完整源代码可以在https://github.com/loshchil/AdamW-and-SGDW上获得
University of California, Berkeley(加州大学伯克利分校);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Tel-Aviv University(特拉维夫大学);École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院)
Harbin Institute of Technology, Shenzhen, China.(哈尔滨工业大学(深圳));Peng Cheng Laboratory, China.(鹏城实验室);Huazhong University of Science and Technology, China(华中科技大学)