SAM as an Optimal Relaxation of Bayes
Thomas Möllenhoff, Mohammad Emtiyaz Khan
Abstract
Sharpness-aware minimization (SAM) and related adversarial deep-learning methods can drastically improve generalization, but their underlying mechanisms are not yet fully understood. Here, we establish SAM as a relaxation of the Bayes objective where the expected negative-loss is replaced by the optimal convex lower bound, obtained by using the so-called Fenchel biconjugate. The connection enables a new Adam-like extension of SAM to automatically obtain reasonable uncertainty estimates, while sometimes also improving its accuracy. By connecting adversarial and Bayesian methods, our work opens a new path to robustness.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations cites Adversarial Weight Perturbation Helps Robust Generalization
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability cites When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations
- Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability cites Adversarial Weight Perturbation Helps Robust Generalization
- Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Normalization Layers Are All That Sharpness-Aware Minimization Needs cites When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations
- Normalization Layers Are All That Sharpness-Aware Minimization Needs cites Fantastic Generalization Measures and Where to Find Them
- Normalization Layers Are All That Sharpness-Aware Minimization Needs cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Variational Learning is Effective for Large Deep Networks cites What Are Bayesian Neural Network Posteriors Really Like?
- Variational Learning is Effective for Large Deep Networks cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Decentralized SGD and Average-direction SAM are Asymptotically Equivalent cites When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations
- Decentralized SGD and Average-direction SAM are Asymptotically Equivalent cites Adversarial Weight Perturbation Helps Robust Generalization
- Decentralized SGD and Average-direction SAM are Asymptotically Equivalent cites Fantastic Generalization Measures and Where to Find Them
- Decentralized SGD and Average-direction SAM are Asymptotically Equivalent cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites Fantastic Generalization Measures and Where to Find Them
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima cites Sharpness-aware Minimization for Efficiently Improving Generalization
- Sharpness-aware Minimization for Efficiently Improving Generalization cites Fantastic Generalization Measures and Where to Find Them
Cited by top-tier papers23
- Variational Learning is Effective for Large Deep NetworksYuesong Shen, Nico Daheim, Bai Cong, Peter Nickl et al.ICML 2024 · 53 citations
- Normalization Layers Are All That Sharpness-Aware Minimization NeedsMaximilian Müller, Tiffany Vlaar, David Rolnick, Matthias HeinNeurIPS 2023 · 37 citations
- Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial TransferabilityYechao Zhang, Shengshan Hu, Leo Yu Zhang, Junyu Shi et al.S&P 2024 · 36 citations
- Practical Sharpness-Aware Minimization Cannot Converge All the Way to OptimaDongkuk Si, Chulhee YunNeurIPS 2023 · 34 citations
- Decentralized SGD and Average-direction SAM are Asymptotically EquivalentTongtian Zhu, Fengxiang He, Kaixuan Chen, Mingli Song et al.ICML 2023 · 21 citations
Builds on13
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Adversarial Weight Perturbation Helps Robust GeneralizationDongxian Wu, Shu-Tao Xia, Yisen WangNeurIPS 2020 · 917 citations
- Fantastic Generalization Measures and Where to Find ThemYiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan et al.ICLR 2020 · 705 citations
- What Are Bayesian Neural Network Posteriors Really Like?Pavel Izmailov, Sharad Vikram, Matthew D. Hoffman, Andrew Gordon WilsonICML 2021 · 458 citations
- When Vision Transformers Outperform ResNets without Pre-training or Strong Data AugmentationsXiangning Chen, Cho-Jui Hsieh, Boqing GongICLR 2022 · 388 citations
Related papers
- Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization TermYun Yue, Jiadi Jiang, Zhiling Ye, Ning Gao et al.KDD 2023 · 7 citations
- Towards Understanding Sharpness-Aware MinimizationMaksym Andriushchenko, Nicolas FlammarionICML 2022 · 190 citations
- The Crucial Role of Normalization in Sharpness-Aware MinimizationYan Dai, Kwangjun Ahn, Suvrit SraNeurIPS 2023 · 36 citations
- Sharpness-Aware Minimization Efficiently Selects Flatter Minima Late In TrainingZhanpeng Zhou, Mingze Wang, Yuchen Mao, Bingrui Li et al.ICLR 2025
- Enhancing Sharpness-Aware Optimization Through Variance SuppressionBingcong Li, Georgios B. GiannakisNeurIPS 2023 · 47 citations
