Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategy

Chengli Tan, Jiangshe Zhang, Junmin Liu, Yicheng Wang, Yunda Hao
1/14/2024
cs.LGcs.AI

No official code found. Best implementation: aig-group/stablesam2024 (1 star, last commit 2024-09-21).

Abstract

Recently, sharpness-aware minimization (SAM) has attracted much attention because of its surprising effectiveness in improving generalization performance. However, compared to stochastic gradient descent (SGD), it is more prone to getting stuck at the saddle points, which as a result may lead to performance degradation. To address this issue, we propose a simple renormalization strategy, dubbed Stable SAM (SSAM), so that the gradient norm of the descent step maintains the same as that of the ascent step. Our strategy is easy to implement and flexible enough to integrate with SAM and its variants, almost at no computational cost. With elementary tools from convex optimization and learning theory, we also conduct a theoretical analysis of sharpness-aware training, revealing that compared to SGD, the effectiveness of SAM is only assured in a limited regime of learning rate. In contrast, we show how SSAM extends this regime of learning rate and then it can consistently perform better than SAM with the minor modification. Finally, we demonstrate the improved performance of SSAM on several representative data sets and tasks.

View on arXivView PDF

Code Implementations(1)

Stablizing sharpness-aware training with a renormalization strategy

10PythonJan 12, 20242 years ago

Similar Papers

Cite this paper

@article{tan2024stabilizing,
  title  = {Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategy},
  author = {Chengli Tan and Jiangshe Zhang and Junmin Liu and Yicheng Wang and Yunda Hao},
  year   = {2024},
  eprint = {2401.07250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.07250v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.07250.svg)](https://codeofpaper.com/paper/2401.07250)

Discussion