Searching for the Essence of Adversarial Perturbations

Dennis Y. Menn, Hung-yi LeearXiv 2022

Abstract

Neural networks have demonstrated state-of-the-art performance in various machine learning fields. However, the introduction of malicious perturbations in input data, known as adversarial examples, has been shown to deceive neural network predictions. This poses potential risks for real-world applications such as autonomous driving and text identification. In order to mitigate these risks, a comprehensive understanding of the mechanisms underlying adversarial examples is essential. In this study, we demonstrate that adversarial perturbations contain human-recognizable information, which is the key conspirator responsible for a neural network's incorrect prediction, in contrast to the widely held belief that human-unidentifiable characteristics play a critical role in fooling a network. This concept of human-recognizable characteristics enables us to explain key features of adversarial perturbations, including their existence, transferability among different neural networks, and increased interpretability for adversarial training. We also uncover two unique properties of adversarial perturbations that deceive neural networks: masking and generation. Additionally, a special class, the complementary class, is identified when neural networks classify input images. The presence of human-recognizable information in adversarial perturbations allows researchers to gain insight into the working principles of neural networks and may lead to the development of techniques for detecting and defending against adversarial attacks.

Introduction

Since their discovery in 2013, adversarial perturbations—tiny, often invisible changes to an image that cause a neural network to misclassify it—have remained a significant mystery. Historically, researchers have viewed these perturbations as high-dimensional noise or "non-robust features" that are imperceptible to humans. However, this "noise" explanation fails to fully account for critical phenomena such as transferability—where an attack designed for one model successfully fools another—and why adversarial training often results in model gradients that resemble real objects.

Adversarial examples often appear identical to the original image to the human eye, yet they completely deceive neural networks.

This study seeks the "essence" of these perturbations to understand the underlying mechanism that tricks a network's judgment. We propose that contrary to popular belief, adversarial perturbations actually contain human-recognizable information.

Methodology: Extracting the Signal

To reveal the underlying signal within a perturbation, we introduced a technique called MM+G (Multiple Models + Gaussian noise). This method is designed to strip away model-specific artifacts and random noise.

The process involves three key steps:

  1. Multiple Models: Perturbations are generated using an ensemble of 270 different source models.
  2. Gaussian Noise: Inspired by the SmoothGrad technique, Gaussian noise is applied to input images before calculating perturbations.
  3. Averaging: By averaging perturbations across these variations, random and model-specific noise is canceled out, leaving the core signal.

We evaluated this approach using three major attack algorithms—BIM (Basic Iterative Method), CW (Carlini & Wagner), and DeepFool—across standard architectures including VGG16, ResNet50, and DenseNet121. Experiments were primarily conducted on the ImageNet dataset, with additional verification on CIFAR10 and MNIST.

Key Insights: Masking and Generation

Our analysis identifies two primary mechanisms through which perturbations operate: Masking and Generation. Masking acts as a "negative" of the original object, effectively subtracting the features that help a model identify it. Generation, conversely, adds features characteristic of a target class.

Comparison of standard perturbations (SM) and the proposed MM+G method across different attack algorithms. The MM+G method reveals human-recognizable features of the original objects.

When the "essence" of a perturbation is extracted via MM+G, it becomes legible. In our tests, humans could identify "masked" objects in the perturbations with 80.7% accuracy. This recognizability explains transferability: because different neural networks rely on similar recognizable features (like tires or wings) to classify images, a perturbation that successfully masks these features for one model is highly likely to work on another.

Results and Implications

The MM+G method produced devastatingly effective attacks. For the BIM attack on ImageNet, the average accuracy of testing models plummeted from 81.8% to just 13.2%. Visual evidence clearly shows the silhouette and fins of a shark or the outlines of a frog within the perturbations themselves.

Furthermore, we discovered the existence of "Complementary Classes." When shown pure Gaussian noise, neural networks gravitate toward specific base classes like "window screen" or "chain mail," which contain fundamental geometric patterns. This suggests that networks use these patterns as a baseline for classification.

Conclusion

By demonstrating that adversarial perturbations are not merely noise but contain recognizable information, this research provides a new lens through which to view neural network vulnerabilities. While the MM+G method is computationally expensive, its ability to reveal the "essence" of attacks is a significant step forward in understanding the working principles of neural networks and may lead to more robust defense mechanisms.

Summary updated

BibTeX
@misc{menn2022searching,
  author = {Dennis Y. Menn and Hung-yi Lee},
  title = {{Searching for the Essence of Adversarial Perturbations}},
  year = {2022},
  eprint = {2205.15357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.15357},
}
Figure