Adversarial Examples Detection beyond Image Space

Kejiang Chen, Yuefeng Chen, Hang Zhou, Chuan Qin, Xiaofeng Mao, Weiming Zhang, Nenghai Yu

Abstract

Deep neural networks are notoriously vulnerable to adversarial examples. While many detectors exist, identifying attacks with extremely small perturbations remains a significant challenge. We introduce PACA (Pixel Artifacts and Confidence Artifacts), a novel two-stream detection architecture that looks beyond pixel-level artifacts by analyzing the "confidence gradient" of a model's predictions. By combining image-space and gradient-space features, PACA significantly outperforms existing methods in detecting both heavy-handed and subtle adversarial attacks across standard benchmarks.

Introduction

Adversarial examples pose a severe threat to the reliability of deep learning systems. Existing detection methods, such as those based on image steganalysis (e.g., SRM), primarily focus on pixel-level artifacts. However, modern optimized attacks like Decoupled Direction and Norm (DDN) and Elastic-Net Attack (EAD) employ extremely slight perturbations that are virtually invisible in the image space.

Adversarial perturbations and their corresponding prediction logits for Clean, PGD (large perturbation), and DDN (small perturbation) inputs.

A key observation motivating this work is the "perturbation-confidence compliance": larger adversarial perturbations typically result in higher prediction confidence, while subtle attacks barely cross decision boundaries, leading to low-confidence predictions. Subtle attacks leave minimal traces in pixel space but create distinct "confidence artifacts" within the model's internal state.

Methodology: The PACA Framework

PACA utilizes a two-stream convolutional neural network (CNN) to capture both visual and behavioral anomalies.

The PACA architecture consists of an Image Stream for pixel artifacts and a Gradient Stream for confidence artifacts, fused for final detection.

1. Image Stream (Pixel Artifacts)

This stream analyzes the raw input image. To preserve weak adversarial signals, the architecture avoids early average pooling layers, which typically act as low-pass filters. It incorporates shortcut connections and Global Covariance Pooling (GCP) to extract higher-order statistical features from the pixel data.

2. Gradient Stream (Confidence Artifacts)

The core novelty of PACA is the Gradient Stream. It computes a "confidence loss"—the cross-entropy between the model's predicted logits and the predicted label's one-hot vector. By back-propagating this loss to the input image, a confidence gradient map is generated. This map reveals how the model's confidence fluctuates in response to the input, exposing subtle attacks that lack obvious pixel-level distortions.

3. Score Fusion

The outputs from both streams are combined by a Score Fuser, which adds the individual scores to produce a final classification of the input as either "clean" or "adversarial."

Experimental Evaluation

PACA was evaluated on ImageNet and Caltech-256 datasets against five major attack algorithms: SF, EAD, C&W, DDN, and PGD.

Detection Performance

In scenarios with "oblivious adversaries" (attackers unaware of the detector), PACA demonstrated superior accuracy. For the subtle DDN attack on ImageNet, PACA achieved a detection accuracy of 91.47%, significantly higher than the 65.62% achieved by the previous state-of-the-art (SRM). On Caltech-256, PACA reached 97.29% accuracy.

Robustness and Generalization

PACA exhibited strong transferability, effectively detecting unseen attack types without specific retraining. Furthermore, against "omniscient adversaries" who attempt to bypass the detector, PACA remained resilient. A modified C&W attack designed to evade PACA saw its success rate drop from 77.8% to just 7.0% on ImageNet, while also requiring larger, more detectable perturbations to achieve even that limited success.

Conclusion

By integrating confidence-based gradients with traditional pixel analysis, PACA addresses a critical blind spot in adversarial detection. While the method introduces some computational overhead due to the required backward pass, its ability to identify low-perturbation attacks marks a significant advancement in securing deep learning models. Future research may focus on optimizing the gradient generation process to reduce latency in real-time applications.

Summary updated

BibTeX
@inproceedings{chen2021adversarial,
  author = {Kejiang Chen and Yuefeng Chen and Hang Zhou and Chuan Qin and Xiaofeng Mao and Weiming Zhang and Nenghai Yu},
  title = {{Adversarial Examples Detection beyond Image Space}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=w6n1hSqaVUm},
}
Figure