arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.09395cs.LG
收藏

稀疏层尖锐性感知最小化用于高效的微调

Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuning

School of Cyber Science and Technology, Sun Yat-sen University, Shenzhen Campus(网络安全科学与技术学院,中山大学深圳校区);School of Computing, National University of Singapore(计算学院,新加坡国立大学);Baidu Inc(百度公司);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东人工智能与数字经济实验室(深圳))

Yifei Cheng, Xianglin Yang, Guoxia Wang, Chao Huang, Fei Ma, Dianhai Yu, Xiaochun Cao, Li Shen

AI总结:

SL-SAM通过稀疏技术优化微调过程,减少计算成本并提升效率,实现与先进基线相当的性能。

摘要:

尖锐性感知最小化(SAM)旨在寻找具有平坦损失景观的极小值,以提高机器学习任务中的泛化性能,包括微调。然而,其额外的参数扰动步骤会增加计算成本,成为SAM在实际应用中的瓶颈。在本工作中,我们提出了一种方法SL-SAM,通过引入稀疏技术到层中来打破这一瓶颈。我们的关键创新是将动态选择层用于梯度上升(扰动)和下降(更新)步骤视为多臂老虎机问题。在每次迭代开始时,SL-SAM根据梯度范数采样模型的一部分层,参与后续参数扰动和更新步骤的反向传播,从而减少计算复杂性。我们随后提供了分析以保证SL-SAM的收敛性。在微调模型的多个任务实验中,SL-SAM在性能上与最先进的基线相当,包括在LLM微调中排名第一。同时,SL-SAM在反向传播中活跃参数的比例显著低于vanilla SAM(SL-SAM在视觉、中等和大语言模型上分别激活47%、22%和21%的参数,而vanilla SAM始终激活100%),验证了我们所提算法的效率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑