Lune

ICLR2022Top-tier venue

Surrogate Gap Minimization Improves Sharpness-Aware Training

Juntang Zhuang, Boqing Gong, Liangzhe Yuan, Yin Cui, Hartwig Adam, Nicha C. Dvornek, Sekhar Tatikonda, James S. Duncan, Ting Liu

Abstract

The recently proposed Sharpness-Aware Minimization (SAM) improves generalization by minimizing a perturbed loss defined as the maximum loss within a neighborhood in the parameter space. However, we show that both sharp and flat minima can have a low perturbed loss, implying that SAM does not always prefer flat minima. Instead, we define a surrogate gap, a measure equivalent to the dominant eigenvalue of Hessian at a local minimum when the radius of the neighborhood (to derive the perturbed loss) is small. The surrogate gap is easy to compute and feasible for direct minimization during training. Based on the above observations, we propose Surrogate Gap Guided Sharpness-Aware Minimization (GSAM), a novel improvement over SAM with negligible computation overhead. Conceptually, GSAM consists of two steps: 1) a gradient descent like SAM to minimize the perturbed loss, and 2) an ascent step in the orthogonal direction (after gradient decomposition) to minimize the surrogate gap and yet not affect the perturbed loss. GSAM seeks a region with both small loss (by step 1) and low sharpness (by step 2), giving rise to a model with high generalization capabilities. Theoretically, we show the convergence of GSAM and provably better generalization than SAM. Empirically, GSAM consistently improves generalization (e.g., +3.2% over SAM and +5.4% over AdamW on ImageNet top-1 accuracy for ViT-B/32). Code is released at https://sites.google.com/view/gsam-iclr22/home.

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.

102 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

  • MLP-Mixer: An all-MLP Architecture for Vision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Sharpness-Aware Training for Free cites MLP-Mixer: An all-MLP Architecture for Vision
  • Sharpness-Aware Training for Free cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Sharpness-Aware Training for Free cites Fantastic Generalization Measures and Where to Find Them
  • Sharpness-Aware Training for Free cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Enhancing Fine-Tuning based Backdoor Defense with Sharpness-Aware Minimization cites Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation Approach
  • Enhancing Fine-Tuning based Backdoor Defense with Sharpness-Aware Minimization cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation Approach cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation Approach cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • A Modern Look at the Relationship between Sharpness and Generalization cites Sharpness-Aware Training for Free
  • A Modern Look at the Relationship between Sharpness and Generalization cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • A Modern Look at the Relationship between Sharpness and Generalization cites Fantastic Generalization Measures and Where to Find Them
  • A Modern Look at the Relationship between Sharpness and Generalization cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Sharpness-aware Minimization for Efficiently Improving Generalization cites Fantastic Generalization Measures and Where to Find Them
  • When Do Flat Minima Optimizers Work? cites MLP-Mixer: An all-MLP Architecture for Vision
  • When Do Flat Minima Optimizers Work? cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • When Do Flat Minima Optimizers Work? cites Fantastic Generalization Measures and Where to Find Them
  • When Do Flat Minima Optimizers Work? cites Sharpness-aware Minimization for Efficiently Improving Generalization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers102

  1. Sharpness-Aware Training for FreeJiawei Du, Daquan Zhou, Jiashi Feng, Vincent Y. F. Tan et al.NeurIPS 2022 · 132 citations
  2. Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation ApproachPeng Mi, Li Shen, Tianhe Ren, Yiyi Zhou et al.NeurIPS 2022 · 102 citations
  3. When Do Flat Minima Optimizers Work?Jean Kaddour, Linqing Liu, Ricardo Silva, Matt J. KusnerNeurIPS 2022 · 102 citations
  4. Enhancing Fine-Tuning based Backdoor Defense with Sharpness-Aware MinimizationMingli Zhu, Shaokui Wei, Li Shen, Yanbo Fan et al.ICCV 2023 · 95 citations
  5. A Modern Look at the Relationship between Sharpness and GeneralizationMaksym Andriushchenko, Francesco Croce, Maximilian Müller, Matthias Hein et al.ICML 2023 · 92 citations

Builds on13

  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. MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer et al.NeurIPS 2021 · 3,862 citations
  3. On the Variance of the Adaptive Learning Rate and BeyondLiyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen et al.ICLR 2020 · 2,210 citations
  4. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  5. Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan et al.ICLR 2020 · 705 citations

Related papers

  1. Random Sharpness-Aware MinimizationYong Liu, Siqi Mai, Minhao Cheng, Xiangning Chen et al.NeurIPS 2022 · 38 citations
  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. Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware MinimizationJinping Wang, Qinhan Liu, Zhiwu Xie, Zhiqiang GaoICML 2026
  5. Improving SAM Requires Rethinking its Optimization FormulationWanyun Xie, Fabian Latorre, Kimon Antonakopoulos, Thomas Pethick et al.ICML 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines