Adversarial Examples Detection in Deep Networks with Convolutional Filter Statistics

Xin Li, Fuxin Li

Abstract

Deep neural networks (DNNs) are notoriously susceptible to adversarial examples—inputs modified by imperceptible perturbations that trigger high-confidence misclassifications. This paper introduces a robust detection framework that identifies these attacks by analyzing the internal statistical signatures of convolutional layers. By demonstrating that adversarial noise resides in the "statistical tails" of a model's feature space, the authors develop a non-differentiable cascade classifier. This approach achieves high detection accuracy (up to 90.7% on VGG-16) and enables image recovery through simple spatial filtering.

Introduction: The Fragility of Deep Learning

Despite achieving superhuman performance in image recognition, deep learning models remain fragile. Adversarial optimization algorithms can generate a specific noise pattern ($\Delta I$) that, when added to a natural image, completely alters the model's output while remaining invisible to human observers. This phenomenon is fundamentally a problem of extrapolation: while models excel at interpolation within their training distribution, they struggle with data points that fall outside that distribution.

A clean input image of a giant panda correctly classified by the network with 99.32% confidence.

The central question addressed in this research is whether internal network activations can reveal when an input is "out-of-distribution" (OOD) due to adversarial manipulation.

An adversarial attack example where a small perturbation results in a high-confidence misclassification of a panda as a shark.

Methodology: Convolutional Filter Statistics

The researchers propose a discriminative approach based on the statistical properties of intermediate convolutional filter outputs.

Spectral Analysis and the "Tail" Dimensions

By performing Principal Component Analysis (PCA) on intermediate layer outputs, the authors discovered a critical distinction: while natural and adversarial images appear similar in high-variance PCA dimensions, they diverge significantly in the "tail" dimensions (low-variance components). In these uninformative directions, natural images typically behave like Gaussian noise, whereas adversarial examples show massive deviations—often 5x to 10x the standard deviation—revealing the footprint of the optimization process.

Feature Extraction and Cascade Classification

For every input image, the system extracts a suite of statistics from convolutional filters, including:

  • Normalized PCA coefficients.
  • Minimum and maximum values.
  • The 25th, 50th, and 75th percentiles.

These features are processed by a Cascade Classifier consisting of a sequence of SVMs. If an image's statistics suggest it is normal with high confidence at an early layer, it passes; otherwise, it is subjected to deeper scrutiny. Crucially, these statistical features are non-subdifferentiable, making it difficult for attackers to use gradient-based methods to bypass the defense.

Key Insights

  • Confidence is an Illusion: High confidence in adversarial examples is often a byproduct of Softmax normalization. The raw logit values for adversarial images are typically much lower than those for natural images.
  • Local Sensitivity: Adversarial attacks exploit the local, high-frequency focus of current CNNs. Because these perturbations are localized, they can often be "washed out" by a simple $3 \times 3$ average filter, which can restore correct classification.

Experimental Results

The defense was evaluated using the ImageNet (ILSVRC-2012) dataset against L-BFGS and Evolutionary Algorithm (EA) attacks. The cascade classifier outperformed the state-of-the-art "OpenMax" detector by over 11%. Furthermore, by applying a $3 \times 3$ average filter to detected adversarial images, the authors were able to recover classification accuracy from near 0% to 73.0%.

Model Attack Type Detection Accuracy
AlexNet L-BFGS 83.4%
VGG-16 L-BFGS 90.7%
VGG-16 EA-Adversarial >96.0%

Conclusion and Future Work

This research demonstrates that adversarial examples leave detectable statistical signatures within the internal layers of a network. By monitoring the "tails" of feature distributions, we can identify OOD inputs that would otherwise fool the model.

Future research directions include investigating generative networks (GANs) to create more "natural" adversarial examples, developing architectures that avoid Softmax-induced artificial confidence, and increasing the receptive fields of neurons to reduce sensitivity to local, high-frequency noise.

Summary updated

BibTeX
@inproceedings{li2017adversarial,
  author = {Xin Li and Fuxin Li},
  title = {{Adversarial Examples Detection in Deep Networks with Convolutional Filter Statistics}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.615},
}
Figure