Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Phenomenon in the Eyes of Bayesian Deep Learning

Ambrish Rawat, Martin Wistuba|arXiv (Cornell University)|Nov 22, 2017
Adversarial Robustness in Machine LearningComputer Science28 references27 citations
TL;DR

This paper investigates adversarial robustness through Bayesian uncertainty in deep neural networks, proposing that Bayesian Neural Networks (BNNs) exhibit heightened predictive uncertainty on adversarial examples—similar to random Gaussian noise—making them effective for adversarial detection. The authors adapt FGSM for BNNs using Monte Carlo sampling and demonstrate that uncertainty metrics like mutual information and predictive entropy reliably flag adversarial inputs across multiple BNN variants.

ABSTRACT

Deep Learning models are vulnerable to adversarial examples, i.e.\ images obtained via deliberate imperceptible perturbations, such that the model misclassifies them with high confidence. However, class confidence by itself is an incomplete picture of uncertainty. We therefore use principled Bayesian methods to capture model uncertainty in prediction for observing adversarial misclassification. We provide an extensive study with different Bayesian neural networks attacked in both white-box and black-box setups. The behaviour of the networks for noise, attacks and clean test data is compared. We observe that Bayesian neural networks are uncertain in their predictions for adversarial perturbations, a behaviour similar to the one observed for random Gaussian perturbations. Thus, we conclude that Bayesian neural networks can be considered for detecting adversarial examples.

Motivation & Objective

  • To investigate whether Bayesian neural networks (BNNs) exhibit increased uncertainty on adversarial examples compared to clean data.
  • To evaluate if BNNs can distinguish adversarial perturbations from random noise using principled uncertainty quantification.
  • To assess the effectiveness of multiple Bayesian inference methods (e.g., PBP, MC Dropout, VI) in detecting adversarial attacks through uncertainty metrics.
  • To compare the uncertainty behavior of BNNs under white-box and black-box adversarial attacks.
  • To explore the potential of uncertainty-based detection as a reliable defense mechanism in safety-critical applications.

Proposed method

  • Adapted the Fast Gradient Sign Method (FGSM) for Bayesian Neural Networks using Monte Carlo sampling to estimate predictions under parameter uncertainty.
  • Employed four distinct Bayesian inference methods: Probabilistic Backpropagation (PBP), Monte Carlo Dropout (MC-Dropout), Variational Inference (VI), and a matrix variate Gaussian posterior (MVN).
  • Quantified model uncertainty using three metrics: Mutual Information in Uncertainty (MUMMI), predictive entropy, and variation ratio.
  • Generated adversarial examples on MNIST using FGSM with perturbation strength ε = 0.5 and compared them to three types of random noise: uniform, pixel-wise Gaussian, and multivariate normal (MVN).
  • Visualized uncertainty footprints via scatter plots of class confidence vs. uncertainty metrics across clean test data, adversarial examples, and noise sets.
  • Used Monte Carlo sampling to approximate posterior predictive distributions and compute uncertainty estimates for each input.

Experimental results

Research questions

  • RQ1Do Bayesian Neural Networks exhibit significantly higher uncertainty on adversarial examples compared to clean test images?
  • RQ2How does the uncertainty behavior of BNNs on adversarial perturbations compare to that on random Gaussian noise?
  • RQ3Do different Bayesian inference methods (e.g., PBP, MC-Dropout) show consistent uncertainty patterns across adversarial attacks?
  • RQ4Can uncertainty metrics such as predictive entropy and variation ratio effectively distinguish adversarial inputs from clean or noisy data?
  • RQ5Does the uncertainty footprint of BNNs under adversarial attack resemble that of data points far from the training distribution?

Key findings

  • Bayesian Neural Networks display significantly increased uncertainty—measured by MUMMI, predictive entropy, and variation ratio—on adversarial examples, especially as attack strength increases.
  • The uncertainty footprint of adversarial examples closely resembles that of random Gaussian noise, indicating that BNNs treat both as out-of-distribution inputs.
  • PBP shows a sharp rise in uncertainty for both adversarial and noisy inputs, while other models like MC-Dropout exhibit inconsistent behavior on MVN and pixel-wise noise, likely due to architectural and normalization effects.
  • The similarity in uncertainty patterns between adversarial examples and random noise supports the hypothesis that BNNs recognize adversarial inputs as distributionally distant from training data.
  • All BNN variants tested show a clear trend of increasing uncertainty with higher FGSM perturbation strength, confirming the robustness of uncertainty as a detection signal.
  • The results suggest that uncertainty quantification in BNNs can serve as a reliable mechanism for adversarial example detection, particularly when combined with multiple uncertainty metrics.

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.