LightSAM: Parameter-Agnostic Sharpness-Aware Minimization

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cheng, Yifei, Shen, Li, Sun, Hao, Yin, Nan, Cao, Xiaochun, Chen, Enhong
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908385435189248
author Cheng, Yifei
Shen, Li
Sun, Hao
Yin, Nan
Cao, Xiaochun
Chen, Enhong
author_facet Cheng, Yifei
Shen, Li
Sun, Hao
Yin, Nan
Cao, Xiaochun
Chen, Enhong
contents Sharpness-Aware Minimization (SAM) optimizer enhances the generalization ability of the machine learning model by exploring the flat minima landscape through weight perturbations. Despite its empirical success, SAM introduces an additional hyper-parameter, the perturbation radius, which causes the sensitivity of SAM to it. Moreover, it has been proved that the perturbation radius and learning rate of SAM are constrained by problem-dependent parameters to guarantee convergence. These limitations indicate the requirement of parameter-tuning in practical applications. In this paper, we propose the algorithm LightSAM which sets the perturbation radius and learning rate of SAM adaptively, thus extending the application scope of SAM. LightSAM employs three popular adaptive optimizers, including AdaGrad-Norm, AdaGrad and Adam, to replace the SGD optimizer for weight perturbation and model updating, reducing sensitivity to parameters. Theoretical results show that under weak assumptions, LightSAM could converge ideally with any choices of perturbation radius and learning rate, thus achieving parameter-agnostic. We conduct preliminary experiments on several deep learning tasks, which together with the theoretical findings validate the the effectiveness of LightSAM.
format Preprint
id arxiv_https___arxiv_org_abs_2505_24399
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LightSAM: Parameter-Agnostic Sharpness-Aware Minimization
Cheng, Yifei
Shen, Li
Sun, Hao
Yin, Nan
Cao, Xiaochun
Chen, Enhong
Machine Learning
Sharpness-Aware Minimization (SAM) optimizer enhances the generalization ability of the machine learning model by exploring the flat minima landscape through weight perturbations. Despite its empirical success, SAM introduces an additional hyper-parameter, the perturbation radius, which causes the sensitivity of SAM to it. Moreover, it has been proved that the perturbation radius and learning rate of SAM are constrained by problem-dependent parameters to guarantee convergence. These limitations indicate the requirement of parameter-tuning in practical applications. In this paper, we propose the algorithm LightSAM which sets the perturbation radius and learning rate of SAM adaptively, thus extending the application scope of SAM. LightSAM employs three popular adaptive optimizers, including AdaGrad-Norm, AdaGrad and Adam, to replace the SGD optimizer for weight perturbation and model updating, reducing sensitivity to parameters. Theoretical results show that under weak assumptions, LightSAM could converge ideally with any choices of perturbation radius and learning rate, thus achieving parameter-agnostic. We conduct preliminary experiments on several deep learning tasks, which together with the theoretical findings validate the the effectiveness of LightSAM.
title LightSAM: Parameter-Agnostic Sharpness-Aware Minimization
topic Machine Learning
url https://arxiv.org/abs/2505.24399