Deep neural network loses attention to adversarial images

Shashank Kotyan, Danilo Vasconcellos Vargas

Introduction

Adversarial attacks—carefully crafted inputs designed to deceive neural networks—pose a significant challenge to the reliability of AI systems. While the effectiveness of these attacks is well-documented, the internal mechanisms by which they subvert a model's decision-making process remain partially obscured. This research investigates the "conflicting saliency" hypothesis: the idea that adversarial perturbations work by hijacking or diffusing the network's focus, leading to systematic misclassification.

Methodology

The study utilizes a ResNet architecture trained on the CIFAR-10 dataset. To probe the model's internal state, researchers compared two distinct adversarial strategies:

  1. Pixel Attack ($L_0$ norm): A black-box approach that modifies a minimal number of pixels with high intensity.
  2. Projected Gradient Descent (PGD, $L_\infty$ norm): A white-box attack that applies subtle, widespread perturbations across the entire image.

The model's internal "attention" was visualized using Saliency Maps (SM) and Gradient-weighted Class Activation Mapping (Grad-CAM). These tools reveal which regions of an input image most influence the final classification by tracing gradients back through the network.

Overview of the saliency map generation process for original and adversarial images.

Key Insights: Shifting vs. Diffusing Attention

The research identifies two primary ways adversarial attacks manipulate model attention, depending on the nature of the perturbation:

The "Look at Me" Effect (Pixel Attacks)

In sparse attacks like the Pixel Attack, the network's attention is physically diverted. Saliency maps demonstrate that the model's focus shifts from the actual object (e.g., a ship) directly to the specific perturbed pixels. These pixels act as a form of "misdirection," pulling the network's internal representation toward an incorrect class by creating a new, dominant focal point.

The "Fog" Effect (PGD Attacks)

In contrast, dense attacks like PGD do not necessarily create a new focal point. Instead, they "diffuse" the model's attention. The perturbations effectively destroy the clear activation maps associated with the true class, spreading the model's focus until the original features are no longer recognizable. This "surgical" interference manipulates internal layer activations to sabotage the correct classification without introducing obvious visual artifacts.

Results and Discussion

Qualitative analysis of the saliency maps confirms that different attacks distort attention in fundamentally different ways.

Comparison of saliency maps for Pixel Attacks and PGD Attacks across various CIFAR-10 classes.

As shown in the visual results, Pixel Attacks (top rows) create highly localized saliency peaks at the site of the perturbation. PGD Attacks (bottom rows) result in a much more scattered and "blurry" saliency distribution for the true class. This suggests that a single defensive strategy may not be sufficient to counter both types of attention distortion; a defense that fixes "blurry" attention might still be vulnerable to "diverted" attention.

Conclusion

This study provides visual evidence that adversarial attacks succeed by creating conflicting saliency. By either diverting or diffusing the network's focus, these attacks prevent the model from identifying the correct features. Future research should extend this analysis to high-resolution datasets like ImageNet and explore how these patterns manifest in newer architectures like Vision Transformers (ViTs), which handle attention mechanisms differently than convolutional networks.

Summary updated

BibTeX
@inproceedings{kotyan2021deep,
  author = {Shashank Kotyan and Danilo Vasconcellos Vargas},
  title = {{Deep neural network loses attention to adversarial images}},
  booktitle = {AISafety @ IJCAI},
  year = {2021},
  url = {https://openreview.net/forum?id=DLJFE_i83P2},
}
Figure