Friendly Sharpness-Aware Minimization
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
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2016Wide Residual Networkscited by 3,070
- 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,628
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
28 more
- 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 724
- 2016Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Lojasiewicz Conditioncited by 539
- 2017Sharp Minima Can Generalize For Deep Netscited by 466
- 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 359
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
- 2019An Investigation into Neural Net Optimization via Hessian Eigenvalue Densitycited by 292
- 2020AdaBelief Optimizer: Adapting Stepsizes by the Belief in Observed Gradientscited by 283
- 2022Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Modelscited by 174
- 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
- 2016Deep Pyramidal Residual Networkscited by 163
- 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
- 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 126
- 2022Sharpness-Aware Training for Freecited by 95
- 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
- 2020Regularizing Neural Networks via Adversarial Model Perturbationcited by 78
- 2022Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation Approachcited by 70
- 2017Sub-sampled Cubic Regularization for Non-convex Optimizationcited by 63
- 2019Normalized Flat Minima: Exploring Scale Invariant Definition of Flat Minima for Neural Networks using PAC-Bayesian Analysiscited by 59
- 2023An Adaptive Policy to Employ Sharpness-Aware Minimizationcited by 43
- 2022Low-Pass Filtering SGD for Recovering Flat Optima in the Deep Learning Optimization Landscapecited by 39
- 2023Enhancing Sharpness-Aware Optimization Through Variance Suppressioncited by 37
- 2019Escaping Saddle Points with Adaptive Gradient Methodscited by 34
- 2023Why Does Sharpness-Aware Minimization Generalize Better Than SGD?cited by 28
- 2018SmoothOut: Smoothing Out Sharp Minima to Improve Generalization in Deep Learningcited by 25
- 2022Efficient Generalization Improvement Guided by Random Weight Perturbationcited by 8
- 2022Improved Deep Neural Network Generalization Using m-Sharpness-Aware Minimizationcited by 5
Built on by
Citing papers per year: 2024: 12; 2025: 15; 2026: 26.
53 papers.
Sort:
By area:
- 2024Flat-LoRA: Low-Rank Adaptation over a Flat Loss Landscapecited by 20
- 2025Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuningcited by 16
- 2024Revisiting Random Weight Perturbation for Efficiently Improving Generalizationcited by 13
- 2024SAMPa: Sharpness-aware Minimization Parallelizedcited by 8
- 2025Towards Robust Influence Functions with Flat Validation Minimacited by 4
- 2025How Far Are We from True Unlearnability?cited by 4
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimizationcited by 4
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2024Learning Scalable Model Soup on a Single GPU: An Efficient Subspace Training Strategycited by 3
- 2024An Uncertainty-Aware Generalization Framework for Cardiovascular Image Segmentationcited by 3
- 2024Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalizationcited by 3
- 2025Understanding Flatness in Generative Models: Its Role and Benefitscited by 3
38 more
- 2025Bi-LoRA: Efficient Sharpness-Aware Minimization for Fine-Tuning Large-Scale Modelscited by 3
- 2024Agnostic Sharpness-Aware Minimizationcited by 2
- 2024Bilateral Sharpness-Aware Minimization for Flatter Minimacited by 2
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noisecited by 2
- 2025Modality-Aware SAM: Sharpness-Aware-Minimization Driven Gradient Modulation for Harmonized Multimodal Learningcited by 2
- 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretrainingcited by 2
- 2024Convergence of Sharpness-Aware Minimization Algorithms using Increasing Batch Size and Decaying Learning Ratecited by 1
- 2024Meta Curvature-Aware Minimization for Domain Generalizationcited by 1
- 2024Sharpness-Aware Minimization with Adaptive Regularization for Training Deep Neural Networkscited by 1
- 2025FTCFormer: Fuzzy Token Clustering Transformer for Image Classificationcited by 1
- 2025R'enyi Sharpness: A Novel Sharpness that Strongly Correlates with Generalizationcited by 1
- 2025Do Flat Minima Improve Sparse Novel View Synthesis?cited by 1
- 2026Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuningcited by 1
- 2026Reframing Long-Tailed Learning via Loss Landscape Geometrycited by 1
- 2026Fitting Is Not Enough: Smoothness in Extremely Quantized LLMscited by 1
- 2026Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware Minimizationcited by 1
- 2026Navigating Potholes with Geometry-Aware Sharpness Minimizationcited by 1
- 2026Flatness Preserves Instruction Following in Vision-Language-Action Modelscited by 1
- 2026Distill on a Diet: Efficient Knowledge Distillation via Learnable Data Pruningcited by 1
- 2026Sharpness-Aware Minimization and Muon: Robustness under the Spectral Normcited by 1
- 2024Understanding SAM's Robustness to Noisy Labels through Gradient Down-weightingcited by 0
- 2025Sharpness-Aware Minimization with Z-Score Gradient Filteringcited by 0
- 2025LSAM: Asynchronous Distributed Training with Landscape-Smoothed Sharpness-Aware Minimizationcited by 0
- 2025Sharpness-Aware Minimization Can Hallucinate Minimizerscited by 0
- 2025Flatness-Aware Stochastic Gradient Langevin Dynamicscited by 0
- 2026X-SAM: Boosting Sharpness-Aware Minimization with Dominant-Eigenvector Gradient Correctioncited by 0
- 2026Towards Compact and Robust DNNs via Compression-aware Sharpness Minimizationcited by 0
- 2026Decentralized SGD with Controlled Disagreement Finds Flatter Minimacited by 0
- 2026Incorruptible Neural Networks: Training Models that can Generalize to Large Internal Perturbationscited by 0
- 2026From Misclassifications to Outliers: Joint Reliability Assessment in Classificationcited by 0
- 2026Revisiting Sharpness-Aware Minimization: A More Faithful and Effective Implementationcited by 0
- 2026Sharpness-Aware Poisoning: Enhancing Transferability of Injective Attacks on Recommender Systemscited by 0
- 2026FedVSSAM: Mitigating Flatness Incompatibility in Sharpness-Aware Federated Learningcited by 0
- 2026Certification of Machine Learning Models via Directional Sharpnesscited by 0
- 2026SleepBand: Single-Source Domain Generalization for Sleep Staging via Physiologically Structured Spectral Modelingcited by 0
- 2026SAMPLe: SAM-based Optimizer for Prompt Learning in VLMscited by 0
- 2026Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learningcited by 0
- 2026Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimizationcited by 0
50 most cited of 53 All 53 (JSON)
- 2026Action-Consequence Alignment for Reliable Planning and Self-Improving in Latent World Models3 Oct 2026
- 2026PAPT++: Risk-Aware Adversarial Tuning and Generation for Single Domain Generalization4 Sep 2026
- 2026EMASAM: a Computationally Efficient Sharpness-Aware Minimization via EMA-Guided Perturbations15 Aug 2026
- 2026Sharpness-Aware Minimization and Muon: Robustness under the Spectral Norm28 Jul 2026
- 2026Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimization17 Jul 2026
- 2026Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learning7 Jul 2026
- 2026SAMPLe: SAM-based Optimizer for Prompt Learning in VLMs7 Jul 2026
- 2026SleepBand: Single-Source Domain Generalization for Sleep Staging via Physiologically Structured Spectral Modeling6 Jul 2026
- 2026Distill on a Diet: Efficient Knowledge Distillation via Learnable Data Pruning24 Jun 2026
- 2026Certification of Machine Learning Models via Directional Sharpness23 Jun 2026
- 2026Flatness Preserves Instruction Following in Vision-Language-Action Models22 Jun 2026
- 2026Navigating Potholes with Geometry-Aware Sharpness Minimization15 May 2026
38 more
- 2026Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware Minimization11 May 2026
- 2026FedVSSAM: Mitigating Flatness Incompatibility in Sharpness-Aware Federated Learning9 May 2026
- 2026Fitting Is Not Enough: Smoothness in Extremely Quantized LLMs9 May 2026
- 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretraining30 Apr 2026
- 2026Sharpness-Aware Poisoning: Enhancing Transferability of Injective Attacks on Recommender Systems24 Apr 2026
- 2026Reframing Long-Tailed Learning via Loss Landscape Geometry22 Mar 2026
- 2026Revisiting Sharpness-Aware Minimization: A More Faithful and Effective Implementation9 Mar 2026
- 2026From Misclassifications to Outliers: Joint Reliability Assessment in Classification4 Mar 2026
- 2026Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuning10 Feb 2026
- 2026Incorruptible Neural Networks: Training Models that can Generalize to Large Internal Perturbations7 Feb 2026
- 2026Decentralized SGD with Controlled Disagreement Finds Flatter Minima2 Feb 2026
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adam2 Feb 2026
- 2026Towards Compact and Robust DNNs via Compression-aware Sharpness Minimization28 Jan 2026
- 2026X-SAM: Boosting Sharpness-Aware Minimization with Dominant-Eigenvector Gradient Correction15 Jan 2026
- 2025Do Flat Minima Improve Sparse Novel View Synthesis?22 Nov 2025
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimization5 Nov 2025
- 2025Modality-Aware SAM: Sharpness-Aware-Minimization Driven Gradient Modulation for Harmonized Multimodal Learning28 Oct 2025
- 2025R'enyi Sharpness: A Novel Sharpness that Strongly Correlates with Generalization9 Oct 2025
- 2025Flatness-Aware Stochastic Gradient Langevin Dynamics2 Oct 2025
- 2025Sharpness-Aware Minimization Can Hallucinate Minimizers26 Sep 2025
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise22 Sep 2025
- 2025How Far Are We from True Unlearnability?9 Sep 2025
- 2025LSAM: Asynchronous Distributed Training with Landscape-Smoothed Sharpness-Aware Minimization3 Sep 2025
- 2025Bi-LoRA: Efficient Sharpness-Aware Minimization for Fine-Tuning Large-Scale Models27 Aug 2025
- 2025FTCFormer: Fuzzy Token Clustering Transformer for Image Classification14 Jul 2025
- 2025Towards Robust Influence Functions with Flat Validation Minima25 May 2025
- 2025Sharpness-Aware Minimization with Z-Score Gradient Filtering5 May 2025
- 2025Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuning20 Apr 2025
- 2025Understanding Flatness in Generative Models: Its Role and Benefits14 Mar 2025
- 2024Sharpness-Aware Minimization with Adaptive Regularization for Training Deep Neural Networks22 Dec 2024
- 2024Meta Curvature-Aware Minimization for Domain Generalization16 Dec 2024
- 2024Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalization6 Dec 2024
- 2024Understanding SAM's Robustness to Noisy Labels through Gradient Down-weighting26 Nov 2024
- 2024SAMPa: Sharpness-aware Minimization Parallelized14 Oct 2024
- 2024Flat-LoRA: Low-Rank Adaptation over a Flat Loss Landscape22 Sep 2024
- 2024An Uncertainty-Aware Generalization Framework for Cardiovascular Image Segmentation22 Sep 2024
- 2024Bilateral Sharpness-Aware Minimization for Flatter Minima20 Sep 2024
- 2024Convergence of Sharpness-Aware Minimization Algorithms using Increasing Batch Size and Decaying Learning Rate16 Sep 2024
50 newest of 53 All 53 (JSON)
- 2024Flat-LoRA: Low-Rank Adaptation over a Flat Loss Landscapecited by 20
- 2025Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-Tuningcited by 16
- 2024Revisiting Random Weight Perturbation for Efficiently Improving Generalizationcited by 13
- 2024SAMPa: Sharpness-aware Minimization Parallelizedcited by 8
- 2025Towards Robust Influence Functions with Flat Validation Minimacited by 4
- 2025How Far Are We from True Unlearnability?cited by 4
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimizationcited by 4
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2024Learning Scalable Model Soup on a Single GPU: An Efficient Subspace Training Strategycited by 3
- 2024Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalizationcited by 3
- 2025Bi-LoRA: Efficient Sharpness-Aware Minimization for Fine-Tuning Large-Scale Modelscited by 3
- 2024Agnostic Sharpness-Aware Minimizationcited by 2
12 most cited of 45 All 45 (JSON)
- 2026EMASAM: a Computationally Efficient Sharpness-Aware Minimization via EMA-Guided Perturbations15 Aug 2026
- 2026Sharpness-Aware Minimization and Muon: Robustness under the Spectral Norm28 Jul 2026
- 2026Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimization17 Jul 2026
- 2026Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learning7 Jul 2026
- 2026SleepBand: Single-Source Domain Generalization for Sleep Staging via Physiologically Structured Spectral Modeling6 Jul 2026
- 2026Certification of Machine Learning Models via Directional Sharpness23 Jun 2026
- 2026Navigating Potholes with Geometry-Aware Sharpness Minimization15 May 2026
- 2026Fix the Loss, Not the Radius: Rethinking the Adversarial Perturbation of Sharpness-Aware Minimization11 May 2026
- 2026FedVSSAM: Mitigating Flatness Incompatibility in Sharpness-Aware Federated Learning9 May 2026
- 2026Fitting Is Not Enough: Smoothness in Extremely Quantized LLMs9 May 2026
- 2026Sharpness-Aware Poisoning: Enhancing Transferability of Injective Attacks on Recommender Systems24 Apr 2026
- 2026Reframing Long-Tailed Learning via Loss Landscape Geometry22 Mar 2026
12 newest of 45 All 45 (JSON)