Interpreting Adversarial Examples with Attributes

Sadaf Gulshad, Jan Hendrik Metzen, Arnold W. M. Smeulders, Zeynep AkataarXiv 2019

Abstract

Deep neural networks are highly susceptible to adversarial attacks, where small, imperceptible perturbations lead to confident misclassifications. Traditional interpretability methods, such as saliency maps, often fail to distinguish between clean and adversarial inputs. This paper introduces a novel framework that utilizes semantic attributes to explain model decisions. By mapping images to a high-dimensional attribute space and attempting to ground these attributes visually, the authors reveal that adversarial noise causes models to "hallucinate" features that are not present in the image. This "grounding gap" provides a human-understandable diagnostic for adversarial vulnerability.

Introduction: The Need for Semantic Transparency

Deep neural networks (DNNs) have achieved remarkable success in computer vision but remain notoriously fragile. A tiny amount of carefully crafted noise can cause a model to misclassify a bird as a boat with high confidence. While the existence of these adversarial examples is well-documented, understanding why a model is fooled remains a challenge.

Existing interpretation tools, such as saliency maps or heatmaps, highlight pixels that contribute most to a prediction. However, in the context of adversarial attacks, these maps often look identical for both clean and attacked images, despite the model's output changing drastically. This paper addresses this limitation by moving toward semantic transparency—providing justifications for model behavior using human-understandable attributes like "red belly" or "blue head."

Methods: Attribute Prediction and Grounding

The authors propose a two-step framework designed to expose the internal "reasoning" of the model during an attack.

1. Attribute Prediction via Structured Joint Embeddings (SJE)

Instead of a standard Softmax classifier that outputs a simple class label, the framework employs Structured Joint Embeddings (SJE). SJE learns a mapping from the image feature space into a high-dimensional "attribute space." For instance, when processing an image of a bird, the model predicts a vector representing a suite of attributes (e.g., "red belly," "blue head," "green wing"). This allows the model to describe what it sees rather than just providing a label.

2. Attribute Grounding

To verify if the model's predictions are based on actual visual evidence, the framework includes an Attribute Grounder. Using a pre-trained Faster R-CNN, the system attempts to locate the predicted attributes within the image. If the model predicts a "red belly," the grounder tries to draw a bounding box around the corresponding region in the pixels.

3. Adversarial Evaluation

The framework is tested against the Iterative Fast Gradient Sign Method (IFGSM). The authors also investigate how Adversarial Training—incorporating noisy images into the training set—affects the model's ability to ground its semantic predictions.

Datasets

The study utilizes three benchmark datasets that include manual attribute annotations, essential for training the SJE and evaluating grounding:

  • Animals with Attributes 2 (AwA2): 37,322 images across 50 classes with 85 attributes.
  • Large Attribute Dataset (LAD): 78,017 images across 230 classes with 359 attributes.
  • Caltech UCSD Birds (CUB): A fine-grained dataset of 11,788 images, 200 bird species, and 312 attributes.

Key Insights: The Grounding Gap

The core finding of the paper is that adversarial noise acts as a semantic shift. The noise does not merely "break" the model; it systematically shifts the predicted attribute vector toward a target (wrong) class.

A critical discovery is the "Grounding Gap." In clean images, predicted attributes are typically easy to ground. However, in adversarial images, the model predicts attributes belonging to the incorrect class. Because the visual evidence for these attributes does not exist in the pixels, the grounding mechanism fails. This discrepancy—predicting a feature but being unable to find it—is a clear indicator of an adversarial hallucination.

Comparison of attribute grounding for clean vs. adversarial images. In the adversarial case, the model predicts attributes like "Red Head" for a blackbird, which the grounder cannot find, exposing the model's error.

Furthermore, the authors found that SJE is inherently more robust than standard Softmax classifiers on fine-grained datasets like CUB. Reasoning through semantic constraints appears to provide a natural defensive advantage against small perturbations.

Key Results and Robustness

  • Accuracy Recovery: On the AwA2 dataset, adversarial training significantly improved robustness, raising accuracy on untargeted attacks from ~5% to ~83% (at epsilon = 0.12).
  • Semantic Consistency: Adversarial training does more than just correct the final label; it restores the model's "reasoning" by pulling predicted attributes back toward the ground truth, thereby closing the grounding gap.
  • Performance Advantage: Under small perturbations (epsilon = 0.025) on the CUB dataset, the SJE model maintained approximately 30% higher accuracy than a non-explainable Softmax baseline.

Limitations and Future Outlook

While promising, the approach has several limitations:

  • Annotation Cost: The method requires detailed attribute labels, which are expensive to produce for new domains.
  • Grounder Dependency: The interpretation's reliability is tied to the performance of the attribute grounder (Faster R-CNN). A grounder failure might be misinterpreted as an adversarial attack.
  • Adaptive Attacks: The current study assumes an attacker targeting the classifier label. Future work must consider "double-targeted" attacks designed to fool both the classification and the semantic interpretation mechanism.

This research highlights that by forcing models to "explain" themselves through grounded attributes, we can better detect and understand the deceptive nature of adversarial examples.

Summary updated

BibTeX
@misc{gulshad2019interpreting,
  author = {Sadaf Gulshad and Jan Hendrik Metzen and Arnold W. M. Smeulders and Zeynep Akata},
  title = {{Interpreting Adversarial Examples with Attributes}},
  year = {2019},
  eprint = {1904.08279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.08279},
}
Figure