Skip to main content
QUICK REVIEW

[Paper Review] Training Ensembles to Detect Adversarial Examples

Alexander Bagnall, Răzvan Bunescu|arXiv (Cornell University)|Dec 11, 2017
Adversarial Robustness in Machine LearningComputer Science6 references30 citations
TL;DR

This paper proposes a novel, computationally efficient ensemble method that trains multiple neural network models to maintain high accuracy on clean data while actively disagreeing on randomly perturbed inputs, enabling effective detection of adversarial examples across white-box, black-box, and oblivious attack settings. The method achieves 68.1% detection on C&W attacks against CIFAR-10, demonstrating strong robustness against state-of-the-art attacks without requiring attack-specific defenses.

ABSTRACT

We propose a new ensemble method for detecting and classifying adversarial examples generated by state-of-the-art attacks, including DeepFool and C&W. Our method works by training the members of an ensemble to have low classification error on random benign examples while simultaneously minimizing agreement on examples outside the training distribution. We evaluate on both MNIST and CIFAR-10, against oblivious and both white- and black-box adversaries.

Motivation & Objective

  • To develop an attack-agnostic, computationally lightweight method for detecting adversarial examples across diverse threat models.
  • To improve adversarial detection by encouraging ensemble disagreement on out-of-distribution inputs, particularly random perturbations.
  • To maintain high classification accuracy on clean data while increasing sensitivity to adversarial inputs through joint optimization of accuracy and disagreement.
  • To evaluate the method’s robustness against state-of-the-art attacks including C&W, DeepFool, FGSM, and basic iterative methods on MNIST and CIFAR-10.
  • To explore the trade-off between classification accuracy and detection rate under varying defense objectives.

Proposed method

  • The method trains N neural network models jointly using a composite loss function: a standard cross-entropy loss for clean data (Je) and a disagreement regularization term (Ja) that penalizes consensus on randomly perturbed inputs.
  • Random perturbations ε are sampled uniformly from [-η, η) to generate adversarial-like training examples, with η controlling the L∞-norm of perturbation.
  • The disagreement loss Ja is computed as the average dot product of softmax output vectors across all model pairs, encouraging diverse predictions on perturbed inputs.
  • The total loss is J = Je + λJa, where λ controls the trade-off between clean accuracy and disagreement, optimized via mini-batch stochastic gradient descent.
  • At test time, inputs are classified via rank voting: the label with the lowest sum of ranks across ensemble members is selected, unless ensemble disagreement exceeds a threshold τ, in which case the input is flagged as adversarial.
  • The threshold τ is tuned to minimize false positives on clean validation data while maximizing detection of adversarial examples.

Experimental results

Research questions

  • RQ1Can an ensemble method detect adversarial examples without prior knowledge of the attack, across oblivious, black-box, and white-box settings?
  • RQ2How does joint optimization of clean accuracy and disagreement on perturbed inputs affect detection performance against strong attacks like C&W and DeepFool?
  • RQ3What is the trade-off between classification accuracy and detection rate when the loss function weights Je and Ja differently?
  • RQ4Does the method remain effective when faced with attacks that simultaneously target both clean accuracy and ensemble agreement?
  • RQ5How does the method compare to undefended models in sensitivity to random noise and adversarial examples?

Key findings

  • The ensemble method achieved 68.1% detection rate on adversarial examples generated by the C&W attack on CIFAR-10, outperforming undefended models.
  • Against the C&W attack with κ=250, the method achieved only 7.0% detection rate and 9.6% classification accuracy, indicating limited success for this strong attack.
  • The DeepFool attack achieved 42.6% detection rate on CIFAR-10, with high distortion (mean 3.3), suggesting it is less effective at evading detection.
  • The basic iterative attack achieved 26.4% classification accuracy and 27.1% detection rate under white-box settings when λ=0.27, indicating a trade-off between misclassification and detection.
  • The method increased sensitivity to random noise (η=0.1 and η=0.02) while maintaining high classification accuracy on accepted noisy examples, showing robustness to benign perturbations.
  • In black-box settings, the method maintained high detection rates (e.g., 70.8% for FGS on MNIST) while preserving strong clean data accuracy, demonstrating generalization across attack types.

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.