Detecting Adversarial Image Examples in Deep Neural Networks with Adaptive Noise Reduction

XiaoFeng Wang, Bin Liang, Hongcheng Li, Miaoqiang Su, Xirong Li, Wenchang Shi, Xiaofeng Wang 0006

TL;DR

This paper introduces a novel, model-agnostic method for detecting adversarial image examples in deep neural networks (DNNs). By treating adversarial perturbations as noise and applying adaptive image processing techniques, the method effectively distinguishes between benign and malicious inputs without needing prior knowledge of attack methods, achieving high detection accuracy.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success in various domains, but they are vulnerable to adversarial examples. These are subtly modified inputs designed to fool a DNN into misclassifying them, even though they appear normal to humans. Existing defense mechanisms often require modifying the target model, are computationally expensive, or rely on knowing the specific attack techniques used. This leaves a critical gap: a need for a defense that is easy to deploy, works with existing, unmodified DNNs, and can detect novel or unknown attacks.

Methods

The core idea is to leverage image processing techniques to reduce the impact of adversarial perturbations, treating them as a form of noise. The authors propose a two-pronged approach:

  • Adaptive Noise Reduction: They use scalar quantization and spatial smoothing filters to "denoise" the input image. Crucially, the parameters for these filters are adapted based on the image's entropy. Low-entropy images (simpler, less detailed) are processed with more aggressive denoising, while high-entropy images (complex, detailed) receive gentler treatment. This adaptive approach prevents over-denoising benign images or under-denoising adversarial ones.
  • Detection Filter: A detection filter T(x) is created that applies this adaptive noise reduction. The detection works by comparing the classification output of the original input x with the classification output of the denoised input T(x). If the classifications differ, the input is flagged as adversarial. If they remain the same, it's considered benign. This comparison is done without modifying the original classifier C.

Datasets

The paper evaluates its method on two prominent datasets:

  • MNIST: A dataset of handwritten digits, representing simpler, low-resolution images.
  • ImageNet: A large-scale dataset of high-resolution images across various categories.

The authors also mention using subsets of these datasets for training and validation of their detection parameters.

Key Insights and Ideas

  • Adversarial Perturbations as Noise: The fundamental insight is that adversarial perturbations, while crafted, can be treated as a form of noise that is less tolerant to standard image processing techniques than the original image content.
  • Entropy as a Key to Adaptivity: Using image entropy to dynamically adjust denoising parameters is a clever way to handle the diverse nature of images and the varying impact of adversarial attacks across different image complexities. This avoids a one-size-fits-all approach that would likely fail.
  • Model-Agnostic Defense: The ability to deploy the detection filter before an existing, unmodified DNN classifier is a significant practical advantage. It means this defense can be retrofitted to existing systems without costly retraining or architectural changes.
  • Defense-Aware Attacks are Tough, but Not Impossible: The paper highlights the challenge of defense-aware attacks, where adversaries know about the defense mechanism. While these attacks are harder to thwart, the proposed method still significantly degrades their success rate, raising the bar for attackers.

Key Results

The proposed method achieved impressive results:

  • High Overall F1 Score: An overall F1 score of 96.39% was achieved across over 43,000 samples in the defense-unaware scenario.
  • Robustness to Various Attacks: The method demonstrated high effectiveness against FGSM, DeepFool, and CW attacks, even when parameters were tuned only on FGSM.
  • Defense-Aware Performance: In defense-aware scenarios, the attack success rate was significantly reduced from nearly 100% to 67.37%.
  • Low False Positives: For benign samples, the false positive rate was 2.13%, considered acceptable.
  • Recovered Classifications: The detection filter successfully recovered the original classification for 94.16% of adversarial examples.

Limitations and Future Work

  • Ambiguous Images: The paper acknowledges that ambiguous images, which are inherently hard for classifiers to classify, can lead to false positives and false negatives.
  • Perceptible Perturbations: Detecting adversarial examples with very large-amplitude perturbations (which are visually obvious) is challenging with current filtering techniques, as reducing their effect might compromise the image semantics.
  • Future Work: The authors suggest exploring other image processing techniques (like Rényi entropy, image segmentation) to develop more sophisticated detection methods, especially for defense-aware attacks and those with large-amplitude perturbations. They also aim to extend the method to other data types like audio.

Summary updated

BibTeX
@article{wang2021detecting,
  author = {XiaoFeng Wang and Bin Liang and Hongcheng Li and Miaoqiang Su and Xirong Li and Wenchang Shi and Xiaofeng Wang},
  title = {{Detecting Adversarial Image Examples in Deep Neural Networks with Adaptive Noise Reduction}},
  journal = {IEEE TDSC},
  year = {2021},
  doi = {10.1109/tdsc.2018.2874243},
}
Figure