SAMPa: Sharpness-aware Minimization Parallelized
Wanyun Xie, Thomas Pethick, Volkan Cevher
摘要
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 https://github.com/LIONS-EPFL/SAMPa.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler 引用了 Sharpness-Aware Minimization: General Analysis and Improved Rates
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler 引用了 Adversarial Weight Perturbation Helps Robust Generalization
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler 引用了 Fantastic Generalization Measures and Where to Find Them
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler 引用了 Towards Understanding Sharpness-Aware Minimization
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded Scheduler 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise 引用了 ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise 引用了 Sharpness-Aware Minimization: General Analysis and Improved Rates
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise 引用了 Towards Understanding Sharpness-Aware Minimization
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks 引用了 Fantastic Generalization Measures and Where to Find Them
- ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-Aware Minimization: General Analysis and Improved Rates 引用了 Adversarial Weight Perturbation Helps Robust Generalization
- Sharpness-Aware Minimization: General Analysis and Improved Rates 引用了 Fantastic Generalization Measures and Where to Find Them
- Sharpness-Aware Minimization: General Analysis and Improved Rates 引用了 Towards Understanding Sharpness-Aware Minimization
- Sharpness-Aware Minimization: General Analysis and Improved Rates 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Flat Minima and Generalization: Insights from Stochastic Convex Optimization 引用了 Adversarial Weight Perturbation Helps Robust Generalization
- Flat Minima and Generalization: Insights from Stochastic Convex Optimization 引用了 Fantastic Generalization Measures and Where to Find Them
- Flat Minima and Generalization: Insights from Stochastic Convex Optimization 引用了 Towards Understanding Sharpness-Aware Minimization
- Flat Minima and Generalization: Insights from Stochastic Convex Optimization 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Unpacking the Implicit Norm Dynamics of Sharpness-Aware Minimization in Tensorized Models 引用了 ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
- Unpacking the Implicit Norm Dynamics of Sharpness-Aware Minimization in Tensorized Models 引用了 Towards Understanding Sharpness-Aware Minimization
- Unpacking the Implicit Norm Dynamics of Sharpness-Aware Minimization in Tensorized Models 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Towards Understanding Sharpness-Aware Minimization 引用了 ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networks
- Towards Understanding Sharpness-Aware Minimization 引用了 Adversarial Weight Perturbation Helps Robust Generalization
- Towards Understanding Sharpness-Aware Minimization 引用了 Fantastic Generalization Measures and Where to Find Them
- Towards Understanding Sharpness-Aware Minimization 引用了 Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-aware Minimization for Efficiently Improving Generalization 引用了 Fantastic Generalization Measures and Where to Find Them
引用它的顶会 Paper5
- Unveiling m-Sharpness Through the Structure of Stochastic Gradient NoiseHaocheng Luo, Mehrtash Harandi, Dinh Phung, Trung LeNeurIPS 2025 · 2 次引用
- Flat Minima and Generalization: Insights from Stochastic Convex OptimizationMatan Schliserman, Shira Vansover-Hager, Tomer KorenICML 2026 · 2 次引用
- Adaptive Sharpness-Aware Minimization with a Polyak-type Step size: A Theory-Grounded SchedulerDimitris Oikonomou, Nicolas LoizouICML 2026
- Sharpness-Aware Minimization: General Analysis and Improved RatesDimitris Oikonomou, Nicolas LoizouICLR 2025
- Unpacking the Implicit Norm Dynamics of Sharpness-Aware Minimization in Tensorized ModelsTianxiao Cao, Kyohei Atarashi, Hisashi KashimaAAAI 2026
它引用的 Paper19
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 次引用
- Adversarial Weight Perturbation Helps Robust GeneralizationDongxian Wu, Shu-Tao Xia, Yisen WangNeurIPS 2020 · 917 次引用
- Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan 等ICLR 2020 · 705 次引用
- ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural NetworksJungmin Kwon, Jeongseop Kim, Hyunseo Park, In Kwon ChoiICML 2021 · 385 次引用
- Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 次引用
相关 Paper
- Layer-Wise Adaptive Gradient Norm Penalizing Method for Efficient and Accurate Deep LearningSunwoo LeeKDD 2024 · 2 次引用
- An Adaptive Policy to Employ Sharpness-Aware MinimizationWeisen Jiang, Hansi Yang, Yu Zhang, James T. KwokICLR 2023 · 2 次引用
- How Sharpness-Aware Minimization Minimizes Sharpness?Kaiyue Wen, Tengyu Ma, Zhiyuan LiICLR 2023 · 3 次引用
- Momentum-SAM: Sharpness Aware Minimization without Computational OverheadMarlon Becker, Frederick Altrock, Benjamin RisseNeurIPS 2025 · 16 次引用
- SAMO: A Lightweight Sharpness-Aware Approach for Multi-Task Optimization with Joint Global-Local PerturbationHao Ban, Gokul Ram Subramani, Kaiyi JiICCV 2025 · 3 次引用
