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

自适应梯度正则化:一种更快且泛化性更强的深度神经网络优化技术

Adaptive Gradient Regularization: A Faster and Generalizable Optimization Technique for Deep Neural Networks

Great Bay University(大湾区大学);Illinois Institute of Technology(伊利诺伊理工学院);The Abdus Salam International Centre for Theoretical Physics(阿卜杜勒·萨拉姆国际理论物理中心);Peking University(北京大学);Kyoto University(京都大学)

Huixiu Jiang, Ling Yang, Yu Bao, Rutong Si, Sikun Yang

AI总结:

本文提出自适应梯度正则化(AGR)技术,通过动态正则化梯度方向来优化深度神经网络训练,仅添加三行代码即可提升Adan和AdamW等优化器的效率与泛化性能。

摘要:

随机优化在深度学习技术的发展中起着至关重要的作用。几十年来,人们通过多种策略(包括梯度归一化(GN)和梯度中心化(GC))致力于提高深度神经网络的训练效率和鲁棒性。然而,据我们所知,还没有人考虑通过自适应地控制梯度下降方向来捕捉最优的梯度下降轨迹。为了解决这一问题,本文首次尝试研究一种新的深度神经网络优化技术,该技术使用梯度向量的和归一化作为系数,动态地正则化梯度,从而有效地控制优化方向。所提出的技术因此被命名为自适应梯度正则化(AGR)。它可以被视为一种自适应梯度裁剪方法。理论分析表明,AGR能够有效地平滑损失曲面,从而显著提高训练效率和模型泛化性能。我们注意到,通过仅添加三行代码,AGR可以极大地提高包括Adan和AdamW在内的原始优化器的训练效率。在图像生成、图像分类和语言表示上进行的最终实验表明,AGR方法不仅能提高训练效率,还能增强模型泛化性能。

英文摘要:

Stochastic optimization plays a crucial role in the advancement of deep learning technologies. Over the decades, significant effort has been dedicated to improving the training efficiency and robustness of deep neural networks, via various strategies including gradient normalization (GN) and gradient centralization (GC). Nevertheless, to the best of our knowledge, no one has considered to capture the optimal gradient descent trajectory, by adaptively controlling gradient descent direction. To address this concern, this paper is the first attempt to study a new optimization technique for deep neural networks, using the sum normalization of a gradient vector as coefficients, to dynamically regularize gradients and thus to effectively control optimization direction. The proposed technique is hence named as the adaptive gradient regularization (AGR). It can be viewed as an adaptive gradient clipping method. The theoretical analysis reveals that the AGR can effectively smooth the loss landscape, and hence can significantly improve the training efficiency and model generalization performance. We note that AGR can greatly improve the training efficiency of vanilla optimizers' including Adan and AdamW, by adding only three lines of code. The final experiments conducted on image generation, image classification, and language representation, demonstrate that the AGR method can not only improve the training efficiency but also enhance the model generalization performance.

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

↑