Adversarial Examples Detection with Enhanced Image Difference Features based on Local Histogram Equalization

Zhaoxia Yin, Shaowei Zhu, Hang Su, Jianteng Peng, Wanli Lyu, Bin LuoarXiv 2023

TL;DR

This paper introduces a novel framework for detecting adversarial examples in deep neural networks by enhancing the differences in high-frequency image information between normal and adversarial images. Their method uses Local Histogram Equalization (LHE) and a high-pass filter to amplify these subtle differences, leading to improved detection accuracy and a modular approach that can boost existing detection models.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are incredibly powerful but notoriously vulnerable to "adversarial examples." These are images that have been subtly modified with imperceptible perturbations, causing the DNN to misclassify them. While many defense mechanisms exist, they often fail against new or unknown attack methods. The core challenge is that these adversarial perturbations are designed to be invisible to humans, making it difficult to distinguish them from legitimate images, especially as attacks become more sophisticated and perturbations become smaller and more visually appealing. This paper aims to develop a robust detection system that can effectively identify these stealthy adversarial examples, even when faced with novel attack strategies.

Methods

The proposed method centers around an "adversarial example detection framework based on a high-frequency information enhancement strategy." This framework has three main components:

  1. Image Contrast Enhancement Module (Local Histogram Equalization - LHE): The key idea here is that adversarial perturbations, being random and non-semantic, create anomalous high-frequency information in local image regions. Normal image textures, on the other hand, are locally correlated. LHE is applied to each input image using a sliding window. This process enhances local contrast, effectively amplifying these anomalous, high-frequency adversarial perturbations while making normal image textures more distinct.
  2. High-Frequency Information Filter Module (High-Pass Filter): After LHE, a high-pass filter is applied. This filter is designed to retain the amplified adversarial high-frequency information (the perturbations) while suppressing lower frequencies. The paper explores different types of high-pass filters, including Gaussian and Butterworth, and analyzes their effectiveness. The Butterworth high-pass filter is chosen for its smooth response.
  3. Neural Network Classification Module: The enhanced and filtered high-frequency features are then fed into a binary classifier (e.g., a ResNet50 model) trained to distinguish between normal and adversarial examples.

A significant aspect of this approach is its modularity. The enhancement strategy can be applied to existing detection models without requiring modifications to their core structure, thus reducing deployment costs.

Datasets

The paper uses several standard datasets for training and evaluation:

  • MNIST: A dataset of handwritten digits.
  • CIFAR-10: A dataset of 10 classes of everyday objects.
  • ImageNet: A large-scale dataset of diverse images.

The authors generate adversarial examples using various attack methods on these datasets and then evaluate their detection framework.

Key Insights and Ideas

  • High-frequency anomalies as a detection signal: The core insight is that adversarial perturbations, by their nature, disrupt the local correlation of high-frequency information in images, creating detectable anomalies that differ from the structured high-frequency information in normal images.
  • LHE as an amplifier: Local Histogram Equalization is not just for contrast enhancement; it's used here to specifically amplify the differences in local pixel correlations caused by adversarial perturbations.
  • Modularity for practical deployment: The proposed enhancement strategy can be plugged into existing detection systems, offering a way to improve their performance without a complete overhaul.
  • Robustness against diverse attacks: The method shows promise in detecting a wide range of adversarial attacks, including those with strong perturbations and universal perturbations.

Key Results

The proposed method demonstrates strong performance across various datasets and attack types:

  • High Detection Accuracy: Achieves detection accuracies of over 99% for FGSM and PGD attacks on MNIST and CIFAR-10.
  • Effective against Sophisticated Attacks: Shows high accuracy (e.g., 97.2% for DeepFool on MNIST) against optimization-based attacks.
  • Improved Existing Methods: The feature augmentation strategy can improve the accuracy of other detection methods.
  • Cross-Model Performance: Maintains good performance even when the detector is trained on examples generated by one model and tested on examples from another. For instance, on ImageNet with universal adversarial perturbations, the method achieves 98.2% detection accuracy.
  • Feature-Level Amplification: Experiments show that LHE can increase the feature difference between normal and adversarial examples from 26.5% to 73.4%, significantly improving discriminative power.

Limitations and Future Work

  • Parameter Tuning: The effectiveness of LHE and the high-pass filter depends on parameter selection (e.g., sliding window size, cut-off frequency). The paper provides guidance on optimal settings based on experiments.
  • I-FGSM Attack: The paper notes that the detector performs less optimally on I-FGSM attacks in cross-model scenarios. This is attributed to the very small perturbations generated by I-FGSM, which lead to more robust classification boundaries that are harder to distinguish.
  • Future Work: The authors suggest that this work can be considered for future perturbation removal studies, implying that the enhanced features could also be used to reconstruct cleaner images. They also highlight the potential for this method to be integrated into more complex defense pipelines.

Summary updated

BibTeX
@misc{yin2023adversarial,
  author = {Zhaoxia Yin and Shaowei Zhu and Hang Su and Jianteng Peng and Wanli Lyu and Bin Luo},
  title = {{Adversarial Examples Detection with Enhanced Image Difference Features based on Local Histogram Equalization}},
  year = {2023},
  eprint = {2305.04436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.04436},
}
Figure