Skip to main content
QUICK REVIEW

[Paper Review] ML-LOO: Detecting Adversarial Examples with Feature Attribution

Puyudi Yang, Jianbo Chen|arXiv (Cornell University)|Jun 8, 2019
Adversarial Robustness in Machine LearningComputer Science64 references15 citations
TL;DR

This paper proposes ML-LOO, a novel adversarial example detection method that leverages feature attribution scores from deep neural networks to identify adversarial inputs. By measuring scale differences in Leave-One-Out (LOO) feature attributions between original and perturbed inputs, and extending to multi-layer attributions, the method effectively detects adversarial examples across diverse attack types and confidence levels, outperforming state-of-the-art detectors in detection accuracy and transferability.

ABSTRACT

Deep neural networks obtain state-of-the-art performance on a series of tasks. However, they are easily fooled by adding a small adversarial perturbation to input. The perturbation is often human imperceptible on image data. We observe a significant difference in feature attributions of adversarially crafted examples from those of original ones. Based on this observation, we introduce a new framework to detect adversarial examples through thresholding a scale estimate of feature attribution scores. Furthermore, we extend our method to include multi-layer feature attributions in order to tackle the attacks with mixed confidence levels. Through vast experiments, our method achieves superior performances in distinguishing adversarial examples from popular attack methods on a variety of real data sets among state-of-the-art detection methods. In particular, our method is able to detect adversarial examples of mixed confidence levels, and transfer between different attacking methods.

Motivation & Objective

  • To address the challenge of detecting adversarial examples that evade existing detection methods, especially those with high confidence or mixed confidence levels.
  • To exploit the instability in feature attribution maps of adversarial examples near decision boundaries, where perturbations cause significant shifts in attribution scores.
  • To develop a detection framework that is robust across different attack types and transferable between them, without requiring model-specific tuning.
  • To extend single-layer attribution to multi-layer feature attribution to capture uncertainty in high-confidence adversarial examples.
  • To provide a model-agnostic, query-efficient detection method based on statistical summaries of attribution discrepancies.

Proposed method

  • Uses Leave-One-Out (LOO) feature attribution to compute importance scores by systematically masking each input feature and measuring the change in model prediction.
  • Measures the scale of attribution scores (e.g., L2 norm or variance) as a statistical proxy for feature disagreement between original and adversarial examples.
  • Applies a thresholding mechanism on the scale estimate to classify inputs as natural or adversarial, with the threshold learned from clean data.
  • Extends detection to multi-layer feature attributions by aggregating attribution scores from intermediate layers, preserving sensitivity even when the model is confident on adversarial inputs.
  • Employs a statistical test or distribution-based thresholding to distinguish natural from adversarial examples based on the magnitude of attribution shifts.
  • Trains the detector on one attack type (e.g., C&W) and evaluates transferability to other attacks (e.g., PGD, FGSM, JSMA), demonstrating generalization capability.

Experimental results

Research questions

  • RQ1Can feature attribution maps reveal consistent statistical differences between natural and adversarial examples, particularly near decision boundaries?
  • RQ2Can a detection method based on attribution scale differences generalize across diverse adversarial attack types, including those with varying confidence levels?
  • RQ3Does incorporating multi-layer feature attributions improve detection performance on high-confidence adversarial examples where single-layer methods fail?
  • RQ4Can a detector trained on one attack type successfully detect adversarial examples generated by other, unseen attacks, indicating transferability?
  • RQ5How does the proposed method compare in performance to state-of-the-art detection baselines across multiple datasets and attack scenarios?

Key findings

  • ML-LOO achieves an AUC of 0.879 on CIFAR-10 using C&W attack data, significantly outperforming Mahalanobis (0.818), LID (0.763), and KD+BU (0.753) in detecting mixed-confidence adversarial examples.
  • At FPR = 0.01, ML-LOO achieves a TPR of 0.21 on mixed-confidence C&W attacks, while Mahalanobis, LID, and KD+BU achieve TPRs of 0.08, 0.14, and 0.20 respectively, showing superior detection at low false positive rates.
  • On $L_{∞}$-PGD attacks, ML-LOO maintains high performance with an AUC of 0.879 on CIFAR-10, outperforming KD+BU (0.753), LID (0.763), and Mahalanobis (0.818).
  • ML-LOO demonstrates strong transferability: when trained on C&W attacks, it achieves AUC > 0.98 on $L_{∞}$-PGD, FGSM, and Boundary attacks across MNIST, CIFAR-10, and CIFAR-100.
  • For high-confidence $L_{∞}$-PGD attacks (ε=0.03), ML-LOO achieves a TPR of 0.48 at FPR=0.01, while KD+BU, LID, and Mahalanobis achieve TPRs below 0.10, indicating ML-LOO’s effectiveness in high-confidence regimes.
  • The method successfully detects adversarial examples across mixed-confidence attacks, where other detectors fail, due to its multi-layer attribution design that captures uncertainty in intermediate representations.

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.