When Flatness Does (Not) Guarantee Adversarial Robustness
Not on the map. Why?
Abstract (arXiv)
Despite their empirical success, neural networks remain vulnerable to small, adversarial perturbations. A longstanding hypothesis suggests that flat minima, regions of low curvature in the loss landscape, offer increased robustness. While intuitive, this connection has remained largely informal and incomplete. By rigorously formalizing the relationship, we show this intuition is only partially correct: flatness implies local but not global adversarial robustness. To arrive at this result, we first derive a closed-form expression for relative flatness in the penultimate layer, and then show we can use this to constrain the variation of the loss in input space. This allows us to formally analyze the adversarial robustness of the entire network. We then show that to maintain robustness beyond a local neighborhood, the loss needs to curve sharply away from the data manifold. We validate our theoretical predictions empirically across architectures and datasets, uncovering the geometric structure that governs adversarial vulnerability, and linking flatness to model confidence: adversarial examples often lie in large, flat regions where the model is confidently wrong. Our results challenge simplified views of flatness and provide a nuanced understanding of its role in robustness.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 65 of its 82 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
65 of 82 references.
References · 65
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2016Wide Residual Networkscited by 3,057
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2016Understanding deep learning requires rethinking generalizationcited by 1,657
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
38 more
- 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
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
- 2016Adversarial Machine Learning at Scalecited by 934
- 2018Robustness May Be at Odds with Accuracycited by 873
- 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
- 2015Optimizing Neural Networks with Kronecker-factored Approximate Curvaturecited by 776
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 682
- 2017Exploring Generalization in Deep Learningcited by 595
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 511
- 2020Overfitting in adversarially robust deep learningcited by 504
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2017Sharp Minima Can Generalize For Deep Netscited by 462
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
- 2019Unlabeled Data Improves Adversarial Robustnesscited by 415
- 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 357
- 2019Provably Robust Deep Learning via Adversarially Trained Smoothed Classifierscited by 328
- 2018Adversarially Robust Generalization Requires More Datacited by 318
- 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
- 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 243
- 2021Improving Robustness using Generated Datacited by 233
- 2018Lipschitz-Margin Training: Scalable Certification of Perturbation Invariance for Deep Neural Networkscited by 193
- 2017Formal Guarantees on the Robustness of a Classifier against Adversarial Manipulationcited by 182
- 2018Disentangling Adversarial Robustness and Generalizationcited by 171
- 2019Are Labels Required for Improving Adversarial Robustness?cited by 162
- 2020Understanding and Mitigating the Tradeoff Between Robustness and Accuracycited by 148
- 2020Bridging Mode Connectivity in Loss Landscapes and Adversarial Robustnesscited by 130
- 2017Fisher-Rao Metric, Geometry, and Complexity of Neural Networkscited by 99
- 2023A Modern Look at the Relationship between Sharpness and Generalizationcited by 91
- 2018Curriculum Adversarial Trainingcited by 89
- 2020Relative Flatness and Generalizationcited by 88
- 2018Universal Adversarial Trainingcited by 85
- 2019Normalized Flat Minima: Exploring Scale Invariant Definition of Flat Minima for Neural Networks using PAC-Bayesian Analysiscited by 58
- 2021Relating Adversarially Robust Generalization to Flat Minimacited by 57
- 2022On the Maximum Hessian Eigenvalue and Generalizationcited by 57
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimizationcited by 1
- 2026An accurate flatness measure to estimate the generalization performance of CNN modelscited by 0
- 2026When a Flatness Proxy Is Not a Function: Robustness Certificates and Training Interventionscited by 0
- 2026When a Flatness Proxy Is Not a Function: Robustness Certificates and Training Interventions29 Sep 2026
- 2026Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization28 May 2026
- 2026An accurate flatness measure to estimate the generalization performance of CNN models9 Mar 2026