English

An Adaptive Policy to Employ Sharpness-Aware Minimization

Machine Learning 2023-05-01 v1

Abstract

Sharpness-aware minimization (SAM), which searches for flat minima by min-max optimization, has been shown to be useful in improving model generalization. However, since each SAM update requires computing two gradients, its computational cost and training time are both doubled compared to standard empirical risk minimization (ERM). Recent state-of-the-arts reduce the fraction of SAM updates and thus accelerate SAM by switching between SAM and ERM updates randomly or periodically. In this paper, we design an adaptive policy to employ SAM based on the loss landscape geometry. Two efficient algorithms, AE-SAM and AE-LookSAM, are proposed. We theoretically show that AE-SAM has the same convergence rate as SAM. Experimental results on various datasets and architectures demonstrate the efficiency and effectiveness of the adaptive policy.

Keywords

Cite

@article{arxiv.2304.14647,
  title  = {An Adaptive Policy to Employ Sharpness-Aware Minimization},
  author = {Weisen Jiang and Hansi Yang and Yu Zhang and James Kwok},
  journal= {arXiv preprint arXiv:2304.14647},
  year   = {2023}
}

Comments

Accepted by ICLR 2023

R2 v1 2026-06-28T10:20:28.495Z