Detecting Adversarial Examples - A Lesson from Multimedia Forensics

Pascal Schöttle, Alexander Schlögl, Cecilia Pasquini, Rainer Böhme

Abstract

Adversarial examples pose a significant threat to deep neural networks by introducing imperceptible perturbations that trigger misclassification. This paper bridges the gap between machine learning security and multimedia forensics by framing adversarial attacks as a form of steganography. By adapting a simple linear residual filter from steganalysis, the authors demonstrate a robust detection mechanism. When integrated with adversarial retraining, this approach achieves a minimum classification accuracy of 96% on the MNIST dataset against Projected Gradient Descent (PGD) attacks, highlighting the potential of forensic techniques in securing machine learning models.

Introduction

Deep neural networks (DNNs) are highly vulnerable to adversarial examples—inputs modified by subtle perturbations designed to deceive models into making high-confidence errors. While much research focuses on improving model "robustness" to ensure correct classification of perturbed inputs, the field of detection remains under-explored. This paper argues that the machine learning community can benefit from decades of research in multimedia forensics and steganalysis, fields dedicated to identifying hidden, malicious alterations in digital media.

Methodology: Adversarial Detection as Steganalysis

The authors propose treating adversarial perturbations as "stego-noise" embedded within an image. They implement a detection pipeline based on a classic steganalysis technique: residual-based detection.

The proposed detection and classification pipeline.

The process involves several key stages as illustrated in the pipeline above:

  1. Linear Filtering: A $3 \times 3$ kernel estimates a pixel's value based on its neighbors, exploiting the high correlation found in natural images.
  2. Residual Calculation: Subtracting the estimate from the observed value yields a "residual." Large residuals indicate potential tampering.
  3. Statistical Indicator ($\hat{p}$): A weighted average of residuals across the image is compared against a threshold ($\bar{p}$).
  4. Thresholding: The threshold is set based on the maximum residual in the clean training set to ensure zero false positives on benign data.
  5. Defense Pipeline: Images flagged as adversarial are rejected; others proceed to an adversarially re-trained CNN for final classification.

Key Insights: The Steganography Parallel

The core insight is the functional identity between an adversarial attacker and a steganographer. Both aim to embed a "message" (the perturbation) that alters system behavior while remaining invisible to human observers. Unlike standard CNNs, which lose accuracy as perturbation strength ($\epsilon$) increases, steganalysis filters become more effective as the noise becomes easier to distinguish from natural image statistics. This creates a complementary defense where detection covers the vulnerabilities of robustness.

Experimental Results

The study utilized the MNIST dataset, generating 100,000 adversarial examples using the Projected Gradient Descent (PGD) method across various perturbation strengths.

Classification accuracy of the combined defense pipeline across varying perturbation strengths.

The results demonstrate the power of the combined approach:

  • High Detection Rates: For standard models, the detector achieved a nearly 100% True Positive Rate (TPR) for $\epsilon \ge 0.2$.
  • Resilience: Even against "secret" models hardened by adversarial retraining, the detector maintained high performance.
  • The Gold Standard: By combining the detection filter with a robust model, the pipeline maintained a minimum accuracy of 96% across all tested attack parameters, effectively neutralizing the PGD threat on MNIST as shown in the accuracy plot above.

Conclusion and Future Work

This research provides a "proof of concept" for applying forensic tools to machine learning security. While the results on MNIST are promising, the authors acknowledge that more complex datasets like ImageNet will require sophisticated, high-dimensional steganalysis tools, such as the Spatial Rich Model or CNN-based detectors. Future work will also explore the effectiveness of these methods against a broader range of adversarial attacks beyond pixel-level perturbations, such as semantic region modifications.

Summary updated

BibTeX
@inproceedings{schottle2018detecting,
  author = {Pascal Schöttle and Alexander Schlögl and Cecilia Pasquini and Rainer Böhme},
  title = {{Detecting Adversarial Examples - A Lesson from Multimedia Forensics}},
  booktitle = {EUSIPCO},
  year = {2018},
  url = {https://openreview.net/forum?id=0YpNsl-HwBc},
}
Figure