mSAM: Micro-Batch-Averaged Sharpness-Aware Minimization
Not on the map. Why?
Abstract (arXiv)
Modern deep learning models are over-parameterized, where different optima can result in widely varying generalization performance. The Sharpness-Aware Minimization (SAM) technique modifies the fundamental loss function that steers gradient descent methods toward flatter minima, which are believed to exhibit enhanced generalization prowess. Our study delves into a specific variant of SAM known as micro-batch SAM (mSAM). This variation involves aggregating updates derived from adversarial perturbations across multiple shards (micro-batches) of a mini-batch during training. We extend a recently developed and well-studied general framework for flatness analysis to theoretically show that SAM achieves flatter minima than SGD, and mSAM achieves even flatter minima than SAM. We provide a thorough empirical evaluation of various image classification and natural language processing tasks to substantiate this theoretical advancement. We also show that contrary to previous work, mSAM can be implemented in a flexible and parallelizable manner without significantly increasing computational costs. Our implementation of mSAM yields superior generalization performance across a wide range of tasks compared to SAM, further supporting our theoretical framework.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 48 of its 67 references that are in the map. First posted on arXiv 19 Feb 2023.
Builds on
48 of 67 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016Wide Residual Networkscited by 3,057
- 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
- 2019When Does Label Smoothing Help?cited by 985
36 more
- 2017DeepFM: A Factorization-Machine based Neural Network for CTR Predictioncited by 673
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 527
- 2017Sharp Minima Can Generalize For Deep Netscited by 462
- 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 413
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
- 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
- 2017Three Factors Influencing Minima in SGDcited by 270
- 2018Characterizing Implicit Bias in Terms of Optimization Geometrycited by 259
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 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
- 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 134
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2022Understanding Gradient Descent on Edge of Stability in Deep Learningcited by 126
- 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
- 2021What Happens after SGD Reaches Zero Loss? --A Mathematical Frameworkcited by 106
- 2022Sharpness-Aware Training for Freecited by 95
- 2020Shape Matters: Understanding the Implicit Bias of the Noise Covariancecited by 88
- 2022Adaptive Gradient Methods at the Edge of Stabilitycited by 88
- 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
- 2021On the Validity of Modeling SGD with Stochastic Differential Equations (SDEs)cited by 73
- 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 64
- 2021Stochastic Training is Not Necessary for Generalizationcited by 63
- 2021On Linear Stability of SGD and Input-Smoothness of Neural Networkscited by 61
- 2022On the Maximum Hessian Eigenvalue and Generalizationcited by 57
- 2022The Dynamics of Sharpness-Aware Minimization: Bouncing Across Ravines and Drifting Towards Wide Minimacited by 51
- 2019Bad Global Minima Exist and SGD Can Reach Themcited by 49
- 2022Implicit Bias of Gradient Descent on Reparametrized Models: On Equivalence to Mirror Descentcited by 38
- 2021Stochastic gradient descent with noise of machine learning type. Part II: Continuous time analysiscited by 25
- 2023SAM operates far from home: eigenvalue regularization as a dynamical phenomenoncited by 24
- 2022Rethinking Sharpness-Aware Minimization as Variational Inferencecited by 8
- 2023Exponential convergence rates for momentum stochastic gradient descent in the overparametrized settingcited by 7
- 2021Minimum sharpness: Scale-invariant parameter-robustness of neural networkscited by 4
Built on by
Citing papers per year: 2023: 3; 2024: 4; 2025: 2; 2026: 1.
10 papers.
- 2023Normalization Layers Are All That Sharpness-Aware Minimization Needscited by 27
- 2024Sharpness-Aware Minimization Efficiently Selects Flatter Minima Late in Trainingcited by 24
- 2023Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optimacited by 20
- 2024SAMPa: Sharpness-aware Minimization Parallelizedcited by 8
- 2024Improving SAM Requires Rethinking its Optimization Formulationcited by 4
- 2023Critical Influence of Overparameterization on Sharpness-aware Minimizationcited by 3
- 2024A Precise Characterization of SGD Stability Using Loss Surface Geometrycited by 2
- 2025Domain-Generalization to Improve Learning in Meta-Learning Algorithmscited by 0
- 2025LSAM: Asynchronous Distributed Training with Landscape-Smoothed Sharpness-Aware Minimizationcited by 0
- 2026On the Implicit Flatness Bias of Sharpness-Aware Minimization: A Linear Stability Analysis with Quantitative Hyperparameter Boundscited by 0
- 2026On the Implicit Flatness Bias of Sharpness-Aware Minimization: A Linear Stability Analysis with Quantitative Hyperparameter Bounds4 Aug 2026
- 2025LSAM: Asynchronous Distributed Training with Landscape-Smoothed Sharpness-Aware Minimization3 Sep 2025
- 2025Domain-Generalization to Improve Learning in Meta-Learning Algorithms13 Aug 2025
- 2024SAMPa: Sharpness-aware Minimization Parallelized14 Oct 2024
- 2024Sharpness-Aware Minimization Efficiently Selects Flatter Minima Late in Training14 Oct 2024
- 2024Improving SAM Requires Rethinking its Optimization Formulation17 Jul 2024
- 2024A Precise Characterization of SGD Stability Using Loss Surface Geometry22 Jan 2024
- 2023Critical Influence of Overparameterization on Sharpness-aware Minimization29 Nov 2023
- 2023Practical Sharpness-Aware Minimization Cannot Converge All the Way to Optima16 Jun 2023
- 2023Normalization Layers Are All That Sharpness-Aware Minimization Needs7 Jun 2023