TL;DR
The authors introduce GAKer (Generalized Adversarial attacKER), a generator-based framework that creates targeted adversarial examples for any object class, including those never seen during training. By "infecting" the latent representation of a source image with features from a target image, GAKer achieves significantly higher attack success rates on unknown classes than previous state-of-the-art methods.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are notoriously vulnerable to targeted adversarial attacks—perturbations that trick a model into misclassifying an image as a specific "target" class. However, most existing attacks have a major limitation: they only work for "known" classes (those present in the attacker's training set).
If you want to trick a model into seeing a "totem pole" but your attack generator was only trained on "cats" and "dogs," it will likely fail. This lack of generalization limits our ability to fully assess the vulnerabilities of DNNs. The challenge is creating a "class-agnostic" attacker that can generalize the concept of a targeted attack to any arbitrary object.
Methods
The core innovation of GAKer is a process the authors call Generalized Latent Infection. Instead of training a generator to map a source image to a specific class label, GAKer learns to "infect" the source image's features with the features of a target image.
- Feature Extraction: A frozen, pretrained model (like a ResNet) acts as a feature extractor ($F_\psi$), pulling high-level representations from both the source image ($x_s$) and a chosen target image ($x_t$).
- Latent Injection: These target features are passed through a Feature Transform Module (FTM) and a Dimension Matching Module (DMM). These modules inject the target's "essence" into the intermediate layers (ResBlocks) of a UNet-based generator.
- Optimization: The generator is trained using a cosine distance loss. It aims to minimize the distance between the features of the generated adversarial image and the features of the target image. Crucially, it also minimizes the distance between the perturbation itself and the target features, ensuring the "attack" carries the target's signature.
- Class-Agnosticism: Because the model learns to manipulate feature distributions rather than specific class boundaries, it can handle images from classes it has never encountered before.
Datasets
The authors utilized the ImageNet dataset for both training and evaluation. To test generalization, they split the dataset into:
- Known Classes: 200 classes used during the training of the GAKer generator.
- Unknown Classes: The remaining 800 classes, used only during the inference/testing phase to evaluate the model's ability to generalize.
Key Insights and Ideas
- Images over Labels: Traditional generators use one-hot labels (e.g., "Class 42") as input. GAKer uses images as targets. This provides much richer visual information, preventing the generator from simply memorizing class-specific shortcuts and forcing it to learn a general "infection" mechanism.
- Feature-Space Dominance: The attack succeeds because the generator learns to make the target's features dominate the adversarial image's representation in the latent space, even while the image remains visually consistent with the source to a human eye.
- Cross-Architecture Vulnerability: A surprising "aha" moment is that GAKer, even when trained on a simple surrogate model like ResNet-50, can successfully attack much larger and more complex "foundation" models like CLIP or Large Vision-Language Models (LVLMs). This suggests that different DNN architectures share common latent vulnerabilities.
Key Results
GAKer demonstrates a significant leap in performance over existing generative attacks like HGN and ESMA:
- Unknown Classes: GAKer achieved an approximately 14.13% higher attack success rate (ASR) for unknown classes compared to other generative methods.
- Known Classes: It also improved ASR for known classes by about 4.23%.
- Efficiency: Unlike some methods that require training a new model for every target class, GAKer requires only one training process. It is roughly 100x faster to deploy for new classes than class-specific methods like TTP.
- Attacking LVLMs: In tests against state-of-the-art models like LLaVA and GPT-4V, GAKer successfully tricked the models into describing the adversarial image as the target object (e.g., seeing a "totem pole" in an image of a horse).
Limitations and Future Work
The authors acknowledge a persistent performance gap: while GAKer is the best at attacking unknown classes, its success rate on those classes is still lower than its success rate on known classes. Future work will focus on analyzing the underlying reasons for this gap to further improve generalization. Additionally, while the attack is highly effective in black-box settings, the authors note that defense-trained models still offer some resistance, indicating a continued "arms race" between attack and defense strategies.
Summary updated