TL;DR
PDCL-Attack is a novel generative framework that creates highly transferable adversarial examples by leveraging the semantic power of vision-language models like CLIP. By introducing prompt learning to the adversarial domain for the first time, the researchers generate perturbations that effectively deceive "black-box" models across entirely different architectures and data distributions.
What Problem Does This Paper Address?
Deep neural networks are notoriously vulnerable to adversarial attacks—small, intentional perturbations that cause misclassification. However, most attacks suffer from a "transferability" problem: an attack crafted to fool Model A often fails against Model B, especially if Model B has a different architecture or was trained on a different dataset (domain shift).
Existing "generative" attacks try to solve this by training a neural network to produce perturbations for any input image. While better than iterative methods, they still struggle to generalize to unknown domains (e.g., an attack trained on natural photos failing against sketches). The authors identify a gap in how these models use feature guidance: they often rely on narrow, model-specific features rather than broad, semantic ones.
Methods
The authors propose PDCL-Attack (Prompt-Driven Contrastive Learning), which utilizes the joint vision-language space of CLIP to guide the attack. The process happens in three phases:
- Phase 1: Prompt Context Training: Instead of using static text like "a photo of a dog," the authors train learnable context vectors ($[V_1][V_2]...[V_M]$). This "Prompter" is optimized to yield text features that are robust to distribution shifts, ensuring the semantic "anchor" remains strong even in new domains.
- Phase 2: Perturbation Generator Training: The generator ($G_\theta$) is trained using a combination of losses.
- Surrogate Loss ($\mathcal{L}_{surr}$): Standard mid-layer feature matching with a surrogate model (like VGG-16).
- PDCL Loss ($\mathcal{L}_{PDCL}$): A novel contrastive loss. It uses CLIP to "push" the adversarial image's features away from the ground-truth text features and "pull" them toward the features of a "least similar" (adversarial) class label.
- Phase 3: Inference: The trained generator is frozen and used to attack new, unseen images from unknown domains.
Datasets
- Training: ImageNet-1K.
- Cross-Domain Evaluation: CUB-200-2011 (birds), Stanford Cars, and FGVC Aircraft.
- Robustness Benchmarks: ImageNet-V2, ImageNet-Sketch, ImageNet-A, and ImageNet-R were used to validate the robustness of the learned prompts against distribution shifts.
Key Insights and Ideas
- Text as a Semantic Prototype: As shown in Figure 1, a single text label (e.g., "dog") acts as a central point in embedding space for many visual styles (photos, sketches, cartoons). By targeting this text feature, the attack becomes inherently more domain-agnostic.
- Learnable vs. Heuristic Prompts: The authors found that hand-crafted prompts often lead to domain-specific overfitting. Learnable prompts provide a more flexible and robust semantic guidance.
- Feature Separation: Unlike previous methods (like GAMA) that mix surrogate and CLIP features, PDCL-Attack treats them separately. This prevents "optimization conflict" between incompatible representation spaces, allowing the model to leverage the strengths of both.
Key Results
PDCL-Attack demonstrates state-of-the-art performance in both cross-domain and cross-model scenarios. In adversarial settings, a lower classification accuracy for the victim model indicates a better attack.
- Cross-Domain Superiority: On average across three datasets, PDCL-Attack reduced victim model accuracy to 43.91%, outperforming the previous best (GAMA) at 48.56%.
- Cross-Model Transferability: When attacking various architectures (ResNet, DenseNet, ViT) trained on ImageNet, PDCL-Attack achieved an average accuracy of 38.60%, compared to GAMA's 40.91%.
- Perceptual Quality: Interestingly, the prompt-driven guidance resulted in adversarial images with higher PSNR and SSIM scores, meaning the attacks are not only more effective but also less perceptible to the human eye than previous methods like BIA.
Limitations and Future Work
- Computational Cost: Training the generator with CLIP is intensive. PDCL-Attack takes approximately 33 hours to train on a single NVIDIA RTX A6000, nearly triple the time of simpler methods like BIA.
- Label Dependency: The method requires ground-truth class labels during the training phase for the text-driven guidance.
- Scope: The current evaluation is limited to image classification. The authors suggest that exploring CLIP’s generalizable features for other tasks (like object detection or segmentation) is a promising future direction.
Summary updated