SAMPa: Sharpness-aware Minimization Parallelized
Not on the map. Why?
Abstract (arXiv)
Sharpness-aware minimization (SAM) has been shown to improve the generalization of neural networks. However, each SAM update requires sequentially computing two gradients, effectively doubling the per-iteration cost compared to base optimizers like SGD. We propose a simple modification of SAM, termed SAMPa, which allows us to fully parallelize the two gradient computations. SAMPa achieves a twofold speedup of SAM under the assumption that communication costs between devices are negligible. Empirical results show that SAMPa ranks among the most efficient variants of SAM in terms of computational time. Additionally, our method consistently outperforms SAM across both vision and language tasks. Notably, SAMPa theoretically maintains convergence guarantees even for fixed perturbation sizes, which is established through a novel Lyapunov function. We in fact arrive at SAMPa by treating this convergence guarantee as a hard requirement -- an approach we believe is promising for developing SAM-based methods in general. Our code is available at urlhttps://github.com/LIONS-EPFL/SAMPa.
Key facts. Cited by 8 papers in the map (data through 13 Oct 2026). Builds on 31 of its 40 references that are in the map. First posted on arXiv 14 Oct 2024.
Builds on
31 of 40 references.
References · 31
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,321
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,476
- 2016Densely Connected Convolutional Networkscited by 6,707
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2016Wide Residual Networkscited by 3,063
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,411
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,344
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
- 2017Training GANs with Optimismcited by 217
- 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
19 more
- 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2022Penalizing Gradient Norm for Efficiently Improving Generalization in Deep Learningcited by 122
- 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
- 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
- 2024Friendly Sharpness-Aware Minimizationcited by 53
- 2023An Adaptive Policy to Employ Sharpness-Aware Minimizationcited by 43
- 2022Improving Sharpness-Aware Minimization with Fisher Mask for Better Generalization on Language Modelscited by 42
- 2023Enhancing Sharpness-Aware Optimization Through Variance Suppressioncited by 37
- 2023Normalization Layers Are All That Sharpness-Aware Minimization Needscited by 27
- 2023Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optimacited by 20
- 2022Randomized Sharpness-Aware Training for Boosting Computational Efficiency in Deep Learningcited by 14
- 2024Fundamental Convergence Analysis of Sharpness-Aware Minimizationcited by 14
- 2023mSAM: Micro-Batch-Averaged Sharpness-Aware Minimizationcited by 10
- 2023Exploring the Effect of Multi-step Ascent in Sharpness-Aware Minimizationcited by 9
- 2024Improving SAM Requires Rethinking its Optimization Formulationcited by 4
Built on by
Citing papers per year: 2025: 5; 2026: 3.
8 papers.
- 2025Sharpness-Aware Minimization: General Analysis and Improved Ratescited by 10
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimizationcited by 3
- 2025LightSAM: Parameter-Agnostic Sharpness-Aware Minimizationcited by 2
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noisecited by 2
- 2026Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuningcited by 1
- 2025Sharpness-Aware Minimization Can Hallucinate Minimizerscited by 0
- 2026Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimizationcited by 0
- 2026Gradient-Energy Guided Block-Wise Perturbations for Sharpness-Aware Minimization17 Jul 2026
- 2026Sparse Layer Sharpness-Aware Minimization for Efficient Fine-Tuning10 Feb 2026
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adam2 Feb 2026
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimization5 Nov 2025
- 2025Sharpness-Aware Minimization Can Hallucinate Minimizers26 Sep 2025
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise22 Sep 2025
- 2025LightSAM: Parameter-Agnostic Sharpness-Aware Minimization30 May 2025
- 2025Sharpness-Aware Minimization: General Analysis and Improved Rates4 Mar 2025