Abstract
The literature on adversarial attacks in computer vision typically focuses on pixel-level perturbations. These tend to be very difficult to interpret. Recent work that manipulates the latent representations of image generators to create "feature-level" adversarial perturbations gives us an opportunity to explore perceptible, interpretable adversarial attacks. We make three contributions. First, we observe that feature-level attacks provide useful classes of inputs for studying representations in models. Second, we show that these adversaries are uniquely versatile and highly robust. We demonstrate that they can be used to produce targeted, universal, disguised, physically-realizable, and black-box attacks at the ImageNet scale. Third, we show how these adversarial images can be used as a practical interpretability tool for identifying bugs in networks. We use these adversaries to make predictions about spurious associations between features and classes which we then test by designing "copy/paste" attacks in which one natural image is pasted into another to cause a targeted misclassification. Our results suggest that feature-level attacks are a promising approach for rigorous interpretability research. They support the design of tools to better understand what a model has learned and diagnose brittle feature associations.
Introduction: Beyond Invisible Noise
Most adversarial attacks in computer vision rely on tiny, pixel-level perturbations that are essentially invisible to humans. While effective at breaking models, these attacks are "uninterpretable": they look like random noise and don't tell us why the model was fooled. In nature, biological "adversaries" like the eyespots on a butterfly's wings are high-level, robust features that work across different backgrounds and lighting.
This paper aims to bridge that gap by creating adversarial attacks that are human-comprehensible. By doing so, they transform adversarial attacks from mere security threats into "interpretability tools" that help researchers diagnose "bugs" in how a model perceives the world. By perturbing the latent space of generative models, the authors create robust, "disguised" attacks that serve as powerful diagnostic tools for uncovering and validating spurious associations in neural networks.
Methods: Attacking Latent Representations
The core innovation is attacking the latent representation of an image generator (like BigGAN) rather than the raw pixels of a target image. This allows for the creation of perceptible features that the model misinterprets.
The authors propose three main methods for generating these features:
- Patch: Inserting a generated square patch into a natural image.
- Region: Replacing a specific column of the generator's latent space to create a localized feature.
- Generalized Patch: Using pixel-level differences to extract a custom-shaped mask for the adversarial feature.
To ensure the features are interpretable but not just "cheating" (e.g., putting a tiny picture of a fly to make a model see a fly), they use a multi-part loss function. This includes a GAN discriminator to keep the feature looking "realistic" and an auxiliary classifier to ensure the feature looks like a specific "disguise" class (e.g., a traffic light) rather than the target class (e.g., a fly).
Key Results and Versatility
The proposed method successfully produced targeted, universal, and disguised attacks at the ImageNet scale—a feat many previous latent-space attacks struggled with. The versatility of this approach is highlighted by its ability to satisfy multiple criteria simultaneously, which is rare in the existing literature.
Key findings include:
- Physical Realizability: When printed and photographed, the mean effectiveness of the attacks dropped by less than half (maintaining a mean target confidence of 0.312), proving they aren't just digital artifacts.
- Black-Box Transfer: Attacks generated against an ensemble of models successfully transferred to held-out models, reaching confidences over 0.1 on average.
- Effective Defense: Training models on these feature-level adversaries (adversarial training) improved binary classification accuracy by an average of 42% across various class pairs, suggesting these attacks are a viable path toward more robust AI.
Discussion: Adversaries as Diagnostics
If a model thinks "Bee + Colorful Circles = Fly," that's a bug. These attacks reveal that models often rely on "spurious associations"—brittle shortcuts that don't align with human logic. Unlike pixel-noise, these feature-level attacks are "universal" (they work on many different source images) and "physically realizable." This robustness suggests they've captured a fundamental "misunderstanding" in the model's representation.
The most compelling validation is the "Copy/Paste" proof. Once an adversarial feature is generated, humans analyze it for motifs. They then test the insight by taking a real, natural image of the identified feature and pasting it into a new context. If pasting a real photo of a traffic light onto a bee causes the model to see a fly, it proves the researcher has successfully diagnosed a specific feature association bug.
Currently, identifying the "motif" in an adversarial patch to design a copy/paste attack requires a human. The authors suggest that automating this discovery process is a critical next step for scaling this type of model debugging.
Summary updated