arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.11489cs.CVcs.LG
收藏

随机权值扰动指导下的推广算法改进

Efficient Generalization Improvement Guided by Random Weight Perturbation

Shanghai Jiao Tong University(上海交通大学)

Tao Li, Weihao Yan, Zehao Lei, Yingwen Wu, Kun Fang, Ming Yang, Xiaolin Huang

摘要:

为了充分挖掘深度神经网络(DNN)的巨大潜力,人们开发了各种学习算法来提高模型的泛化能力。最近,锐度感知最小化(SAM)建立了一个通用的方案,通过最小化的小邻域内的锐度测量,并实现了最先进的性能泛化的改进。然而,SAM需要两个连续的梯度评估来解决最小-最大问题,并且不可避免地使训练时间加倍。在本文中,我们诉诸过滤器的随机权重扰动(RWP)的SAM中的嵌套梯度解耦。与SAM中的小对抗扰动不同,RWP更软,允许更大的扰动幅度。具体来说,我们联合优化了带有随机扰动的损失函数和原始损失函数:前者引导网络走向更宽的平坦区域,而后者有助于恢复必要的局部信息。这两个损失项是相互补充、相互独立的。因此,可以并行高效地计算相应的梯度,从而实现与常规训练几乎相同的训练速度。因此,与SAM相比,我们在CIFAR上实现了非常有竞争力的性能,在ImageNet(例如$\mathbf{ +1.1\%}$)上的性能明显更好,但总是需要一半的训练时间。代码发布于https://github.com/nblt/RWP。

英文摘要:

To fully uncover the great potential of deep neural networks (DNNs), various learning algorithms have been developed to improve the model's generalization ability. Recently, sharpness-aware minimization (SAM) establishes a generic scheme for generalization improvements by minimizing the sharpness measure within a small neighborhood and achieves state-of-the-art performance. However, SAM requires two consecutive gradient evaluations for solving the min-max problem and inevitably doubles the training time. In this paper, we resort to filter-wise random weight perturbations (RWP) to decouple the nested gradients in SAM. Different from the small adversarial perturbations in SAM, RWP is softer and allows a much larger magnitude of perturbations. Specifically, we jointly optimize the loss function with random perturbations and the original loss function: the former guides the network towards a wider flat region while the latter helps recover the necessary local information. These two loss terms are complementary to each other and mutually independent. Hence, the corresponding gradients can be efficiently computed in parallel, enabling nearly the same training speed as regular training. As a result, we achieve very competitive performance on CIFAR and remarkably better performance on ImageNet (e.g. $\mathbf{ +1.1\%}$) compared with SAM, but always require half of the training time. The code is released at https://github.com/nblt/RWP.

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

↑