Lune

EMNLP2022Top-tier venue

GA-SAM: Gradient-Strength based Adaptive Sharpness-Aware Minimization for Improved Generalization

Zhiyuan Zhang, Ruixuan Luo, Qi Su, Xu Sun

Abstract

Recently, Sharpness-Aware Minimization (SAM) algorithm has shown state-of-the-art generalization abilities in vision tasks. It demonstrates that flat minima tend to imply better generalization abilities. However, it has some difficulty implying SAM to some natural language tasks, especially to models with drastic gradient changes, such as RNNs. In this work, we analyze the relation between the flatness of the local minimum and its generalization ability from a novel and straightforward theoretical perspective. We propose that the shift of the training and test distributions can be equivalently seen as a virtual parameter corruption or perturbation, which can explain why flat minima that are robust against parameter corruptions or perturbations have better generalization performances. On its basis, we propose a Gradient-Strength based Adaptive Sharpness-Aware Minimization (GA-SAM) algorithm to help to learn algorithms find flat minima that generalize better. Results in various language benchmarks validate the effectiveness of the proposed GA-SAM algorithm on natural language tasks.

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

  • ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Robust Generalization Against Photon-Limited Corruptions via Worst-Case Sharpness Minimization cites Adversarial Weight Perturbation Helps Robust Generalization
  • Robust Generalization Against Photon-Limited Corruptions via Worst-Case Sharpness Minimization cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Adversarial Weight Perturbation Helps Robust Generalization cites Towards Evaluating the Robustness of Neural Networks
  • FlatMatch: Bridging Labeled Data and Unlabeled Data with Cross-Sharpness for Semi-Supervised Learning cites Robust Generalization Against Photon-Limited Corruptions via Worst-Case Sharpness Minimization
  • FlatMatch: Bridging Labeled Data and Unlabeled Data with Cross-Sharpness for Semi-Supervised Learning cites Adversarial Weight Perturbation Helps Robust Generalization
  • FlatMatch: Bridging Labeled Data and Unlabeled Data with Cross-Sharpness for Semi-Supervised Learning cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Enhancing Sharpness-Aware Optimization Through Variance Suppression cites ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
  • Enhancing Sharpness-Aware Optimization Through Variance Suppression cites Adversarial Weight Perturbation Helps Robust Generalization
  • Enhancing Sharpness-Aware Optimization Through Variance Suppression cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Beyond Sharpness: The Role of Nonuniformity in Generalization cites ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
  • Beyond Sharpness: The Role of Nonuniformity in Generalization 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. FlatMatch: Bridging Labeled Data and Unlabeled Data with Cross-Sharpness for Semi-Supervised LearningZhuo Huang, Li Shen, Jun Yu, Bo Han et al.NeurIPS 2023 · 50 citations
  2. Enhancing Sharpness-Aware Optimization Through Variance SuppressionBingcong Li, Georgios B. GiannakisNeurIPS 2023 · 47 citations
  3. Fed-FA: Theoretically Modeling Client Data Divergence for Federated Language Backdoor DefenseZhiyuan Zhang, Deli Chen, Hao Zhou, Fandong Meng et al.NeurIPS 2023 · 10 citations
  4. Robust Generalization Against Photon-Limited Corruptions via Worst-Case Sharpness MinimizationZhuo Huang, Miaoxi Zhu, Xiaobo Xia, Li Shen et al.CVPR 2023
  5. Beyond Sharpness: The Role of Nonuniformity in GeneralizationYingcong Zhou, Pingfan Wu, Li Wang, Zhiguo Fu et al.AAAI 2026

Builds on11

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  2. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  3. Adversarial Weight Perturbation Helps Robust GeneralizationDongxian Wu, Shu-Tao Xia, Yisen WangNeurIPS 2020 · 917 citations
  4. Data-Free Quantization Through Weight Equalization and Bias CorrectionMarkus Nagel, Mart van Baalen, Tijmen Blankevoort, Max WellingICCV 2019 · 622 citations
  5. ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural NetworksJungmin Kwon, Jeongseop Kim, Hyunseo Park, In Kwon ChoiICML 2021 · 385 citations

Related papers

  1. Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou et al.CVPR 2023
  2. When Do Flat Minima Optimizers Work?Jean Kaddour, Linqing Liu, Ricardo Silva, Matt J. KusnerNeurIPS 2022 · 102 citations
  3. Tilted Sharpness-Aware MinimizationTian Li, Tianyi Zhou, Jeff A. BilmesICML 2025
  4. Sharpness-Aware Minimization with Dynamic ReweightingWenxuan Zhou, Fangyu Liu, Huan Zhang, Muhao ChenEMNLP Findings 2022 · 2 citations
  5. Align-SAM: Seeking Flatter Minima for Better Cross-Subset AlignmentVan-Anh Nguyen, Mehrtash Harandi, Thanh-Toan Do, Linh Ngo Van et al.ICLR 2026
Dusk over the sea between two cliffs drawn in fine vertical lines