On the Robustness of Bayesian Neural Networks to Adversarial Attacks
Not on the map. Why?
Abstract (arXiv)
Vulnerability to adversarial attacks is one of the principal hurdles to the adoption of deep learning in safety-critical applications. Despite significant efforts, both practical and theoretical, training deep learning models robust to adversarial attacks is still an open problem. In this paper, we analyse the geometry of adversarial attacks in the large-data, overparameterized limit for Bayesian Neural Networks (BNNs). We show that, in the limit, vulnerability to gradient-based attacks arises as a result of degeneracy in the data distribution, i.e., when the data lies on a lower-dimensional submanifold of the ambient space. As a direct consequence, we demonstrate that in this limit BNN posteriors are robust to gradient-based adversarial attacks. Crucially, we prove that the expected gradient of the loss with respect to the BNN posterior distribution is vanishing, even when each neural network sampled from the posterior is vulnerable to gradient-based attacks. Experimental results on the MNIST, Fashion MNIST, and half moons datasets, representing the finite data regime, with BNNs trained with Hamiltonian Monte Carlo and Variational Inference, support this line of arguments, showing that BNNs can display both high accuracy on clean data and robustness to both gradient-based and gradient-free based adversarial attacks.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 54 of its 85 references that are in the map. First posted on arXiv 13 Jul 2022.
Builds on
54 of 85 references.
References · 54
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,283
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
- 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 950
- 2018Robustness May Be at Odds with Accuracycited by 873
- 2017ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Modelscited by 656
- 2017Deep Neural Networks as Gaussian Processescited by 617
- 2019A Simple Baseline for Bayesian Uncertainty in Deep Learningcited by 555
38 more
- 2015Weight Uncertainty in Neural Networkscited by 554
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
- 2017Wild Patterns: Ten Years After the Rise of Adversarial Machine Learningcited by 411
- 2017Adversarial Examples: Attacks and Defenses for Deep Learningcited by 350
- 2018Gaussian Process Behaviour in Wide Deep Neural Networkscited by 314
- 2017Detecting Adversarial Samples from Artifactscited by 244
- 2018When Gaussian Process Meets Big Data: A Review of Scalable GPscited by 205
- 2018Understanding Measures of Uncertainty for Adversarial Example Detectioncited by 177
- 2018Bayesian Deep Convolutional Networks with Many Channels are Gaussian Processescited by 164
- 2018Deep Convolutional Networks as shallow Gaussian Processescited by 137
- 2018Is Robustness the Cost of Accuracy? -- A Comprehensive Study on the Robustness of 18 Deep Image Classification Modelscited by 135
- 2019A Function Space View of Bounded Norm Infinite Width ReLU Nets: The Multivariate Casecited by 113
- 2019Defensive Quantization: When Efficiency Meets Robustnesscited by 95
- 2017Noisy Natural Gradient as Variational Inferencecited by 94
- 2018Adversarial vulnerability for any classifiercited by 78
- 2020Fairwashing Explanations with Off-Manifold Detergentcited by 71
- 2018Adv-BNN: Improved Adversarial Defense through Robust Bayesian Neural Networkcited by 68
- 2018Adversarial Examples: Opportunities and Challengescited by 62
- 2020All You Need is a Good Functional Prior for Bayesian Deep Learningcited by 61
- 2019Uncertainty Quantification with Statistical Guarantees in End-to-End Autonomous Driving Controlcited by 60
- 2020Robustness of Bayesian Neural Networks to Gradient-Based Attackscited by 48
- 2018On the Geometry of Adversarial Examplescited by 43
- 2020Probabilistic Safety for Bayesian Neural Networkscited by 41
- 2019Adversarial Examples in Modern Machine Learning: A Reviewcited by 36
- 2019Statistical Guarantees for the Robustness of Bayesian Neural Networkscited by 35
- 2020Exact posterior distributions of wide Bayesian neural networkscited by 29
- 2017Dropout Inference in Bayesian Neural Networks with Alpha-divergencescited by 28
- 2021Bayesian Inference with Certifiable Adversarial Robustnesscited by 26
- 2018Robustness Guarantees for Bayesian Inference with Gaussian Processescited by 23
- 2019Continual Learning Using Bayesian Neural Networkscited by 19
- 2021Make Sure You're Unsure: A Framework for Verifying Probabilistic Specificationscited by 18
- 2018The Limitations of Model Uncertainty in Adversarial Settingscited by 14
- 2019Modelling the influence of data structure on learning in neural networks: the hidden manifold modelcited by 13
- 2020QUANOS- Adversarial Noise Sensitivity Driven Hybrid Quantization of Neural Networkscited by 12
- 2017Adversarial Phenomenon in the Eyes of Bayesian Deep Learningcited by 11
- 2018Sufficient Conditions for Idealised Models to Have No Adversarial Examples: a Theoretical and Empirical Study with Bayesian Neural Networkscited by 9
- 2018Bayesian Adversarial Spheres: Bayesian Inference and Adversarial Examples in a Noiseless Settingcited by 8
- 2020Incremental Unsupervised Domain-Adversarial Training of Neural Networkscited by 7
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 6; 2025: 1; 2026: 2.
12 papers.
- 2024A Survey of Attacks on Large Vision-Language Models: Resources, Advances, and Future Trendscited by 82
- 2022Jensen-Shannon Divergence Based Novel Loss Functions for Bayesian Neural Networkscited by 6
- 2024Tight Verification of Probabilistic Robustness in Bayesian Neural Networkscited by 5
- 2024Bayesian Sheaf Neural Networkscited by 4
- 2024Finite Neural Networks as Mixtures of Gaussian Processes: From Provable Error Bounds to Prior Selectioncited by 3
- 2026Variational Routing: A Scalable Bayesian Framework for Calibrated Mixture-of-Experts Transformerscited by 3
- 2024Attacking Bayes: On the Adversarial Robustness of Bayesian Neural Networkscited by 2
- 2024Joint Universal Adversarial Perturbations with Interpretationscited by 2
- 2023Post-train Black-box Defense via Bayesian Boundary Correctioncited by 1
- 2023Latent Code Augmentation Based on Stable Diffusion for Data-free Substitute Attackscited by 1
- 2025Your Classifier Can Do More: Towards Balancing the Gaps in Classification, Robustness, and Generationcited by 1
- 2026Evaluating randomized smoothing as a defense against adversarial attacks in trajectory predictioncited by 1
- 2026Evaluating randomized smoothing as a defense against adversarial attacks in trajectory prediction11 Mar 2026
- 2026Variational Routing: A Scalable Bayesian Framework for Calibrated Mixture-of-Experts Transformers10 Mar 2026
- 2025Your Classifier Can Do More: Towards Balancing the Gaps in Classification, Robustness, and Generation26 May 2025
- 2024Bayesian Sheaf Neural Networks12 Oct 2024
- 2024Joint Universal Adversarial Perturbations with Interpretations3 Aug 2024
- 2024Finite Neural Networks as Mixtures of Gaussian Processes: From Provable Error Bounds to Prior Selection26 Jul 2024
- 2024A Survey of Attacks on Large Vision-Language Models: Resources, Advances, and Future Trends10 Jul 2024
- 2024Attacking Bayes: On the Adversarial Robustness of Bayesian Neural Networks27 Apr 2024
- 2024Tight Verification of Probabilistic Robustness in Bayesian Neural Networks21 Jan 2024
- 2023Latent Code Augmentation Based on Stable Diffusion for Data-free Substitute Attacks24 Jul 2023
- 2023Post-train Black-box Defense via Bayesian Boundary Correction29 Jun 2023
- 2022Jensen-Shannon Divergence Based Novel Loss Functions for Bayesian Neural Networks23 Sep 2022