How Sharpness-Aware Minimization Minimizes Sharpness?
Kaiyue Wen, Tengyu Ma, Zhiyuan Li
Abstract
Sharpness-Aware Minimization (SAM) is a highly effective regularization technique for improving the generalization of deep neural networks for various settings. However, the underlying working of SAM remains elusive because of various intriguing approximations in the theoretical characterizations. SAM intends to penalize a notion of sharpness of the model but implements a computationally efficient variant; moreover, a third notion of sharpness was used for proving generalization guarantees. The subtle differences in these notions of sharpness can indeed lead to significantly different empirical results. This paper rigorously nails down the exact sharpness notion that SAM regularizes and clarifies the underlying mechanism. We also show that the two steps of approximations in the original motivation of SAM individually lead to inaccurate local conclusions, but their combination accidentally reveals the correct effect, when full-batch gradients are applied. Furthermore, we also prove that the stochastic version of SAM in fact regularizes the third notion of sharpness mentioned above, which is most likely to be the preferred notion for practical performance. The key mechanism behind this intriguing phenomenon is the alignment between the gradient and the top eigenvector of Hessian when SAM is applied.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
28 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Sharpness-Aware Minimization Leads to Low-Rank Features cites Adversarial Weight Perturbation Helps Robust Generalization
- Sharpness-Aware Minimization Leads to Low-Rank Features cites Fantastic Generalization Measures and Where to Find Them
- Sharpness-Aware Minimization Leads to Low-Rank Features cites Towards Understanding Sharpness-Aware Minimization
- Sharpness-Aware Minimization Leads to Low-Rank Features cites Sharpness-aware Minimization for Efficiently Improving Generalization
- PLASTIC: Improving Input and Label Plasticity for Sample Efficient Reinforcement Learning cites Adversarial Weight Perturbation Helps Robust Generalization
- PLASTIC: Improving Input and Label Plasticity for Sample Efficient Reinforcement Learning cites Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites PLASTIC: Improving Input and Label Plasticity for Sample Efficient Reinforcement Learning
- PLASTIC: Improving Input and Label Plasticity for Sample Efficient Reinforcement Learning cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Surrogate Gap Minimization Improves Sharpness-Aware Training cites Fantastic Generalization Measures and Where to Find Them
- Surrogate Gap Minimization Improves Sharpness-Aware Training cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites Surrogate Gap Minimization Improves Sharpness-Aware Training
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites Fantastic Generalization Measures and Where to Find Them
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites Towards Understanding Sharpness-Aware Minimization
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Towards Understanding Sharpness-Aware Minimization cites Adversarial Weight Perturbation Helps Robust Generalization
- Towards Understanding Sharpness-Aware Minimization cites Fantastic Generalization Measures and Where to Find Them
- Towards Understanding Sharpness-Aware Minimization cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-aware Minimization for Efficiently Improving Generalization cites Fantastic Generalization Measures and Where to Find Them
Cited by top-tier papers28
- Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce GrokkingKaifeng Lyu, Jikai Jin, Zhiyuan Li, Simon Shaolei Du et al.ICLR 2024 · 71 citations
- PLASTIC: Improving Input and Label Plasticity for Sample Efficient Reinforcement LearningHojoon Lee, Hanseul Cho, Hyunseung Kim, Daehoon Gwak et al.NeurIPS 2023 · 50 citations
- Sharpness-Aware Minimization Leads to Low-Rank FeaturesMaksym Andriushchenko, Dara Bahri, Hossein Mobahi, Nicolas FlammarionNeurIPS 2023 · 48 citations
- Implicit Bias of AdamW: ℓ∞-Norm Constrained OptimizationShuo Xie, Zhiyuan LiICML 2024 · 46 citations
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to OptimaDongkuk Si, Chulhee YunNeurIPS 2023 · 34 citations
Builds on15
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Adversarial Weight Perturbation Helps Robust GeneralizationDongxian Wu, Shu-Tao Xia, Yisen WangNeurIPS 2020 · 917 citations
- Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan et al.ICLR 2020 · 705 citations
- Surrogate Gap Minimization Improves Sharpness-Aware TrainingJuntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui et al.ICLR 2022 · 213 citations
- Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 citations
Related papers
- Explicit Eigenvalue Regularization Improves Sharpness-Aware MinimizationHaocheng Luo, Tuan Truong, Tung Pham, Mehrtash Harandi et al.NeurIPS 2024 · 28 citations
- Layer-Wise Adaptive Gradient Norm Penalizing Method for Efficient and Accurate Deep LearningSunwoo LeeKDD 2024 · 2 citations
- Sharpness-Aware Minimization Efficiently Selects Flatter Minima Late In TrainingZhanpeng Zhou, Mingze Wang, Yuchen Mao, Bingrui Li et al.ICLR 2025
- Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization TermYun Yue, Jiadi Jiang, Zhiling Ye, Ning Gao et al.KDD 2023 · 7 citations
- Why is SAM Robust to Label Noise?Christina Baek, J. Zico Kolter, Aditi RaghunathanICLR 2024 · 24 citations
