Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalization
Not on the map. Why?
Abstract (arXiv)
Recently, sharpness-aware minimization (SAM) has emerged as a promising method to improve generalization by minimizing sharpness, which is known to correlate well with generalization ability. Since the original proposal of SAM, many variants of SAM have been proposed to improve its accuracy and efficiency, but comparisons have mainly been restricted to the i.i.d. setting. In this paper we study SAM for out-of-distribution (OOD) generalization. First, we perform a comprehensive comparison of eight SAM variants on zero-shot OOD generalization, finding that the original SAM outperforms the Adam baseline by 4.76% and the strongest SAM variants outperform the Adam baseline by 8.01% on average. We then provide an OOD generalization bound in terms of sharpness for this setting. Next, we extend our study of SAM to the related setting of gradual domain adaptation (GDA), another form of OOD generalization where intermediate domains are constructed between the source and target domains, and iterative self-training is done on intermediate domains, to improve the overall target domain error. In this setting, our experimental results demonstrate that the original SAM outperforms the baseline of Adam on each of the experimental datasets by 0.82% on average and the strongest SAM variants outperform Adam by 1.52% on average. We then provide a generalization bound for SAM in the GDA setting. Asymptotically, this generalization bound is no better than the one for self-training in the literature of GDA. This highlights a further disconnection between the theoretical justification for SAM versus its empirical performance, with recent work finding that low sharpness alone does not account for all of SAM's generalization benefits. For future work, we provide several potential avenues for obtaining a tighter analysis for SAM in the OOD setting.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 34 of its 48 references that are in the map. First posted on arXiv 6 Dec 2024.
Builds on
34 of 48 references.
References · 34
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2019Invariant Risk Minimizationcited by 1,854
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
- 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
- 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
- 2019Fantastic Generalization Measures and Where to Find Themcited by 513
- 2017Sharp Minima Can Generalize For Deep Netscited by 466
- 2014New insights and perspectives on the natural gradient methodcited by 443
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 434
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
22 more
- 2020Understanding Self-Training for Gradual Domain Adaptationcited by 149
- 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
- 2018Fast and Scalable Bayesian Deep Learning by Weight-Perturbation in Adamcited by 131
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2017Fisher-Rao Metric, Geometry, and Complexity of Neural Networkscited by 100
- 2021Towards a Theoretical Framework of Out-of-Distribution Generalizationcited by 94
- 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
- 2022When Do Flat Minima Optimizers Work?cited by 78
- 2015A Century of Portraits: A Visual Historical Record of American High School Yearbookscited by 54
- 2024Friendly Sharpness-Aware Minimizationcited by 53
- 2023Sharpness Minimization Algorithms Do Not Only Minimize Sharpness To Achieve Better Generalizationcited by 39
- 2020Fundamental Limits and Tradeoffs in Invariant Representation Learningcited by 38
- 2023Sharpness-Aware Minimization Leads to Low-Rank Featurescited by 38
- 2022Understanding Gradual Domain Adaptation: Improved Analysis, Optimal Path and Beyondcited by 32
- 2023Why Does Sharpness-Aware Minimization Generalize Better Than SGD?cited by 28
- 2023Normalization Layers Are All That Sharpness-Aware Minimization Needscited by 27
- 2023Flatness-Aware Minimization for Domain Generalizationcited by 27
- 2024Why is SAM Robust to Label Noise?cited by 21
- 2023Gradual Domain Adaptation: Theory and Algorithmscited by 18
- 2024Towards Robust Out-of-Distribution Generalization Bounds via Sharpnesscited by 11
- 2022K-SAM: Sharpness-Aware Minimization at the Speed of SGDcited by 10
- 2024Sharpness-Aware Minimization Enhances Feature Quality via Balanced Learningcited by 9
Built on by
Citing papers per year: 2026: 3.
3 papers.