arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2011.11152cs.LGcs.AI
收藏

权重衰减被忽视的陷阱及其缓解方法:基于梯度范数的视角

On the Overlooked Pitfalls of Weight Decay and How to Mitigate Them: A Gradient-Norm Perspective

The University of Tokyo(东京大学);RIKEN Center for AIP(理化学研究所高级智能项目中心);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Tsinghua University(清华大学)

Zeke Xie, Zhiqiang Xu, Jingzhao Zhang, Issei Sato, Masashi Sugiyama

AI总结:

该研究发现权重衰减会在训练末期导致大梯度范数这一被忽视的陷阱,提出了基于梯度范数动态调整强度的调度式权重衰减SWD方法,实验证明其在Adam优化器上效果优于传统恒定权重衰减策略。

摘要:

权重衰减是一种简单却有效的正则化技术,已被广泛应用于深度神经网络(DNN)的训练中。尽管权重衰减已受到大量关注,但过往研究未能发现由权重衰减导致的大梯度范数方面一些被忽视的陷阱。本文发现,权重衰减会在训练的最终阶段(或终止解处)意外导致大梯度范数,这通常意味着收敛性差且泛化能力不佳。为缓解这些以梯度范数为核心的陷阱,我们提出了首个实用的权重衰减调度器,名为Scheduled Weight Decay(SWD,调度式权重衰减)方法,它能根据梯度范数动态调整权重衰减强度,并在训练过程中显著惩罚大梯度范数。我们的实验也证实,SWD确实能缓解大梯度范数问题,并且在Adaptive Moment Estimation(Adam,自适应矩估计)优化器上,其表现通常显著优于传统的恒定权重衰减策略。

英文摘要:

Weight decay is a simple yet powerful regularization technique that has been very widely used in training of deep neural networks (DNNs). While weight decay has attracted much attention, previous studies fail to discover some overlooked pitfalls on large gradient norms resulted by weight decay. In this paper, we discover that, weight decay can unfortunately lead to large gradient norms at the final phase (or the terminated solution) of training, which often indicates bad convergence and poor generalization. To mitigate the gradient-norm-centered pitfalls, we present the first practical scheduler for weight decay, called the Scheduled Weight Decay (SWD) method that can dynamically adjust the weight decay strength according to the gradient norm and significantly penalize large gradient norms during training. Our experiments also support that SWD indeed mitigates large gradient norms and often significantly outperforms the conventional constant weight decay strategy for Adaptive Moment Estimation (Adam).

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

↑