A Modern Look at the Relationship between Sharpness and Generalization
Not on the map. Why?
Abstract (arXiv)
Sharpness of minima is a promising quantity that can correlate with generalization in deep networks and, when optimized during training, can improve generalization. However, standard sharpness is not invariant under reparametrizations of neural networks, and, to fix this, reparametrization-invariant sharpness definitions have been proposed, most prominently adaptive sharpness (Kwon et al., 2021). But does it really capture generalization in modern practical settings? We comprehensively explore this question in a detailed study of various definitions of adaptive sharpness in settings ranging from training from scratch on ImageNet and CIFAR-10 to fine-tuning CLIP on ImageNet and BERT on MNLI. We focus mostly on transformers for which little is known in terms of sharpness despite their widespread usage. Overall, we observe that sharpness does not correlate well with generalization but rather with some training parameters like the learning rate that can be positively or negatively correlated with generalization depending on the setup. Interestingly, in multiple cases, we observe a consistent negative correlation of sharpness with out-of-distribution error implying that sharper minima can generalize better. Finally, we illustrate on a simple model that the right sharpness measure is highly data-dependent, and that we do not understand well this aspect for realistic data distributions. The code of our experiments is available at https://github.com/tml-epfl/sharpness-vs-generalization.
Key facts. Cited by 91 papers in the map (data through 7 Oct 2026). Builds on 57 of its 70 references that are in the map. First posted on arXiv 14 Feb 2023.
Builds on
57 of 70 references.
References · 57
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
38 more
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
- 2021Robust fine-tuning of zero-shot modelscited by 785
- 2017Exploring Generalization in Deep Learningcited by 595
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2019Fantastic Generalization Measures and Where to Find Themcited by 507
- 2017Sharp Minima Can Generalize For Deep Netscited by 462
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
- 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 413
- 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 357
- 2020Kernel and Rich Regimes in Overparametrized Modelscited by 302
- 2017Three Factors Influencing Minima in SGDcited by 270
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021On the Origin of Implicit Regularization in Stochastic Gradient Descentcited by 183
- 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 171
- 2019Towards Explaining the Regularization Effect of Initial Large Learning Rate in Training Neural Networkscited by 162
- 2022Self-Stabilization: The Implicit Bias of Gradient Descent at the Edge of Stabilitycited by 151
- 2022Towards Understanding Sharpness-Aware Minimizationcited by 145
- 2022Understanding Gradient Descent on Edge of Stability in Deep Learningcited by 126
- 2020Towards Theoretically Understanding Why SGD Generalizes Better Than ADAM in Deep Learningcited by 125
- 2019Implicit regularization for deep neural networks driven by an Ornstein-Uhlenbeck like processcited by 123
- 2021Label Noise SGD Provably Prefers Flat Global Minimizerscited by 121
- 2021Implicit Bias of SGD for Diagonal Linear Networks: a Provable Benefit of Stochasticitycited by 107
- 2021What Happens after SGD Reaches Zero Loss? --A Mathematical Frameworkcited by 106
- 2017Fisher-Rao Metric, Geometry, and Complexity of Neural Networkscited by 99
- 2022Sharpness-Aware Training for Freecited by 95
- 2019Asymmetric Valleys: Beyond Sharp and Flat Local Minimacited by 90
- 2019BERTs of a feather do not generalize together: Large variability in generalization across models with similar test set performancecited by 89
- 2020Relative Flatness and Generalizationcited by 88
- 2022Understanding the Generalization Benefit of Normalization Layers: Sharpness Reductioncited by 86
- 2020In Search of Robust Measures of Generalizationcited by 79
- 2020Regularizing Neural Networks via Adversarial Model Perturbationcited by 78
- 2018A Walk with SGDcited by 74
- 2022SGD with Large Step Sizes Learns Sparse Featurescited by 66
- 2020Reconciling Modern Deep Learning with Traditional Optimization Analyses: The Intrinsic Learning Ratecited by 59
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2023: 18; 2024: 28; 2025: 25; 2026: 20.
91 papers.
Sort:
By area:
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2023Sharpness Minimization Algorithms Do Not Only Minimize Sharpness To Achieve Better Generalizationcited by 39
- 2023Normalization Layers Are All That Sharpness-Aware Minimization Needscited by 27
- 2023On the Implicit Bias of Adamcited by 25
- 2023Improving Convergence and Generalization Using Parameter Symmetriescited by 23
- 2023Layer-wise Linear Mode Connectivitycited by 22
- 2024Why is SAM Robust to Label Noise?cited by 21
- 2024A Survey on Evaluation of Out-of-Distribution Generalizationcited by 20
- 2024Deep linear networks for regression are implicitly regularized towards flat minimacited by 17
- 2024A Universal Class of Sharpness-Aware Minimization Algorithmscited by 14
- 2023How to escape sharp minima with random perturbationscited by 13
- 2024Momentum-SAM: Sharpness Aware Minimization without Computational Overheadcited by 13
38 more
- 2024A PAC-Bayesian Link Between Generalisation and Flat Minimacited by 13
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 13
- 2024QT-DoG: Quantization-aware Training for Domain Generalizationcited by 13
- 2025Unveiling the Basin-Like Loss Landscape in Large Language Modelscited by 13
- 2023On the different regimes of Stochastic Gradient Descentcited by 12
- 2025The Rich and the Simple: On the Implicit Bias of Adam and SGDcited by 12
- 2026Pre-training LLM without Learning Rate Decay Enhances Supervised Fine-Tuningcited by 12
- 2024Sharpness-Aware Minimization Enhances Feature Quality via Balanced Learningcited by 9
- 2024Stabilizing Sharpness-aware Minimization Through A Simple Renormalization Strategycited by 8
- 2025Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokkingcited by 8
- 2026Sharpness-Aware Pretraining Mitigates Catastrophic Forgettingcited by 7
- 2023The Inductive Bias of Flatness Regularization for Deep Matrix Factorizationcited by 6
- 2023TRAM: Bridging Trust Regions and Sharpness Aware Minimizationcited by 6
- 2024Where Do Large Learning Rates Lead Us?cited by 6
- 2024Tilted Sharpness-Aware Minimizationcited by 6
- 2025How Memory in Optimization Algorithms Implicitly Modifies the Losscited by 6
- 2023Unveiling the Hessian's Connection to the Decision Boundarycited by 5
- 2023Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatnesscited by 5
- 2024Theoretical characterisation of the Gauss-Newton conditioning in Neural Networkscited by 5
- 2025Hide & Seek: Transformer Symmetries Obscure Sharpness & Riemannian Geometry Finds Itcited by 5
- 2025SAFE: Finding Sparse and Flat Minima to Improve Pruningcited by 5
- 2025Understanding Sharpness Dynamics in NN Training with a Minimalist Example: The Effects of Dataset Difficulty, Depth, Stochasticity, and Morecited by 5
- 2023Bringing the Discussion of Minima Sharpness to the Audio Domain: a Filter-Normalised Evaluation for Acoustic Scene Classificationcited by 4
- 2023A PAC-Bayesian Perspective on the Interpolating Information Criterioncited by 4
- 2024A Rescaling-Invariant Lipschitz Bound Based on Path-Metrics for Modern ReLU Network Parameterizationscited by 4
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2026Cut Less, Fold More: Model Compression through the Lens of Projection Geometrycited by 4
- 2026(How) Learning Rates Regulate Catastrophic Overtrainingcited by 4
- 2026Why Muon Outperforms Adam: A Curvature Perspectivecited by 4
- 2023Stochastic Gradient Descent outperforms Gradient Descent in recovering a high-dimensional signal in a glassy energy landscapecited by 3
- 2024MD tree: a model-diagnostic tree grown on loss landscapecited by 3
- 2024Sharpness-diversity tradeoff: improving flat ensembles with SharpBalancecited by 3
- 2025A Model Zoo on Phase Transitions in Neural Networkscited by 3
- 2025When Flatness Does (Not) Guarantee Adversarial Robustnesscited by 3
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimizationcited by 3
- 2025Sharp Minima Can Generalize: A Loss Landscape Perspective On Datacited by 3
- 2023Going Further: Flatness at the Rescue of Early Stopping for Adversarial Example Transferabilitycited by 2
- 2023Using Stochastic Gradient Descent to Smooth Nonconvex Functions: Analysis of Implicit Graduated Optimizationcited by 2
50 most cited of 91 All 91 (JSON)
- 2026A Generalisation Signal Need Not Be a Model-Selection Signal30 Sep 2026
- 2026Post-Training Science for Supervised Fine-Tuning1 Sep 2026
- 2026Across the Loss Landscape with Progressive Growth25 Aug 2026
- 2026Semi-Supervised Learning for Molecular Graphs via Ensemble Consensus30 Jul 2026
- 2026Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learning7 Jul 2026
- 2026Why Muon Outperforms Adam: A Curvature Perspective3 Jun 2026
- 2026Inconsistency-Aware Minimization: Improving Generalization with Unlabeled Data29 May 2026
- 2026Quantifying and Optimizing Simplicity via Polynomial Representations28 May 2026
- 2026Unveiling Multi-regime Patterns in SciML: Distinct Failure Modes and Regime-specific Optimization27 May 2026
- 2026Beyond Perplexity: A Geometric and Spectral Study of Low-Rank Pre-Training13 May 2026
- 2026Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting4 May 2026
- 2026(How) Learning Rates Regulate Catastrophic Overtraining15 Apr 2026
38 more
- 2026Pre-training LLM without Learning Rate Decay Enhances Supervised Fine-Tuning17 Mar 2026
- 2026Revisiting Sharpness-Aware Minimization: A More Faithful and Effective Implementation9 Mar 2026
- 2026An accurate flatness measure to estimate the generalization performance of CNN models9 Mar 2026
- 2026GRAIL: Post-hoc Compensation by Linear Reconstruction for Compressed Networks27 Feb 2026
- 2026Takeuchi's Information Criteria as Generalization Measures for DNNs Close to NTK Regime26 Feb 2026
- 2026Cut Less, Fold More: Model Compression through the Lens of Projection Geometry20 Feb 2026
- 2026Landscaper: Understanding Loss Landscapes Through Multi-Dimensional Topological Analysis6 Feb 2026
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adam2 Feb 2026
- 2025Model Merging via Multi-Teacher Knowledge Distillation24 Dec 2025
- 2025A Bootstrap Perspective on Stochastic Gradient Descent8 Dec 2025
- 2025Do Flat Minima Improve Sparse Novel View Synthesis?22 Nov 2025
- 2025Sharp Minima Can Generalize: A Loss Landscape Perspective On Data6 Nov 2025
- 2025Flat Minima and Generalization: Insights from Stochastic Convex Optimization5 Nov 2025
- 2025S2AP: Score-space Sharpness Minimization for Adversarial Pruning21 Oct 2025
- 2025When Flatness Does (Not) Guarantee Adversarial Robustness16 Oct 2025
- 2025Convergence of optimizers implies eigenvalues filtering at equilibrium10 Oct 2025
- 2025R'enyi Sharpness: A Novel Sharpness that Strongly Correlates with Generalization9 Oct 2025
- 2025How does the optimizer implicitly bias the model merging loss landscape?6 Oct 2025
- 2025Flatness-Aware Stochastic Gradient Langevin Dynamics2 Oct 2025
- 2025Flatness is Necessary, Neural Collapse is Not: Rethinking Generalization via Grokking22 Sep 2025
- 2025Unpacking the Implicit Norm Dynamics of Sharpness-Aware Minimization in Tensorized Models14 Aug 2025
- 2025Communication-Efficient Distributed Training for Collaborative Flat Optima Recovery in Deep Learning27 Jul 2025
- 2025Flatness After All?21 Jun 2025
- 2025Understanding Sharpness Dynamics in NN Training with a Minimalist Example: The Effects of Dataset Difficulty, Depth, Stochasticity, and More7 Jun 2025
- 2025SAFE: Finding Sparse and Flat Minima to Improve Pruning7 Jun 2025
- 2025The Rich and the Simple: On the Implicit Bias of Adam and SGD29 May 2025
- 2025Towards Understanding The Calibration Benefits of Sharpness-Aware Minimization29 May 2025
- 2025Unveiling the Basin-Like Loss Landscape in Large Language Models23 May 2025
- 2025Understanding Nonlinear Implicit Bias via Region Counts in Input Space16 May 2025
- 2025Hide & Seek: Transformer Symmetries Obscure Sharpness & Riemannian Geometry Finds It8 May 2025
- 2025A Model Zoo on Phase Transitions in Neural Networks25 Apr 2025
- 2025Generalization of the Gibbs algorithm with high probability at low temperatures16 Feb 2025
- 2025How Memory in Optimization Algorithms Implicitly Modifies the Loss4 Feb 2025
- 2024Can Stability be Detrimental? Better Generalization through Gradient Descent Instabilities23 Dec 2024
- 2024Theoretical characterisation of the Gauss-Newton conditioning in Neural Networks4 Nov 2024
- 2024Tilted Sharpness-Aware Minimization30 Oct 2024
- 2024Where Do Large Learning Rates Lead Us?29 Oct 2024
- 2024In Search of the Successful Interpolation: On the Role of Sharpness in CLIP Generalization21 Oct 2024
50 newest of 91 All 91 (JSON)
- 2026Post-Training Science for Supervised Fine-Tuningcited by 1
- 2026Post-Training Science for Supervised Fine-Tuning1 Sep 2026
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2023Sharpness Minimization Algorithms Do Not Only Minimize Sharpness To Achieve Better Generalizationcited by 39
- 2023Normalization Layers Are All That Sharpness-Aware Minimization Needscited by 27
- 2023On the Implicit Bias of Adamcited by 25
- 2023Improving Convergence and Generalization Using Parameter Symmetriescited by 23
- 2023Layer-wise Linear Mode Connectivitycited by 22
- 2024Why is SAM Robust to Label Noise?cited by 21
- 2024A Survey on Evaluation of Out-of-Distribution Generalizationcited by 20
- 2024Deep linear networks for regression are implicitly regularized towards flat minimacited by 17
- 2024A Universal Class of Sharpness-Aware Minimization Algorithmscited by 14
- 2023How to escape sharp minima with random perturbationscited by 13
- 2024Momentum-SAM: Sharpness Aware Minimization without Computational Overheadcited by 13
12 most cited of 90 All 90 (JSON)
- 2026A Generalisation Signal Need Not Be a Model-Selection Signal30 Sep 2026
- 2026Across the Loss Landscape with Progressive Growth25 Aug 2026
- 2026Semi-Supervised Learning for Molecular Graphs via Ensemble Consensus30 Jul 2026
- 2026Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learning7 Jul 2026
- 2026Why Muon Outperforms Adam: A Curvature Perspective3 Jun 2026
- 2026Inconsistency-Aware Minimization: Improving Generalization with Unlabeled Data29 May 2026
- 2026Quantifying and Optimizing Simplicity via Polynomial Representations28 May 2026
- 2026Unveiling Multi-regime Patterns in SciML: Distinct Failure Modes and Regime-specific Optimization27 May 2026
- 2026Beyond Perplexity: A Geometric and Spectral Study of Low-Rank Pre-Training13 May 2026
- 2026Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting4 May 2026
- 2026(How) Learning Rates Regulate Catastrophic Overtraining15 Apr 2026
- 2026Pre-training LLM without Learning Rate Decay Enhances Supervised Fine-Tuning17 Mar 2026
12 newest of 90 All 90 (JSON)