Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization Term

About

Deep Neural Networks (DNNs) generalization is known to be closely related to the flatness of minima, leading to the development of Sharpness-Aware Minimization (SAM) for seeking flatter minima and better generalization. In this paper, we revisit the loss of SAM and propose a more general method, called WSAM, by incorporating sharpness as a regularization term. We prove its generalization bound through the combination of PAC and Bayes-PAC techniques, and evaluate its performance on various public datasets. The results demonstrate that WSAM achieves improved generalization, or is at least highly competitive, compared to the vanilla optimizer, SAM and its variants. The code is available at https://github.com/intelligent-machine-learning/atorch/tree/main/atorch/optimizers.

Yun Yue, Jiadi Jiang, Zhiling Ye, Ning Gao, Yongchao Liu, Ke Zhang• 2023

Related benchmarks

TaskDatasetResultRank
Instruction FollowingBBH--
40
Instruction FollowingDROP
DROP Score50.63
20
Instruction FollowingMMLU
MMLU Accuracy63.42
20
Instruction FollowingHEval--
12
Showing 4 of 4 rows

Other info

Follow for update