Lune

ICML2024Top-tier venue

Improving SAM Requires Rethinking its Optimization Formulation

Wanyun Xie, Fabian Latorre, Kimon Antonakopoulos, Thomas Pethick, Volkan Cevher

Abstract

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 .

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.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and Beyond cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Tilted Sharpness-Aware Minimization cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Tilted Sharpness-Aware Minimization cites Surrogate Gap Minimization Improves Sharpness-Aware Training
  • Tilted Sharpness-Aware Minimization cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Understanding SAM through Minimax Perspective cites Surrogate Gap Minimization Improves Sharpness-Aware Training
  • Understanding SAM through Minimax Perspective cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Surrogate Gap Minimization Improves Sharpness-Aware Training cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Surrogate Gap Minimization Improves Sharpness-Aware Training cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Flatness-Aware Stochastic Gradient Langevin Dynamics cites ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
  • Flatness-Aware Stochastic Gradient Langevin Dynamics cites Tilted Sharpness-Aware Minimization
  • Flatness-Aware Stochastic Gradient Langevin Dynamics cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Flatness-Aware Stochastic Gradient Langevin Dynamics cites Sharpness-aware Minimization for Efficiently Improving Generalization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Bilevel Optimization for Adversarial Learning Problems: Sharpness, Generation, and BeyondRisheng Liu, Zhu Liu, Weihao Mao, Wei Yao et al.NeurIPS 2025 · 2 citations
  2. Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded SchedulerDimitris Oikonomou, Nicolas LoizouICML 2026
  3. Tilted Sharpness-Aware MinimizationTian Li, Tianyi Zhou, Jeff A. BilmesICML 2025
  4. Understanding SAM through Minimax PerspectiveYing Chen, Aoxi Li, Javad LavaeiICML 2026
  5. Flatness-Aware Stochastic Gradient Langevin DynamicsStefano Bruno, Youngsik Hwang, JaeHyeon An, Sotirios Sabanis et al.ICML 2026

Builds on12

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  3. ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural NetworksJungmin Kwon, Jeongseop Kim, Hyunseo Park, In Kwon ChoiICML 2021 · 385 citations
  4. MetaPoison: Practical General-purpose Clean-label Data PoisoningW. Ronny Huang, Jonas Geiping, Liam Fowl, Gavin Taylor et al.NeurIPS 2020 · 242 citations
  5. Surrogate Gap Minimization Improves Sharpness-Aware TrainingJuntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui et al.ICLR 2022 · 213 citations

Related papers

  1. Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware MinimizationJinping Wang, Qinhan Liu, Zhiwu Xie, Zhiqiang GaoICML 2026
  2. Revisiting Sharpness-Aware Minimization: A More Faithful and Effective ImplementationJianlong Chen, Zhiming ZhouICLR 2026 · 1 citation
  3. Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou et al.CVPR 2023
  4. Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 citations
  5. Why is SAM Robust to Label Noise?Christina Baek, J. Zico Kolter, Aditi RaghunathanICLR 2024 · 24 citations
Dusk over the sea between two cliffs drawn in fine vertical lines