arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2012.13841cs.LGstat.ML
收藏

理解解耦和早期权重衰减

Understanding Decoupled and Early Weight Decay

Cornell University(康奈尔大学)

Johan Bjorck, Kilian Weinberger, Carla Gomes

摘要:

权重衰减(WD)是深度学习中的一种传统正则化技术,尽管它无处不在,但它的行为仍然是一个活跃的研究领域。Golatkar等人最近表明,WD只在计算机视觉训练的开始阶段起作用,颠覆了传统智慧。Loshchilov等人表明,对于自适应优化器,手动衰减权重可以优于向损失添加$l_2$惩罚。这种技术已经变得越来越流行,并且被称为解耦WD。本文的目的是调查这两个最近的经验观察。我们证明,通过仅在开始时应用WD,网络范数在整个训练过程中保持较小。当有效梯度更新变得更大时,这具有正则化效果。然而,传统的推广指标无法捕捉WD的这种效果,我们展示了一个简单的尺度不变的指标可以。我们还展示了网络权重的增长如何受到数据集及其泛化属性的严重影响。对于解耦WD,我们在NLP和RL中进行实验,其中自适应优化器是规范。我们证明,主要问题是解耦WD的混合梯度的目标函数和$l_2$罚款在缓冲区的亚当(其中存储的一阶矩的估计)。自适应性本身并不成问题,并且解耦的WD确保来自$l_2$项的梯度不会“淹没”真实目标,从而促进更容易的超参数调整。

英文摘要:

Weight decay (WD) is a traditional regularization technique in deep learning, but despite its ubiquity, its behavior is still an area of active research. Golatkar et al. have recently shown that WD only matters at the start of the training in computer vision, upending traditional wisdom. Loshchilov et al. show that for adaptive optimizers, manually decaying weights can outperform adding an $l_2$ penalty to the loss. This technique has become increasingly popular and is referred to as decoupled WD. The goal of this paper is to investigate these two recent empirical observations. We demonstrate that by applying WD only at the start, the network norm stays small throughout training. This has a regularizing effect as the effective gradient updates become larger. However, traditional generalizations metrics fail to capture this effect of WD, and we show how a simple scale-invariant metric can. We also show how the growth of network weights is heavily influenced by the dataset and its generalization properties. For decoupled WD, we perform experiments in NLP and RL where adaptive optimizers are the norm. We demonstrate that the primary issue that decoupled WD alleviates is the mixing of gradients from the objective function and the $l_2$ penalty in the buffers of Adam (which stores the estimates of the first-order moment). Adaptivity itself is not problematic and decoupled WD ensures that the gradients from the $l_2$ term cannot "drown out" the true objective, facilitating easier hyperparameter tuning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑