English

Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization Term

Machine Learning 2024-12-06 v3

Abstract

Deep Neural Networks (DNNs) generalization is known to be closely related to the flatness of minima, leading to the development of Sharpness-Aware Minimization (SAM) for seeking flatter minima and better generalization. In this paper, we revisit the loss of SAM and propose a more general method, called WSAM, by incorporating sharpness as a regularization term. We prove its generalization bound through the combination of PAC and Bayes-PAC techniques, and evaluate its performance on various public datasets. The results demonstrate that WSAM achieves improved generalization, or is at least highly competitive, compared to the vanilla optimizer, SAM and its variants. The code is available at https://github.com/intelligent-machine-learning/atorch/tree/main/atorch/optimizers.

Keywords

Cite

@article{arxiv.2305.15817,
  title  = {Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization Term},
  author = {Yun Yue and Jiadi Jiang and Zhiling Ye and Ning Gao and Yongchao Liu and Ke Zhang},
  journal= {arXiv preprint arXiv:2305.15817},
  year   = {2024}
}

Comments

10 pages. Accepted as a conference paper at KDD '23

R2 v1 2026-06-28T10:45:39.531Z