Skip to main content
QUICK REVIEW

[Paper Review] The Limitations of Model Uncertainty in Adversarial Settings

Kathrin Grosse, David Pfaff|arXiv (Cornell University)|Dec 6, 2018
Adversarial Robustness in Machine LearningComputer Science16 references24 citations
TL;DR

This paper introduces a method to generate adversarial examples that achieve high confidence and low uncertainty in Bayesian models, demonstrating that such uncertainty measures are unreliable for detecting adversarial inputs. Using a Gaussian process classifier as a surrogate, the authors craft High-Confidence, Low-Uncertainty (HCLU) examples that are visually similar to benign inputs yet misclassified by Bayesian neural networks, revealing a critical limitation in using uncertainty as a defense mechanism.

ABSTRACT

Machine learning models are vulnerable to adversarial examples: minor perturbations to input samples intended to deliberately cause misclassification. While an obvious security threat, adversarial examples yield as well insights about the applied model itself. We investigate adversarial examples in the context of Bayesian neural network's (BNN's) uncertainty measures. As these measures are highly non-smooth, we use a smooth Gaussian process classifier (GPC) as substitute. We show that both confidence and uncertainty can be unsuspicious even if the output is wrong. Intriguingly, we find subtle differences in the features influencing uncertainty and confidence for most tasks.

Motivation & Objective

  • To investigate whether Bayesian uncertainty measures can reliably detect adversarial examples in machine learning models.
  • To develop a method for generating adversarial examples that maintain high confidence and low uncertainty, evading detection via uncertainty-based defenses.
  • To evaluate the transferability of such adversarial examples across different models, including GPC, DNN, and BNN.
  • To compare the features influencing confidence and uncertainty in Bayesian models, identifying potential discrepancies.
  • To challenge the assumption that high uncertainty signals adversarial inputs, showing the opposite can occur.

Proposed method

  • The authors define a new adversarial example type—High-Confidence, Low-Uncertainty (HCLU)—by optimizing for minimal L2 perturbation subject to high confidence (>0.95) and low uncertainty (≤ original).
  • Due to the non-smooth nature of Bayesian neural network (BNN) uncertainty, a smooth Gaussian Process Classifier (GPC) is used as a surrogate to solve the optimization problem.
  • The attack is implemented using L-BFGS-B optimization routines in Python, leveraging the adversarial robustness toolbox for reproducibility.
  • The method is applied to spam, MNIST, and Fashion-MNIST datasets, focusing on binary classification tasks with small-scale data to ensure GPC scalability.
  • Transferability is evaluated by testing HCLU examples on GPC, DNN, and BNN models to assess robustness and generalization of the attack.
  • Bayesian confidence and uncertainty are analyzed via histogram binning over 25 intervals, comparing correctly and incorrectly classified examples.

Experimental results

Research questions

  • RQ1Can adversarial examples be crafted that maintain high confidence and low uncertainty, evading detection by Bayesian uncertainty measures?
  • RQ2Do Bayesian models like BNNs misclassify HCLU examples despite their low uncertainty and high confidence?
  • RQ3How do the features influencing confidence and uncertainty differ in Bayesian models?
  • RQ4To what extent are HCLU adversarial examples transferable across different models, including non-Bayesian DNNs?
  • RQ5How does the behavior of uncertainty and confidence differ between benign data, standard adversarial attacks (e.g., Carlini & Wagner), and HCLU examples?

Key findings

  • HCLU adversarial examples were successfully generated with minimal L2 perturbations, achieving 100% success rate on the GPC surrogate model.
  • On the spam dataset, HCLU perturbations had an average L2 norm of 0.008 ± 0.006, while on Fashion-MNIST (1 vs. 9), it was 0.194 ± 0.036.
  • BNNs misclassified HCLU examples with high confidence (mean confidence ~0.948) and low uncertainty, contradicting the expectation that uncertainty should increase on adversarial inputs.
  • For HCLU examples, the BNN showed low uncertainty on misclassified samples and low confidence on correctly classified ones, reversing the typical pattern seen in standard adversarial attacks.
  • Transferability of HCLU examples was high: all models showed significant accuracy drops on HCLU inputs, with the DNN on MNIST 3 vs. 8 and Fashion-MNIST 5 vs. 7 showing slightly higher resilience.
  • The study found subtle differences in the features influencing confidence and uncertainty in Bayesian models, suggesting that these measures are not perfectly aligned and thus not reliable for defense.

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.