TL;DR
This paper explores adversarial transferability in Multimodal Large Language Models (MLLMs), revealing that attacks transfer effectively primarily when models share the same vision encoder architecture. To exploit this, the authors introduce two novel semantic-level data augmentation techniques—Adding Image Patch (AIP) and Typography Augment Transferability Method (TATM)—that significantly boost attack success rates across different models. They demonstrate these techniques on both malicious tasks (harmful content insertion) and defensive applications (privacy protection).
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) integrate vision encoders (like CLIP) with Large Language Models (LLMs) to understand both images and text. While highly capable, they are vulnerable to adversarial attacks—human-imperceptible image perturbations designed to trick the model into generating specific, incorrect, or harmful text outputs.
A critical question in AI safety is adversarial transferability: can an attack generated on a known "surrogate" model successfully fool a completely unknown "victim" model? Prior literature has offered conflicting answers. This paper clarifies exactly when transferability occurs in MLLMs and introduces methods to amplify it, shedding light on how both attackers and defenders might manipulate these models in the real world.
Methods
The authors discover that adversarial transferability is highly dependent on the vision encoder. When the vision encoder is held constant across models, attacks transfer easily even if the LLM backbones differ (a "cross-LLM" or gray-box scenario).
To boost transferability further, they move away from traditional pixel-level data augmentations (like flipping, rotating, or cropping) and propose semantic-level data augmentation during the attack optimization process:
- Adding Image Patch (AIP): Randomly blends external image patches into the input image.
- Typography Augment Transferability Method (TATM): Overlays random typographic text onto the input image.
By introducing external semantic concepts, these methods prevent the adversarial perturbation from overfitting to the surrogate model's specific quirks. For the hardest "total black-box" scenario (where vision encoders differ entirely), the authors combine these augmentations with an ensemble method that averages gradients across multiple distinct vision encoders.
Datasets
The experiments relied on the following resources:
- MS-COCO: 300 images selected to generate and evaluate the adversarial examples.
- Open English WordNet: A dataset of 68,250 words used to sample random text strings for the TATM typographic overlays.
- Claude-3.5-Sonnet: Used to generate 100 diverse prompt variants of "describe the image" to ensure the generated attacks were robust to variations in user queries (cross-prompt inference).
Key Insights and Ideas
- The Vision Encoder Bottleneck: MLLM transferability is highly asymmetric. If two models share an identical vision encoder, breaking one effectively breaks the other. If the vision encoders differ, transferability drops sharply unless explicit ensemble strategies are used.
- Semantic Shifts Outperform Pixel Shifts: Using Principal Component Analysis (PCA) to map the embedding space, the authors show that pixel-level augmentations only cause minor directional shifts. Semantic augmentations (AIP and TATM) cause much larger angular deviations, forcing the optimization process to find fundamentally more robust adversarial perturbations.
- A Double-Edged Sword: The authors frame transferability through two lenses: "Bad" (Jailbreaking/Harmful Content Insertion, such as forcing a model to output the word "suicide") and "Good" (Information Protection, such as forcing a model to output "unknown" to protect private user imagery from being scraped or indexed by AI).
Key Results
- Significant Attack Success: In cross-LLM setups, TATM dramatically increased the Attack Success Rate (ASR). For example, when attacking an InstructBLIP victim model using an attack crafted on a surrogate model, TATM boosted the ASR from a baseline of 0.196 to 0.588.
- Resilience to Standard Defenses: The semantic attacks remained highly effective even when victim models used common image defenses like Gaussian Noise or Gaussian Blur.
- Asymmetry in Defense Costs: While adversarial training of the vision encoder successfully defended against these attacks, it highlighted a massive resource disparity: generating a semantic adversarial attack takes only a few minutes, whereas adversarially training a single MLLM requires roughly 786 hours on an NVIDIA A100 GPU.
Limitations and Future Work
The primary limitation acknowledged by the authors is the Closed-Source Barrier. Because commercial MLLMs like GPT-4o, Gemini, and Claude use proprietary, hidden vision encoders, adversarial examples generated on open-source surrogates fail to transfer to them effectively. The authors note that future research must focus on achieving true black-box transferability that can bypass completely unknown, proprietary vision architectures.
Summary updated