Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuning

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Cheng, Yifei, Yang, Xianglin, Wang, Guoxia, Huang, Chao, Ma, Fei, Yu, Dianhai, Cao, Xiaochun, Shen, Li
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917263337062400
author Cheng, Yifei
Yang, Xianglin
Wang, Guoxia
Huang, Chao
Ma, Fei
Yu, Dianhai
Cao, Xiaochun
Shen, Li
author_facet Cheng, Yifei
Yang, Xianglin
Wang, Guoxia
Huang, Chao
Ma, Fei
Yu, Dianhai
Cao, Xiaochun
Shen, Li
contents Sharpness-aware minimization (SAM) seeks the minima with a flat loss landscape to improve the generalization performance in machine learning tasks, including fine-tuning. However, its extra parameter perturbation step doubles the computation cost, which becomes the bottleneck of SAM in the practical implementation. In this work, we propose an approach SL-SAM to break this bottleneck by introducing the sparse technique to layers. Our key innovation is to frame the dynamic selection of layers for both the gradient ascent (perturbation) and descent (update) steps as a multi-armed bandit problem. At the beginning of each iteration, SL-SAM samples a part of the layers of the model according to the gradient norm to participate in the backpropagation of the following parameter perturbation and update steps, thereby reducing the computation complexity. We then provide the analysis to guarantee the convergence of SL-SAM. In the experiments of fine-tuning models in several tasks, SL-SAM achieves the performances comparable to the state-of-the-art baselines, including a \#1 rank on LLM fine-tuning. Meanwhile, SL-SAM significantly reduces the ratio of active parameters in backpropagation compared to vanilla SAM (SL-SAM activates 47\%, 22\% and 21\% parameters on the vision, moderate and large language model respectively while vanilla SAM always activates 100\%), verifying the efficiency of our proposed algorithm.
format Preprint
id arxiv_https___arxiv_org_abs_2602_09395
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuning
Cheng, Yifei
Yang, Xianglin
Wang, Guoxia
Huang, Chao
Ma, Fei
Yu, Dianhai
Cao, Xiaochun
Shen, Li
Machine Learning
Sharpness-aware minimization (SAM) seeks the minima with a flat loss landscape to improve the generalization performance in machine learning tasks, including fine-tuning. However, its extra parameter perturbation step doubles the computation cost, which becomes the bottleneck of SAM in the practical implementation. In this work, we propose an approach SL-SAM to break this bottleneck by introducing the sparse technique to layers. Our key innovation is to frame the dynamic selection of layers for both the gradient ascent (perturbation) and descent (update) steps as a multi-armed bandit problem. At the beginning of each iteration, SL-SAM samples a part of the layers of the model according to the gradient norm to participate in the backpropagation of the following parameter perturbation and update steps, thereby reducing the computation complexity. We then provide the analysis to guarantee the convergence of SL-SAM. In the experiments of fine-tuning models in several tasks, SL-SAM achieves the performances comparable to the state-of-the-art baselines, including a \#1 rank on LLM fine-tuning. Meanwhile, SL-SAM significantly reduces the ratio of active parameters in backpropagation compared to vanilla SAM (SL-SAM activates 47\%, 22\% and 21\% parameters on the vision, moderate and large language model respectively while vanilla SAM always activates 100\%), verifying the efficiency of our proposed algorithm.
title Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuning
topic Machine Learning
url https://arxiv.org/abs/2602.09395