Skip to main content
QUICK REVIEW

[Paper Review] Sufficient Conditions for Idealised Models to Have No Adversarial Examples: a Theoretical and Empirical Study with Bayesian Neural Networks

Yarin Gal, Lewis Smith|arXiv (Cornell University)|Jun 2, 2018
Adversarial Robustness in Machine LearningComputer Science11 references26 citations
TL;DR

This paper proves that idealised Bayesian neural networks (BNNs) satisfying two sufficient conditions—accurate epistemic uncertainty and proper density estimation—can have no adversarial examples, regardless of input density. Using Hamiltonian Monte Carlo (HMC) inference on synthetic MNIST-like data, the authors show that high epistemic uncertainty correlates with low data density, and adversarial examples lie off the data manifold, explaining why MC dropout acts as a robust defense.

ABSTRACT

We prove, under two sufficient conditions, that idealised models can have no adversarial examples. We discuss which idealised models satisfy our conditions, and show that idealised Bayesian neural networks (BNNs) satisfy these. We continue by studying near-idealised BNNs using HMC inference, demonstrating the theoretical ideas in practice. We experiment with HMC on synthetic data derived from MNIST for which we know the ground-truth image density, showing that near-perfect epistemic uncertainty correlates to density under image manifold, and that adversarial images lie off the manifold in our setting. This suggests why MC dropout, which can be seen as performing approximate inference, has been observed to be an effective defence against adversarial examples in practice; We highlight failure-cases of non-idealised BNNs relying on dropout, suggesting a new attack for dropout models and a new defence as well. Lastly, we demonstrate the defence on a cats-vs-dogs image classification task with a VGG13 variant.

Motivation & Objective

  • To identify sufficient conditions under which idealised models can be provably robust to adversarial examples.
  • To investigate why MC dropout, despite being approximate inference, has shown empirical success in detecting adversarial examples.
  • To expose limitations in practical BNNs using dropout-based inference, particularly 'uncertainty holes' in epistemic uncertainty estimation.
  • To propose a new gradient-free attack targeting these uncertainty holes in MC dropout models, and a mitigation via ensemble methods.
  • To validate theoretical findings on real-world image classification using a VGG13 variant on cats-vs-dogs data.

Proposed method

  • Formalise two sufficient conditions for adversarial robustness: (1) accurate epistemic uncertainty and (2) correct input density estimation.
  • Use Bayesian neural networks (BNNs) with Hamiltonian Monte Carlo (HMC) inference to achieve idealised, exact posterior inference.
  • Construct a synthetic dataset derived from MNIST with known ground-truth input densities to test uncertainty and density correlation.
  • Apply mutual information (MI) as a measure of epistemic uncertainty to detect 'holes' in uncertainty estimation across models.
  • Design a gradient-free attack that queries model confidence and selects far-from-training-data points with low MI (i.e., high confidence in low-uncertainty regions).
  • Propose a mitigation using an ensemble of randomly initialised dropout models to reduce uncertainty holes, validated on VGG13 with Concrete Dropout.

Experimental results

Research questions

  • RQ1Under what sufficient conditions can idealised models be guaranteed to have no adversarial examples?
  • RQ2How does epistemic uncertainty in BNNs correlate with data density in the input manifold?
  • RQ3Why does MC dropout, despite approximate inference, perform well as an adversarial example detector?
  • RQ4Can uncertainty holes in dropout-based models be exploited to generate adversarial examples without gradient computation?
  • RQ5Does ensemble inference improve uncertainty calibration and robustness in practical BNNs compared to single-model dropout?

Key findings

  • Idealised BNNs satisfying the two sufficient conditions—accurate epistemic uncertainty and correct density estimation—can have no adversarial examples.
  • HMC-inferred BNNs on synthetic MNIST data show strong correlation between high epistemic uncertainty and low data density, with adversarial examples lying off the data manifold.
  • MC dropout-based models exhibit 'uncertainty holes'—regions far from training data with high confidence and low uncertainty—making them vulnerable to new gradient-free attacks.
  • An ensemble of dropout models significantly reduces uncertainty holes, improving robustness compared to a single model, as shown by AUC improvement from 0.63 to 0.77 on the VGG13 cats-vs-dogs task.
  • The new gradient-free attack successfully generates adversarial 'garbage' images by targeting uncertainty holes, with higher success rates than FGM in controlled settings.
  • Dropout ensembles outperform deterministic model ensembles in uncertainty calibration, suggesting that stochasticity in inference improves robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.