mlsanityData to 14 Oct 2026

Friendly Sharpness-Aware Minimization

arXiv 2403.12350 ↗First posted 19 Mar 2024cs.LGcited by 53

Not on the map. Why?

Abstract (arXiv)

Sharpness-Aware Minimization (SAM) has been instrumental in improving deep neural network training by minimizing both training loss and loss sharpness. Despite the practical success, the mechanisms behind SAM's generalization enhancements remain elusive, limiting its progress in deep learning optimization. In this work, we investigate SAM's core components for generalization improvement and introduce "Friendly-SAM" (F-SAM) to further enhance SAM's generalization. Our investigation reveals the key role of batch-specific stochastic gradient noise within the adversarial perturbation, i.e., the current minibatch gradient, which significantly influences SAM's generalization performance. By decomposing the adversarial perturbation in SAM into full gradient and stochastic gradient noise components, we discover that relying solely on the full gradient component degrades generalization while excluding it leads to improved performance. The possible reason lies in the full gradient component's increase in sharpness loss for the entire dataset, creating inconsistencies with the subsequent sharpness minimization step solely on the current minibatch data. Inspired by these insights, F-SAM aims to mitigate the negative effects of the full gradient component. It removes the full gradient estimated by an exponentially moving average (EMA) of historical stochastic gradients, and then leverages stochastic gradient noise for improved generalization. Moreover, we provide theoretical validation for the EMA approximation and prove the convergence of F-SAM on non-convex problems. Extensive experiments demonstrate the superior generalization performance and robustness of F-SAM over vanilla SAM. Code is available at https://github.com/nblt/F-SAM.

Key facts. Cited by 53 papers in the map (data through 14 Oct 2026). Builds on 40 of its 55 references that are in the map. First posted on arXiv 19 Mar 2024.

Builds on

40 of 55 references.

References · 40

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  6. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  7. 2016Wide Residual Networkscited by 3,070
  8. 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,628
  9. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
  10. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  11. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
  12. 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
28 more
  1. 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 724
  2. 2016Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Lojasiewicz Conditioncited by 539
  3. 2017Sharp Minima Can Generalize For Deep Netscited by 466
  4. 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 359
  5. 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
  6. 2019An Investigation into Neural Net Optimization via Hessian Eigenvalue Densitycited by 292
  7. 2020AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradientscited by 283
  8. 2022Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Modelscited by 174
  9. 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
  10. 2016Deep Pyramidal Residual Networkscited by 163
  11. 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
  12. 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
  13. 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
  14. 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 126
  15. 2022Sharpness-Aware Training for Freecited by 95
  16. 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
  17. 2020Regularizing Neural Networks via Adversarial Model Perturbationcited by 78
  18. 2022Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation Approachcited by 70
  19. 2017Sub-sampled Cubic Regularization for Non-convex Optimizationcited by 63
  20. 2019Normalized Flat Minima: Exploring Scale Invariant Definition of Flat Minima for Neural Networks using PAC-Bayesian Analysiscited by 59
  21. 2023An Adaptive Policy to Employ Sharpness-Aware Minimizationcited by 43
  22. 2022Low-Pass Filtering SGD for Recovering Flat Optima in the Deep Learning Optimization Landscapecited by 39
  23. 2023Enhancing Sharpness-Aware Optimization Through Variance Suppressioncited by 37
  24. 2019Escaping Saddle Points with Adaptive Gradient Methodscited by 34
  25. 2023Why Does Sharpness-Aware Minimization Generalize Better Than SGD?cited by 28
  26. 2018SmoothOut: Smoothing Out Sharp Minima to Improve Generalization in Deep Learningcited by 25
  27. 2022Efficient Generalization Improvement Guided by Random Weight Perturbationcited by 8
  28. 2022Improved Deep Neural Network Generalization Using m-Sharpness-Aware Minimizationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 12; 2025: 15; 2026: 26.

53 papers.

Sort:

By area:

  1. 2024Flat-LoRA: Low-Rank Adaptation over a Flat Loss Landscapecited by 20
  2. 2025Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuningcited by 16
  3. 2024Revisiting Random Weight Perturbation for Efficiently Improving Generalizationcited by 13
  4. 2024SAMPa: Sharpness-aware Minimization Parallelizedcited by 8
  5. 2025Towards Robust Influence Functions with Flat Validation Minimacited by 4
  6. 2025How Far Are We from True Unlearnability?cited by 4
  7. 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimizationcited by 4
  8. 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
  9. 2024Learning Scalable Model Soup on a Single GPU: An Efficient Subspace Training Strategycited by 3
  10. 2024An Uncertainty-Aware Generalization Framework for Cardiovascular Image Segmentationcited by 3
  11. 2024Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalizationcited by 3
  12. 2025Understanding Flatness in Generative Models: Its Role and Benefitscited by 3
38 more
  1. 2025Bi-LoRA: Efficient Sharpness-Aware Minimization for Fine-Tuning Large-Scale Modelscited by 3
  2. 2024Agnostic Sharpness-Aware Minimizationcited by 2
  3. 2024Bilateral Sharpness-Aware Minimization for Flatter Minimacited by 2
  4. 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noisecited by 2
  5. 2025Modality-Aware SAM: Sharpness-Aware-Minimization Driven Gradient Modulation for Harmonized Multimodal Learningcited by 2
  6. 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretrainingcited by 2
  7. 2024Convergence of Sharpness-Aware Minimization Algorithms using Increasing Batch Size and Decaying Learning Ratecited by 1
  8. 2024Meta Curvature-Aware Minimization for Domain Generalizationcited by 1
  9. 2024Sharpness-Aware Minimization with Adaptive Regularization for Training Deep Neural Networkscited by 1
  10. 2025FTCFormer: Fuzzy Token Clustering Transformer for Image Classificationcited by 1
  11. 2025R'enyi Sharpness: A Novel Sharpness that Strongly Correlates with Generalizationcited by 1
  12. 2025Do Flat Minima Improve Sparse Novel View Synthesis?cited by 1
  13. 2026Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuningcited by 1
  14. 2026Reframing Long-Tailed Learning via Loss Landscape Geometrycited by 1
  15. 2026Fitting Is Not Enough: Smoothness in Extremely Quantized LLMscited by 1
  16. 2026Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware Minimizationcited by 1
  17. 2026Navigating Potholes with Geometry-Aware Sharpness Minimizationcited by 1
  18. 2026Flatness Preserves Instruction Following in Vision-Language-Action Modelscited by 1
  19. 2026Distill on a Diet: Efficient Knowledge Distillation via Learnable Data Pruningcited by 1
  20. 2026Sharpness-Aware Minimization and Muon: Robustness under the Spectral Normcited by 1
  21. 2024Understanding SAM's Robustness to Noisy Labels through Gradient Down-weightingcited by 0
  22. 2025Sharpness-Aware Minimization with Z-Score Gradient Filteringcited by 0
  23. 2025LSAM: Asynchronous Distributed Training with Landscape-Smoothed Sharpness-Aware Minimizationcited by 0
  24. 2025Sharpness-Aware Minimization Can Hallucinate Minimizerscited by 0
  25. 2025Flatness-Aware Stochastic Gradient Langevin Dynamicscited by 0
  26. 2026X-SAM: Boosting Sharpness-Aware Minimization with Dominant-Eigenvector Gradient Correctioncited by 0
  27. 2026Towards Compact and Robust DNNs via Compression-aware Sharpness Minimizationcited by 0
  28. 2026Decentralized SGD with Controlled Disagreement Finds Flatter Minimacited by 0
  29. 2026Incorruptible Neural Networks: Training Models that can Generalize to Large Internal Perturbationscited by 0
  30. 2026From Misclassifications to Outliers: Joint Reliability Assessment in Classificationcited by 0
  31. 2026Revisiting Sharpness-Aware Minimization: A More Faithful and Effective Implementationcited by 0
  32. 2026Sharpness-Aware Poisoning: Enhancing Transferability of Injective Attacks on Recommender Systemscited by 0
  33. 2026FedVSSAM: Mitigating Flatness Incompatibility in Sharpness-Aware Federated Learningcited by 0
  34. 2026Certification of Machine Learning Models via Directional Sharpnesscited by 0
  35. 2026SleepBand: Single-Source Domain Generalization for Sleep Staging via Physiologically Structured Spectral Modelingcited by 0
  36. 2026SAMPLe: SAM-based Optimizer for Prompt Learning in VLMscited by 0
  37. 2026Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learningcited by 0
  38. 2026Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimizationcited by 0

50 most cited of 53 All 53 (JSON)