English

Enhancing Sharpness-Aware Minimization by Learning Perturbation Radius

Machine Learning 2024-08-16 v1

Abstract

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.

Keywords

Cite

@article{arxiv.2408.08222,
  title  = {Enhancing Sharpness-Aware Minimization by Learning Perturbation Radius},
  author = {Xuehao Wang and Weisen Jiang and Shuai Fu and Yu Zhang},
  journal= {arXiv preprint arXiv:2408.08222},
  year   = {2024}
}

Comments

Accepted by ECML PKDD 2024

R2 v1 2026-06-28T18:13:54.626Z