Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategy

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Tan, Chengli, Zhang, Jiangshe, Liu, Junmin, Wang, Yicheng, Hao, Yunda
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909310224695296
author Tan, Chengli
Zhang, Jiangshe
Liu, Junmin
Wang, Yicheng
Hao, Yunda
author_facet Tan, Chengli
Zhang, Jiangshe
Liu, Junmin
Wang, Yicheng
Hao, Yunda
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_07250
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategy
Tan, Chengli
Zhang, Jiangshe
Liu, Junmin
Wang, Yicheng
Hao, Yunda
Machine Learning
Artificial Intelligence
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.
title Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategy
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2401.07250