Transfer Attack for Bad and Good: Explain and Boost Adversarial Transferability across Multimodal Large Language Models

Hao Cheng, Erjia Xiao, Jiayan Yang, Jinhao Duan, Yichi Wang, Jiahang Cao, Qiang Zhang, Le Yang, Kaidi Xu, Jindong Gu, Renjing Xu

TL;DR

This paper investigates adversarial transferability in Multimodal Large Language Models (MLLMs), finding it's most effective when models share the same vision encoder. They introduce two semantic-level data augmentation techniques, AIP and TATM, to significantly boost this transferability, demonstrating their utility in both harmful content insertion and information protection tasks.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are powerful tools that integrate vision and language, but they are also vulnerable to adversarial attacks. These attacks, often imperceptible to humans, can manipulate model outputs. A key challenge is adversarial transferability: whether an attack crafted for one MLLM will also work on another. Previous research has shown conflicting results on whether this transferability exists, especially across different MLLMs. This paper aims to clarify the conditions under which transferability occurs and to develop methods to enhance it, particularly for real-world applications with both negative (harmful content) and positive (information protection) societal impacts.

Methods

The authors first analyze the conditions for adversarial transferability in MLLMs. They discover that transferability is most prominent when the underlying vision encoders of the surrogate and victim models are the same (cross-LLM scenario), but less so when vision encoders differ (cross-MLLM scenario).

To boost transferability, they propose two novel semantic-level data augmentation methods:

  • Adding Image Patch (AIP): This method involves overlaying small image patches onto the original input image. These patches can introduce new semantic information without drastically altering the visual appearance.
  • Typography Augment Transferability Method (TATM): This technique injects typographic text (words) into the input image. This can distract or alter the model's interpretation of the visual content, influencing the language output.

These semantic-level augmentations are contrasted with traditional pixel-level augmentation methods (like rotation, cropping, brightness changes), which only modify pixel values. The authors argue that semantic-level methods better capture the cross-modal nature of MLLMs.

The paper also defines two task settings for evaluation:

  • Harmful Content Insertion: Generating adversarial examples that lead the MLLM to produce undesirable or harmful outputs (e.g., related to suicide).
  • Information Protection: Generating adversarial examples that prevent the MLLM from revealing sensitive information or that lead to a "protected" output (e.g., "unknown").

Datasets

The experiments were conducted using 300 images from the MS-COCO dataset. For TATM, a set of 68,250 words from the Open English WordNet was used as the typographic text source. For AIP, 300 images from MS-COCO were randomly selected as image patches.

Key Insights and Ideas

  • Vision Encoder is Key: Adversarial transferability in MLLMs is highly dependent on the vision encoder. When vision encoders are shared, transferability is strong; when they differ, it's significantly weaker. This suggests that the visual representation is a critical bottleneck for cross-model attacks.
  • Semantic Augmentation Wins: Semantic-level data augmentation (AIP and TATM) is significantly more effective at boosting adversarial transferability than traditional pixel-level methods. This highlights the importance of manipulating the meaning conveyed by the input, rather than just its pixel values, for MLLMs.
  • "Bad" and "Good" Attacks: The research demonstrates that these adversarial techniques can be applied to both malicious (harmful content insertion) and beneficial (information protection) purposes, showcasing the dual nature of adversarial attacks.
  • Typographic Attacks are Potent: TATM, in particular, shows strong performance, suggesting that subtle textual manipulations within an image can have a profound impact on MLLM outputs.

Key Results

  • Improved Transferability: AIP and TATM consistently achieved higher Attack Success Rates (ASR) and lower CLIP Scores (indicating greater semantic deviation from the original) compared to baseline methods across various victim models and target outputs. For instance, TATM achieved ASRs significantly higher than pixel-level methods in many cross-LLM scenarios.
  • Task Effectiveness: The proposed methods were effective for both harmful content insertion (e.g., targeting "suicide") and information protection (e.g., targeting "unknown").
  • Robustness to Defenses: TATM and AIP demonstrated strong transferability even when subjected to Gaussian Noise and Gaussian Blur defenses, outperforming pixel-level methods.
  • Efficiency: Generating adversarial examples using AIP and TATM is computationally efficient, taking only minutes, compared to adversarial training which can take hundreds of hours.

Limitations and Future Work

  • Cross-LLM Dependency: The paper reiterates that strong transferability is largely confined to models sharing the same vision encoder. This limits the effectiveness of these attacks against commercial, closed-source MLLMs where vision encoders are proprietary and unknown.
  • Future Work: The authors suggest exploring more sophisticated semantic-level augmentation strategies and investigating defenses against these advanced attacks. They also highlight the need to understand the transferability of adversarial examples to closed-source MLLMs, which remains a significant challenge.

Summary updated

BibTeX
@inproceedings{cheng2025transfer,
  author = {Hao Cheng and Erjia Xiao and Jiayan Yang and Jinhao Duan and Yichi Wang and Jiahang Cao and Qiang Zhang and Le Yang and Kaidi Xu and Jindong Gu and Renjing Xu},
  title = {{Transfer Attack for Bad and Good: Explain and Boost Adversarial Transferability across Multimodal Large Language Models}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755715},
}
Figure