arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.03108cs.LGcs.CV
收藏

梯度范数感知最小化寻求一阶平坦性并提升泛化能力

Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalization

Tsinghua University(清华大学)

Xingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou, Peng Cui

AI总结:

本文提出一阶平坦性度量与梯度范数感知最小化(GAM)方法,通过约束扰动半径内最大梯度范数寻求各方向曲率一致小的极小值,实验证明其能提升SGD和AdamW训练的模型泛化能力,并辅助SAM找到更平坦的极小值。

摘要:

近期,平坦极小值被证明能有效提升泛化能力,而锐度感知最小化(SAM)取得了最先进的性能。然而,目前SAM及其后续工作中讨论的平坦性定义仅限于零阶平坦性(即扰动半径内的最坏情况损失)。我们表明,无论是在给定扰动半径内存在单个极小值还是多个极小值的情况下,零阶平坦性都可能不足以区分低泛化误差的极小值与高泛化误差的极小值。因此,我们提出一阶平坦性,这是一种更强的平坦性度量,关注扰动半径内的最大梯度范数,它同时约束了局部极小值处Hessian矩阵的最大特征值以及SAM的正则化函数。我们还提出了一种名为梯度范数感知最小化(GAM)的新型训练方法,以寻求在所有方向上具有一致小曲率的极小值。实验结果表明,GAM在多种数据集和网络上提升了使用当前优化器(如SGD和AdamW)训练的模型的泛化能力。此外,我们表明GAM可以帮助SAM找到更平坦的极小值并实现更好的泛化。

英文摘要:

Recently, flat minima are proven to be effective for improving generalization and sharpness-aware minimization (SAM) achieves state-of-the-art performance. Yet the current definition of flatness discussed in SAM and its follow-ups are limited to the zeroth-order flatness (i.e., the worst-case loss within a perturbation radius). We show that the zeroth-order flatness can be insufficient to discriminate minima with low generalization error from those with high generalization error both when there is a single minimum or multiple minima within the given perturbation radius. Thus we present first-order flatness, a stronger measure of flatness focusing on the maximal gradient norm within a perturbation radius which bounds both the maximal eigenvalue of Hessian at local minima and the regularization function of SAM. We also present a novel training procedure named Gradient norm Aware Minimization (GAM) to seek minima with uniformly small curvature across all directions. Experimental results show that GAM improves the generalization of models trained with current optimizers such as SGD and AdamW on various datasets and networks. Furthermore, we show that GAM can help SAM find flatter minima and achieve better generalization.

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

↑