Revisiting Sharpness-Aware Minimization: A More Faithful and Effective Implementation
Not on the map. Why?
Abstract (arXiv)
Sharpness-Aware Minimization (SAM) enhances generalization by minimizing the maximum training loss within a predefined neighborhood around the parameters. However, its practical implementation approximates this as gradient ascent(s) followed by applying the gradient at the ascent point to update the current parameters. This practice can be justified as approximately optimizing the objective by neglecting the (full) derivative of the ascent point with respect to the current parameters. Nevertheless, a direct and intuitive understanding of why using the gradient at the ascent point to update the current parameters works superiorly is still lacking. Our work bridges this gap by proposing a novel and intuitive interpretation. We show that the gradient at the single-step ascent point, ulinewhen applied to the current parameters, provides a better approximation of the direction from the current parameters toward the maximum within the local neighborhood than the local gradient. This improved approximation thereby enables a more direct escape from the maximum within the local neighborhood. Nevertheless, our analysis further reveals two issues. First, the approximation by the gradient at the single-step ascent point is often inaccurate. Second, the approximation quality may degrade as the number of ascent steps increases. To address these limitations, we propose in this paper eXplicit Sharpness-Aware Minimization (XSAM). It tackles the first by explicitly estimating the direction of the maximum during training, while addressing the second by crafting a search space that effectively leverages the gradient information at the multi-step ascent point. XSAM features a unified formulation that applies to both single-step and multi-step settings and only incurs negligible computational overhead. Extensive experiments demonstrate the consistent superiority of XSAM against existing counterparts.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 51 of its 59 references that are in the map. First posted on arXiv 9 Mar 2026.
Builds on
51 of 59 references.
References · 51
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,623
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2017Random Erasing Data Augmentationcited by 1,235
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
38 more
- 2017Exploring Generalization in Deep Learningcited by 595
- 2019Fantastic Generalization Measures and Where to Find Themcited by 507
- 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 357
- 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 289
- 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 171
- 2020The Break-Even Point on Optimization Trajectories of Deep Neural Networkscited by 149
- 2022Towards Understanding Sharpness-Aware Minimizationcited by 145
- 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2019Implicit Regularization of Discrete Gradient Dynamics in Linear Neural Networkscited by 122
- 2022Penalizing Gradient Norm for Efficiently Improving Generalization in Deep Learningcited by 122
- 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
- 2023A Modern Look at the Relationship between Sharpness and Generalizationcited by 91
- 2022A Closer Look at Smoothness in Domain Adversarial Trainingcited by 85
- 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
- 2025Towards LLM Unlearning Resilient to Relearning Attacks: A Sharpness-Aware Minimization Perspective and Beyondcited by 76
- 2022Make Sharpness-Aware Minimization Stronger: A Sparsified Perturbation Approachcited by 70
- 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 64
- 2021On Linear Stability of SGD and Input-Smoothness of Neural Networkscited by 61
- 2023Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalizationcited by 57
- 2024Friendly Sharpness-Aware Minimizationcited by 52
- 2022The Dynamics of Sharpness-Aware Minimization: Bouncing Across Ravines and Drifting Towards Wide Minimacited by 51
- 2023An Adaptive Policy to Employ Sharpness-Aware Minimizationcited by 43
- 2023Sharpness-Aware Minimization Leads to Low-Rank Featurescited by 38
- 2023Enhancing Sharpness-Aware Optimization Through Variance Suppressioncited by 37
- 2023ImbSAM: A Closer Look at Sharpness-Aware Minimization in Class-Imbalanced Recognitioncited by 31
- 2022Escaping Saddle Points for Effective Generalization on Class-Imbalanced Datacited by 28
- 2024Sharpness-Aware Minimization Efficiently Selects Flatter Minima Late in Trainingcited by 24
- 2022Understanding Gradient Regularization in Deep Learning: Efficient Finite-Difference Computation and Implicit Biascited by 16
- 2023Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization Termcited by 16
- 2022Randomized Sharpness-Aware Training for Boosting Computational Efficiency in Deep Learningcited by 14
- 2024A Universal Class of Sharpness-Aware Minimization Algorithmscited by 14
- 2025Focal-SAM: Focal Sharpness-Aware Minimization for Long-Tailed Classificationcited by 14
- 2024CC-SAM: SAM with Cross-feature Attention and Context for Ultrasound Image Segmentationcited by 11
- 2023CR-SAM: Curvature Regularized Sharpness-Aware Minimizationcited by 10
- 2023Exploring the Effect of Multi-step Ascent in Sharpness-Aware Minimizationcited by 9
- 2024Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategycited by 8
50 most cited of 51 All 51 (JSON)
Built on by
Not cited yet.