Improved Deep Neural Network Generalization Using m-Sharpness-Aware Minimization
Not on the map. Why?
Abstract (arXiv)
Modern deep learning models are over-parameterized, where the optimization setup strongly affects the generalization performance. A key element of reliable optimization for these systems is the modification of the loss function. Sharpness-Aware Minimization (SAM) modifies the underlying loss function to guide descent methods towards flatter minima, which arguably have better generalization abilities. In this paper, we focus on a variant of SAM known as mSAM, which, during training, averages the updates generated by adversarial perturbations across several disjoint shards of a mini-batch. Recent work suggests that mSAM can outperform SAM in terms of test accuracy. However, a comprehensive empirical study of mSAM is missing from the literature -- previous results have mostly been limited to specific architectures and datasets. To that end, this paper presents a thorough empirical evaluation of mSAM on various tasks and datasets. We provide a flexible implementation of mSAM and compare the generalization performance of mSAM to the performance of SAM and vanilla training on different image classification and natural language processing tasks. We also conduct careful experiments to understand the computational cost of training with mSAM, its sensitivity to hyperparameters and its correlation with the flatness of the loss landscape. Our analysis reveals that mSAM yields superior generalization performance and flatter minima, compared to SAM, across a wide range of tasks without significantly increasing computational costs.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 23 of its 32 references that are in the map. First posted on arXiv 7 Dec 2022.
Builds on
23 of 32 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016Wide Residual Networkscited by 3,070
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2017DeepFM: A Factorization-Machine based Neural Network for CTR Predictioncited by 676
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
11 more
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
- 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 260
- 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
- 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
- 2022Sharpness-Aware Training for Freecited by 95
- 2020Shape Matters: Understanding the Implicit Bias of the Noise Covariancecited by 88
- 2021Minimum sharpness: Scale-invariant parameter-robustness of neural networkscited by 4
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 1.
5 papers.
- 2024Friendly Sharpness-Aware Minimizationcited by 53
- 2023Why Does Sharpness-Aware Minimization Generalize Better Than SGD?cited by 28
- 2024A Universal Class of Sharpness-Aware Minimization Algorithmscited by 14
- 2023On Statistical Properties of Sharpness-Aware Minimization: Provable Guaranteescited by 5
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noisecited by 2
- 2025Unveiling m-Sharpness Through the Structure of Stochastic Gradient Noise22 Sep 2025
- 2024A Universal Class of Sharpness-Aware Minimization Algorithms6 Jun 2024
- 2024Friendly Sharpness-Aware Minimization19 Mar 2024
- 2023Why Does Sharpness-Aware Minimization Generalize Better Than SGD?11 Oct 2023
- 2023On Statistical Properties of Sharpness-Aware Minimization: Provable Guarantees23 Feb 2023