mlsanityData to 14 Oct 2026

Improved Deep Neural Network Generalization Using m-Sharpness-Aware Minimization

arXiv 2212.04343 ↗First posted 7 Dec 2022cs.LG math.OCcited by 5

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2016Wide Residual Networkscited by 3,070
  9. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
  10. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  11. 2017DeepFM: A Factorization-Machine based Neural Network for CTR Predictioncited by 676
  12. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
11 more
  1. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
  2. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
  3. 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
  4. 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 260
  5. 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
  6. 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
  7. 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
  8. 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
  9. 2022Sharpness-Aware Training for Freecited by 95
  10. 2020Shape Matters: Understanding the Implicit Bias of the Noise Covariancecited by 88
  11. 2021Minimum sharpness: Scale-invariant parameter-robustness of neural networkscited by 4

Built on by

Cited by year

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

5 papers.