mlsanityData to 7 Oct 2026

mSAM: Micro-Batch-Averaged Sharpness-Aware Minimization

arXiv 2302.09693 ↗First posted 19 Feb 2023stat.ML cs.LGcited by 10

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  7. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  9. 2016Wide Residual Networkscited by 3,057
  10. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  11. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
  12. 2019When Does Label Smoothing Help?cited by 985
36 more
  1. 2017DeepFM: A Factorization-Machine based Neural Network for CTR Predictioncited by 673
  2. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
  3. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 527
  4. 2017Sharp Minima Can Generalize For Deep Netscited by 462
  5. 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 413
  6. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
  7. 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
  8. 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
  9. 2017Three Factors Influencing Minima in SGDcited by 270
  10. 2018Characterizing Implicit Bias in Terms of Optimization Geometrycited by 259
  11. 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
  12. 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 171
  13. 2020The Break-Even Point on Optimization Trajectories of Deep Neural Networkscited by 149
  14. 2022Towards Understanding Sharpness-Aware Minimizationcited by 145
  15. 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 134
  16. 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
  17. 2022Understanding Gradient Descent on Edge of Stability in Deep Learningcited by 126
  18. 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
  19. 2021What Happens after SGD Reaches Zero Loss? --A Mathematical Frameworkcited by 106
  20. 2022Sharpness-Aware Training for Freecited by 95
  21. 2020Shape Matters: Understanding the Implicit Bias of the Noise Covariancecited by 88
  22. 2022Adaptive Gradient Methods at the Edge of Stabilitycited by 88
  23. 2022Fisher SAM: Information Geometry and Sharpness Aware Minimisationcited by 84
  24. 2021On the Validity of Modeling SGD with Stochastic Differential Equations (SDEs)cited by 73
  25. 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 64
  26. 2021Stochastic Training is Not Necessary for Generalizationcited by 63
  27. 2021On Linear Stability of SGD and Input-Smoothness of Neural Networkscited by 61
  28. 2022On the Maximum Hessian Eigenvalue and Generalizationcited by 57
  29. 2022The Dynamics of Sharpness-Aware Minimization: Bouncing Across Ravines and Drifting Towards Wide Minimacited by 51
  30. 2019Bad Global Minima Exist and SGD Can Reach Themcited by 49
  31. 2022Implicit Bias of Gradient Descent on Reparametrized Models: On Equivalence to Mirror Descentcited by 38
  32. 2021Stochastic gradient descent with noise of machine learning type. Part II: Continuous time analysiscited by 25
  33. 2023SAM operates far from home: eigenvalue regularization as a dynamical phenomenoncited by 24
  34. 2022Rethinking Sharpness-Aware Minimization as Variational Inferencecited by 8
  35. 2023Exponential convergence rates for momentum stochastic gradient descent in the overparametrized settingcited by 7
  36. 2021Minimum sharpness: Scale-invariant parameter-robustness of neural networkscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 4; 2025: 2; 2026: 1.

10 papers.