Introduction
Large-scale multimodal pre-trained encoders, such as CLIP (Contrastive Language-Image Pre-training), have become the bedrock of modern computer vision and natural language processing. These models are typically pre-trained on massive datasets and then fine-tuned for specific downstream tasks like image classification or cross-modal retrieval. Due to the scale of training data and the inherent "modality gap" between text and images, these foundation models were often perceived to possess an "illusion of security"—a belief that they are naturally robust against adversarial attacks.
AdvCLIP challenges this assumption by introducing the first "downstream-agnostic" adversarial attack framework. It generates universal adversarial patches that can successfully fool multiple unknown downstream tasks without requiring knowledge of the specific dataset or task architecture.
Methodology: Disrupting Feature Space Topology
The core innovation of AdvCLIP is its focus on disrupting the topological relationships within the feature space rather than simply targeting individual class labels. The framework utilizes a topology-deviation based generative adversarial network (GAN) to produce universal patches.
1. Topological Graph Construction
Instead of a standard adversarial objective, AdvCLIP constructs a graph representing the "neighborhood" of an image in the embedding space. By analyzing how a target image relates to its neighbors, the attack can identify how to best disorder the feature space. If the model can no longer tell which images are "neighbors," retrieval and classification tasks fall apart.
2. Multi-Objective Optimization
The generator is trained using a combination of four distinct loss functions:
- Adversarial Loss: Maximizes the distance between paired image and text embeddings.
- Topology-Deviation Loss: The primary mechanism for disrupting relative sample positions, creating a disordered feature space.
- Quality and GAN Losses: Ensure the generated patch remains stealthy and appears "natural" to bypass simple detection mechanisms.
Experimental Evaluation
The authors conducted an extensive evaluation of AdvCLIP across a wide range of scenarios to test its universality and transferability. They utilized diverse datasets for cross-modal retrieval (Wikipedia, Pascal-Sentence, NUS-WIDE, XmediaNet) and image classification (CIFAR10, GTSRB, ImageNet, STL10). The victim models included five distinct CLIP backbones, ranging from traditional ResNet architectures (ResNet50, ResNet101) to modern Vision Transformers (ViT-B/16, ViT-B/32, ViT-L/14).
Key Findings:
- High Fooling Rates: AdvCLIP achieved an average Fooling Rate (FR) exceeding 70% in image classification tasks, leading to accuracy drops of over 55%. This demonstrates that a single patch can effectively neutralize the classification capabilities of a foundation model across multiple domains.
- Retrieval Sabotage: In cross-modal retrieval (both image-to-text and text-to-image), AdvCLIP significantly outperformed existing universal attacks like UAP or Adv-Patch. In many cases, it doubled or tripled the Attack Success Rate (ASR), effectively breaking the semantic link between modalities.
- Architecture Vulnerability: Interestingly, Vision Transformer (ViT) architectures were found to be more susceptible to these adversarial patches compared to traditional ResNet-based models. This suggests that the attention mechanisms in Transformers might be particularly vulnerable to localized topological disruptions.
- Robustness to Fine-tuning: A critical finding is that fine-tuning does not act as a shield. Even when models are fine-tuned on private, task-specific data, the AdvCLIP patch remains effective. By pushing features deep into "no man's land" within the embedding space, the attack bypasses the decision boundaries established during the fine-tuning process.
- Defense Resistance: The attack was tested against common defensive strategies, including Gaussian noise corruption, model pruning, and adversarial training. AdvCLIP remained remarkably resilient, particularly against pruning and corruption, proving that standard unimodal defenses are insufficient for the unique geometry of multimodal encoders.
Conclusion and Future Work
AdvCLIP demonstrates that the perceived robustness of multimodal foundation models is fragile. Standard unimodal defenses prove insufficient against attacks that exploit the unique geometry of multimodal feature spaces. This research highlights an urgent need for the AI safety community to develop new defense mechanisms specifically tailored for the topological complexities of contrastive learning models. Future work may extend these concepts to "text-side" universal triggers or focus on making adversarial patches even more semantically subtle.
Summary updated