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

通过学习扰动半径增强锐度感知最小化

Enhancing Sharpness-Aware Minimization by Learning Perturbation Radius

Southern University of Science and Technology(南方科技大学);The Hong Kong University of Science and Technology(香港科技大学)

Xuehao Wang, Weisen Jiang, Shuai Fu, Yu Zhang

AI总结:

针对SAM中扰动半径选择困难的问题,提出双层优化框架LETS,通过上下层问题分别学习扰动半径与执行SAM优化,可适配任意SAM变体,实验验证其能有效提升SAM性能。

摘要:

锐度感知最小化(SAM)旨在通过在损失景观中寻找平坦极小值来提升模型的泛化能力。SAM的更新包含两个步骤:一步计算扰动,另一步计算更新梯度。在这两个步骤中,扰动半径的选择对SAM的性能至关重要,但找到合适的扰动半径颇具挑战性。本文提出了一种名为LEarning the perTurbation radiuS(LETS,学习扰动半径)的双层优化框架,用于为锐度感知最小化算法学习扰动半径。具体而言,在提出的LETS方法中,上层问题通过最小化训练损失与验证损失之间的泛化间隙平方来寻求合适的扰动半径,下层问题则是SAM优化问题。此外,LETS方法可与SAM的任意变体结合。在计算机视觉和自然语言处理领域的多种架构及基准数据集上的实验结果表明,所提出的LETS方法在提升SAM性能方面具有有效性。

英文摘要:

Sharpness-aware minimization (SAM) is to improve model generalization by searching for flat minima in the loss landscape. The SAM update consists of one step for computing the perturbation and the other for computing the update gradient. Within the two steps, the choice of the perturbation radius is crucial to the performance of SAM, but finding an appropriate perturbation radius is challenging. In this paper, we propose a bilevel optimization framework called LEarning the perTurbation radiuS (LETS) to learn the perturbation radius for sharpness-aware minimization algorithms. Specifically, in the proposed LETS method, the upper-level problem aims at seeking a good perturbation radius by minimizing the squared generalization gap between the training and validation losses, while the lower-level problem is the SAM optimization problem. Moreover, the LETS method can be combined with any variant of SAM. Experimental results on various architectures and benchmark datasets in computer vision and natural language processing demonstrate the effectiveness of the proposed LETS method in improving the performance of SAM.

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

↑