Improving SAM Requires Rethinking its Optimization Formulation
Wanyun Xie, Fabian Latorre, Kimon Antonakopoulos, Thomas Pethick, Volkan Cevher
摘要
This paper rethinks Sharpness-Aware Minimization (SAM), which is originally formulated as a zero-sum game where the weights of a network and a bounded perturbation try to minimize/maximize, respectively, the same differentiable loss. To fundamentally improve this design, we argue that SAM should instead be reformulated using the 0-1 loss. As a continuous relaxation, we follow the simple conventional approach where the minimizing (maximizing) player uses an upper bound (lower bound) surrogate to the 0-1 loss. This leads to a novel formulation of SAM as a bilevel optimization problem, dubbed as BiSAM. BiSAM with newly designed lower-bound surrogate loss indeed constructs stronger perturbation. Through numerical evidence, we show that BiSAM consistently results in improved performance when compared to the original SAM and variants, while enjoying similar computational complexity. Our code is available at https://github.com/ LIONS-EPFL/BiSAM .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and Beyond 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Tilted Sharpness-Aware Minimization 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Tilted Sharpness-Aware Minimization 引用了 Surrogate Gap Minimization Improves Sharpness-Aware Training
- Tilted Sharpness-Aware Minimization 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Understanding SAM through Minimax Perspective 引用了 Surrogate Gap Minimization Improves Sharpness-Aware Training
- Understanding SAM through Minimax Perspective 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Surrogate Gap Minimization Improves Sharpness-Aware Training 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Surrogate Gap Minimization Improves Sharpness-Aware Training 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Flatness-Aware Stochastic Gradient Langevin Dynamics 引用了 ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
- Flatness-Aware Stochastic Gradient Langevin Dynamics 引用了 Tilted Sharpness-Aware Minimization
- Flatness-Aware Stochastic Gradient Langevin Dynamics 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Flatness-Aware Stochastic Gradient Langevin Dynamics 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
引用它的顶会 Paper5
- Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and BeyondRisheng Liu, Zhu Liu, Weihao Mao, Wei Yao 等NeurIPS 2025 · 2 次引用
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded SchedulerDimitris Oikonomou, Nicolas LoizouICML 2026
- Tilted Sharpness-Aware MinimizationTian Li, Tianyi Zhou, Jeff A. BilmesICML 2025
- Understanding SAM through Minimax PerspectiveYing Chen, Aoxi Li, Javad LavaeiICML 2026
- Flatness-Aware Stochastic Gradient Langevin DynamicsStefano Bruno, Youngsik Hwang, JaeHyeon An, Sotirios Sabanis 等ICML 2026
它引用的 Paper12
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 次引用
- ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural NetworksJungmin Kwon, Jeongseop Kim, Hyunseo Park, In Kwon ChoiICML 2021 · 385 次引用
- MetaPoison: Practical General-purpose Clean-label Data PoisoningW. Ronny Huang, Jonas Geiping, Liam Fowl, Gavin Taylor 等NeurIPS 2020 · 242 次引用
- Surrogate Gap Minimization Improves Sharpness-Aware TrainingJuntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui 等ICLR 2022 · 213 次引用
相关 Paper
- Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware MinimizationJinping Wang, Qinhan Liu, Zhiwu Xie, Zhiqiang GaoICML 2026
- Revisiting Sharpness-Aware Minimization: A More Faithful and Effective ImplementationJianlong Chen, Zhiming ZhouICLR 2026 · 1 次引用
- Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou 等CVPR 2023
- Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 次引用
- Why is SAM Robust to Label Noise?Christina Baek, J. Zico Kolter, Aditi RaghunathanICLR 2024 · 24 次引用
