Robust Feature-Level Adversaries are Interpretability Tools

Stephen Casper, Max Nadeau, Dylan Hadfield-Menell, Gabriel Kreiman

The Limits of Digital Noise

Most adversarial attacks in computer vision rely on tiny, pixel-level perturbations—often constrained by an $L_p$ norm. While these attacks successfully fool models like ResNet, they look like random static to humans. This creates a critical interpretability gap: we know the model is vulnerable, but the attack doesn't explain why in a human-understandable way.

To truly "debug" a model, we need adversaries that operate at the level of features—the same high-level concepts (textures, shapes, objects) that humans use to parse the world. If a model misclassifies a bee as a fly because of a specific red-and-green circular pattern, that reveals a spurious association in the model's internal logic that a cloud of pixel noise cannot.

Generating Feature-Level Attacks

The authors introduce a fully-differentiable pipeline to generate perceptible, feature-level attacks. Instead of tweaking pixels directly, they perturb the latent representations of a pre-trained image generator (BigGAN). This ensures the resulting attack looks like a coherent visual feature rather than static.

The method produces three types of attacks:

  1. Patch: A square, generator-produced patch inserted into a natural image.
  2. Region: Modifying a localized section of the generator's latent space to create a specific feature.
  3. Generalized Patch: Extracting the specific pixels changed by a region attack to create a custom-shaped overlay.

The "secret sauce" of this approach is "Disguise" Regularization. To make the attacks interpretable, the authors add loss terms forcing the adversarial feature to look realistic (via a GAN discriminator) and resemble a specific, recognizable class (via an auxiliary classifier), without looking like the target class itself.

Adversaries as Debuggers

This paper shifts the paradigm of adversarial examples from mere "security threats" to powerful "interpretability tools." By forcing attacks to be human-describable, they become testable hypotheses about a model's biases.

For example, the authors discovered that adding features resembling traffic lights or colorful balls could reliably trick a model into classifying a "bee" as a "fly." To validate this, they designed a Copy/Paste Attack: they took a natural image of a traffic light and pasted it onto a bee, successfully triggering the predicted misclassification.

Comparison of pixel-level, feature-level, and copy/paste attacks on a bee image.

Unprecedented Versatility and Robustness

Unlike pixel-noise attacks, which are notoriously brittle and often break under physical transformations (like printing or rotating), these feature-level attacks are highly robust. They maintain effectiveness across different backgrounds, lighting conditions, and even in physical-world realizability tests (e.g., printing the patch and photographing it next to an object).

The method successfully produces targeted, universal (working across any image), and disguised attacks at the ImageNet scale. As shown in the literature comparison, this combination of capabilities is uniquely versatile compared to prior adversarial methods.

Table comparing the capabilities of various adversarial attack methods.

Limitations and Future Directions

While powerful, the approach has limitations:

  • Generator Bottleneck: The variety of discoverable bugs is limited by what the BigGAN generator can synthesize. If the generator cannot "imagine" a feature, the tool cannot find that specific bug.
  • Optimization Complexity: Balancing attack efficacy, realism, and disguise makes the optimization process slower and more sensitive than standard attacks.
  • Human-in-the-Loop: A human must still interpret the generated feature (e.g., recognizing it as a "traffic light"). Future work aims to automate this discovery and labeling process.

Ultimately, these feature-level adversaries offer a promising path forward. By understanding the spurious high-level associations models rely on, researchers can develop more robust, sensible computer vision systems—potentially using these very features for adversarial training.

Summary updated

BibTeX
@inproceedings{casper2022robust,
  author = {Stephen Casper and Max Nadeau and Dylan Hadfield-Menell and Gabriel Kreiman},
  title = {{Robust Feature-Level Adversaries are Interpretability Tools}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=FgG3cXNcOn},
}
Figure