Abstract
As Vision Large Language Models (VLLMs) become integrated into safety-critical applications, their vulnerability to adversarial manipulation poses a significant security risk. This paper explores the transferability of targeted adversarial attacks from open-source surrogate models to proprietary black-box systems like GPT-4o, Gemini, and Claude. By employing a novel image-to-image contrastive loss and rigorous regularization techniques, the authors demonstrate that even the most advanced VLLMs can be consistently deceived into generating specific, attacker-defined outputs.
Introduction
The security of VLLMs is paramount as they are increasingly deployed in fields such as healthcare and autonomous driving. While adversarial vulnerabilities are well-documented in white-box settings, attacking proprietary "black-box" models via APIs remains a challenge. Previous transfer-based attacks often failed to achieve high success rates for targeted objectives. This research addresses this gap by developing a robust pipeline for generating highly transferable adversarial images that exploit the shared visual representations across different model architectures.
Methodology: Bridging the Transferability Gap
To ensure adversarial perturbations transfer effectively without overfitting to the surrogate models, the authors introduced several key innovations:
- Ensemble of Surrogates: Attacks are optimized across multiple open-source models, including CLIP variants and DINOv2, to capture a broader range of visual features.
- Visual Contrastive Loss: Instead of relying on text-image alignment, the optimization uses an image-to-image contrastive loss. The perturbed image is forced to match the visual embeddings of target images while being pushed away from negative examples.
- Model Regularization: Techniques like DropPath and PatchDrop (dropping 20% of visual patches) are used during optimization to prevent the noise from exploiting model-specific artifacts.
- Robust Preprocessing Simulation: To survive real-world API pipelines, the optimization includes a Random JPEGify step and various augmentations (cropping, padding, Gaussian noise), ensuring the attack remains effective after image compression.
Experimental Results
The effectiveness of the proposed attack was evaluated across image captioning, visual question answering (VQA), and text recognition tasks using datasets like the NIPS 2017 Adversarial Learning Challenges and the Retail Receipt Dataset.
Targeted Image Captioning
The attack achieved remarkable success rates. On GPT-4o, the targeted Attack Success Rate (ASR) reached 94.4%, while Gemini 1.5 Pro showed an 86.1% ASR. Claude 3.5 Sonnet proved more resilient but still succumbed to the attack with a 58.7% ASR.
Visual Question Answering and Text Recognition
In VQA tasks, the attack tricked GPT-4o into answering based on a completely different target image 93.3% of the time. Text recognition proved more difficult, requiring a higher perturbation bound ($\epsilon=32/255$) to achieve a 52.5% ASR on GPT-4o, often making the noise visible to the human eye.
Key Insights
- Visual Similarity over Textual Alignment: Optimizing against image embeddings is significantly more effective for transferability than using text prompts, as it targets the fundamental visual encoder.
- The Role of JPEG Compression: Incorporating JPEG simulation aligns the adversarial noise with the low-frequency features models prioritize, making the attack more robust against standard API preprocessing.
- Claude's Unique Robustness: Anthropic's models consistently outperformed others in robustness, suggesting a visual training pipeline that deviates significantly from standard CLIP-based surrogates.
Conclusion
The high success rates of these black-box attacks reveal a critical vulnerability in current multimodal systems. There is an urgent need for the development of specialized defense mechanisms, such as adversarial training or input purification, to secure VLLMs before their widespread adoption in safety-critical domains.
Summary updated