[Paper Review] Idealised Bayesian Neural Networks Cannot Have Adversarial Examples: Theoretical and Empirical Study.
This paper proves that idealised Bayesian neural networks (BNNs) cannot have adversarial examples under two sufficient conditions, demonstrating theoretically and empirically that adversarial examples arise from model imperfections. Near-idealised BNNs using HMC inference show that epistemic uncertainty correlates with data manifold density, explaining why MC dropout acts as a defense and revealing new attack/defense dynamics for approximate BNNs.
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 establish theoretical conditions under which Bayesian neural networks are inherently robust to adversarial examples.
- To investigate why MC dropout, an approximate inference method, has shown empirical success as an adversarial defense.
- To identify failure modes in non-idealised BNNs relying on dropout, leading to new attack and defense strategies.
- To validate theoretical insights using HMC inference on synthetic MNIST-derived data with known ground-truth image densities.
Proposed method
- Theoretical analysis proves that idealised BNNs satisfying two sufficient conditions are free from adversarial examples.
- HMC inference is used to approximate posterior distributions in near-idealised BNNs, enabling empirical validation of theoretical claims.
- Synthetic data is generated from the MNIST manifold to create a controlled setting with known image density and ground-truth distributions.
- Epistemic uncertainty is measured and correlated with data density to assess whether adversarial examples lie off the true data manifold.
- A new attack is proposed for dropout-based models based on failure modes in non-idealised BNNs, alongside a corresponding defense mechanism.
- The proposed defense is evaluated on a cats-vs-dogs image classification task using a VGG13 variant.
Experimental results
Research questions
- RQ1Under what theoretical conditions can Bayesian neural networks be provably free of adversarial examples?
- RQ2How does epistemic uncertainty in near-idealised BNNs relate to the underlying data manifold density?
- RQ3Why does MC dropout, as an approximate inference method, serve as an effective defense against adversarial examples?
- RQ4What failure modes emerge in non-idealised BNNs using dropout, and how can they be exploited or mitigated?
- RQ5Can the theoretical insights from idealised models be transferred into practical defense mechanisms for real-world models?
Key findings
- Idealised Bayesian neural networks satisfying the two sufficient conditions are provably free of adversarial examples.
- Near-idealised BNNs trained with HMC inference show that high epistemic uncertainty correlates with regions of high data density, indicating that adversarial examples lie off the true data manifold.
- Adversarial examples in the synthetic MNIST-derived setting are consistently found to lie outside the image manifold, supporting the hypothesis that they exploit distributional gaps.
- MC dropout's effectiveness as a defense is explained by its ability to approximate the epistemic uncertainty of idealised BNNs.
- A new attack is identified for dropout-based models based on their failure to capture full posterior uncertainty, suggesting a new vulnerability.
- The proposed defense mechanism outperforms standard dropout in a cats-vs-dogs classification task with a VGG13 variant, demonstrating practical applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.