Skip to main content
QUICK REVIEW

[Paper Review] Towards Robust Detection of Adversarial Examples

Tianyu Pang, Chao Du|arXiv (Cornell University)|Jun 2, 2017
Adversarial Robustness in Machine LearningComputer Science40 references13 citations
TL;DR

This paper proposes a robust defense against adversarial examples by introducing reverse cross-entropy (RCE) training and a kernel density (K-density) thresholding detector. RCE enhances feature discrimination between normal and adversarial examples, enabling the K-density detector to effectively filter out adversarials with minimal training overhead, achieving state-of-the-art robustness on MNIST and CIFAR-10 under all threat models, including white-box attacks that evade prior defenses.

ABSTRACT

Although the recent progress is substantial, deep learning methods can be vulnerable to the maliciously generated adversarial examples. In this paper, we present a novel training procedure and a thresholding test strategy, towards robust detection of adversarial examples. In training, we propose to minimize the reverse cross-entropy (RCE), which encourages a deep network to learn latent representations that better distinguish adversarial examples from normal ones. In testing, we propose to use a thresholding strategy as the detector to filter out adversarial examples for reliable predictions. Our method is simple to implement using standard algorithms, with little extra training cost compared to the common cross-entropy minimization. We apply our method to defend various attacking methods on the widely used MNIST and CIFAR-10 datasets, and achieve significant improvements on robust predictions under all the threat models in the adversarial setting.

Motivation & Objective

  • To address the vulnerability of deep learning models to adversarial examples crafted via various attack methods.
  • To improve detection robustness under white-box, black-box, and oblivious threat models without sacrificing accuracy on clean examples.
  • To develop a training procedure that enhances feature space separation between normal and adversarial inputs.
  • To enable effective detection using a lightweight, plug-and-play thresholding strategy compatible with standard deep learning pipelines.

Proposed method

  • Introduces reverse cross-entropy (RCE) as a novel training objective to encourage high confidence on true classes and uniformity on false classes, improving latent representation discriminability.
  • Uses kernel density (K-density) estimation on the final-layer features as a thresholding detector to identify inputs far from the data manifold.
  • Applies RCE training in place of standard cross-entropy, requiring only minor modifications and incurring negligible computational overhead.
  • Employs a thresholding strategy based on K-density scores to flag and filter adversarial examples during inference.
  • Designs the RCE loss to make adversarial examples more distinguishable in the feature space, especially for dimensionality-based detectors like K-density.
  • Validates the method across multiple models (ResNet-32, ResNet-56) and datasets (MNIST, CIFAR-10) under diverse attack settings.

Experimental results

Research questions

  • RQ1Can a modified training objective improve the detectability of adversarial examples using existing detection mechanisms?
  • RQ2How does RCE training affect the robustness of K-density-based detection under white-box attacks?
  • RQ3To what extent does the proposed method maintain accuracy on clean examples while improving adversarial detection?
  • RQ4Does the defense remain effective under black-box transfer attacks, where adversaries use substitute models?
  • RQ5Can adversarial examples crafted to evade the detector still be visually distinguishable from normal inputs?

Key findings

  • The RCE-trained model achieved a 77% ratio of adversarial examples with f₂(x*) > 0 under the C&W-wb attack on ResNet-32 (MNIST), compared to only 1% for standard cross-entropy, indicating significantly improved detectability.
  • Adversarial examples generated on RCE-trained models required 31.59 average distortion (vs. 17.12 for CE) to evade detection, making them visually noisy and perceptible to humans.
  • On CIFAR-10, the AUC score for black-box attacks using substitute models was 89.1 for RCE, compared to 75.0 for CE, showing stronger resistance to transfer-based evasion.
  • The method maintained state-of-the-art accuracy on clean test sets while significantly improving robustness across all threat models.
  • Even under the most aggressive white-box attack (C&W-wb), adversarial examples on RCE models required macroscopic perturbations, rendering them visually detectable.
  • The defense remains effective even when adversaries target the K-density detector directly, as the lack of explicit link between RCE values and K-density scores limits attack efficiency.

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.