Skip to main content
QUICK REVIEW

[Paper Review] On the (Statistical) Detection of Adversarial Examples

Kathrin Grosse, Praveen Manoharan|arXiv (Cornell University)|Feb 21, 2017
Adversarial Robustness in Machine LearningComputer Science34 references375 citations
TL;DR

The paper demonstrates that adversarial examples are statistically different from legitimate data and can be detected using kernel-based two-sample tests, with an augmented outlier class providing per-input detection, evaluated on MNIST, DREBIN, and MicroRNA.

ABSTRACT

Machine Learning (ML) models are applied in a variety of tasks such as network intrusion detection or Malware classification. Yet, these models are vulnerable to a class of malicious inputs known as adversarial examples. These are slightly perturbed inputs that are classified incorrectly by the ML model. The mitigation of these adversarial inputs remains an open problem. As a step towards understanding adversarial examples, we show that they are not drawn from the same distribution than the original data, and can thus be detected using statistical tests. Using thus knowledge, we introduce a complimentary approach to identify specific inputs that are adversarial. Specifically, we augment our ML model with an additional output, in which the model is trained to classify all adversarial inputs. We evaluate our approach on multiple adversarial example crafting methods (including the fast gradient sign and saliency map methods) with several datasets. The statistical test flags sample sets containing adversarial inputs confidently at sample sizes between 10 and 100 data points. Furthermore, our augmented model either detects adversarial examples as outliers with high accuracy (> 80%) or increases the adversary's cost - the perturbation added - by more than 150%. In this way, we show that statistical properties of adversarial examples are essential to their detection.

Motivation & Objective

  • Demonstrate that adversarial examples differ statistically from legitimate training data distributions.
  • Evaluate a statistical test (MMD-based) for detecting adversarial distributions across multiple datasets and attacks.
  • Propose an integrated defense by augmenting models with an outlier class to detect individual adversarial inputs.
  • Assess robustness of the proposed defenses under white-box and black-box adversarial scenarios.

Proposed method

  • Use kernel-based two-sample test (MMD with a Gaussian kernel) to distinguish adversarial from benign distributions with bootstrapped null distribution.
  • Measure Maximum Mean Discrepancy (MMD) and Energy Distance (ED) between samples drawn from the training distribution and adversarially perturbed data.
  • Evaluate detection performance on MNIST, DREBIN (Android malware), and MicroRNA datasets across several adversarial crafting methods (FGSM, JSMA, SVM attack, DT attack).
  • Augment models with an additional outlier class and train to classify adversarial inputs as this class, enabling per-input detection at test time.
  • Compare performance under white-box and black-box threat models, including adaptive attacks.

Experimental results

Research questions

  • RQ1Can a statistical test distinguish adversarial distributions from the model's training distribution with small sample sizes?
  • RQ2Does an augmented model with an outlier class reliably detect adversarial inputs at test time?
  • RQ3How robust are the proposed defenses against adaptive/black-box adversaries?
  • RQ4What is the impact of adversarial attacks on detection costs (perturbation increments) and misclassification when using the outlier-class approach?

Key findings

  • Kernel-based tests (MMD and ED) can detect adversarial distributions with sample sizes as small as 50 inputs in most cases.
  • A two-sample test rejects the null when adversarial inputs are present, while benign samples are correctly identified with about 95% acceptance of the benign hypothesis.
  • An augmented model with an outlier class detects over 80% of adversarial examples on two datasets, and increases the attack perturbation cost by more than 150% to mislead the model.
  • Under black-box/adaptive attacks, the defense maintains robustness, with adversaries detected at 60% accuracy in the worst case and often exceeding 90% in many settings; undetected adversarial inputs often require larger perturbations.
  • For some attacks/datasets (e.g., JSMA on MNIST or DT attack on MNIST), detection is less confident, consistent with weaker statistical divergence observed for those adversaries.

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.