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

Hao Cheng, Erjia Xiao, Jiahang Cao, L. Yang, Kaidi Xu, Jindong Gu, Renjing Xu, Yang, Le, Xu, Kaidi, Gu, Jindong, Xu, Renjing · DOI

Abstract

Multimodal Large Language Models (MLLMs) demonstrate exceptional performance in cross-modality interaction, yet they also suffer from adversarial vulnerabilities. In particular, the transferability of adversarial examples—where an attack generated on one model successfully fools another—remains a challenge. This paper identifies the vision encoder as a key factor influencing transferability and introduces two semantic-level data augmentation methods: Adding Image Patch (AIP) and Typography Augment Transferability Method (TATM). These methods significantly boost the transferability of adversarial examples across MLLMs for both harmful content insertion and information protection tasks.

Introduction

MLLMs like LLaVA and InstructBLIP combine vision encoders with Large Language Models (LLMs) to process visual and textual data. While powerful, these models are susceptible to adversarial images—inputs modified with subtle noise to trigger specific, often undesirable, model outputs. A critical security concern is adversarial transferability: the ability of an attack crafted against a known surrogate model to succeed against a black-box victim model.

Adversarial transferability in MLLMs can be used for both harmful content insertion and information protection.

This research explores transferability in two distinct scenarios: "Harmful Content Insertion" (forcing the model to output dangerous words like "suicide") and "Information Protection" (forcing the model to output "unknown" to mask private data).

The Vision Encoder Bottleneck

The authors discovered that adversarial transferability in MLLMs is highly dependent on the vision encoder. If the surrogate and victim models share the same vision encoder (e.g., CLIP), attacks transfer effectively even if their LLM backends differ. However, bridging the gap between models with entirely different vision encoders remains difficult, particularly against closed-source commercial models like GPT-4o.

Semantic-Level Data Augmentation

To overcome transferability limitations, the paper proposes moving beyond traditional pixel-level noise to semantic-level data augmentation. By introducing diverse semantic concepts during the attack generation process, the adversarial noise learns to target core cross-modal embeddings rather than overfitting to a specific model's pixel processing.

The proposed semantic-level augmentation framework for generating transferable adversarial examples.

Two primary methods are introduced:

  1. AIP (Adding Image Patch): Randomly pasting patches from other images onto the target image during optimization.
  2. TATM (Typography Augment Transferability Method): Printing random typographic text directly onto the image to introduce linguistic semantic noise.

Key Results and Robustness

Testing across 13 victim models, TATM consistently achieved high Attack Success Rates (ASR). For instance, in harmful content tasks, TATM increased ASRs from near 0% on clean images to over 60% on several victim models. These attacks proved robust against standard defenses, including Gaussian noise, blurring, and adversarial training. Furthermore, by using an ensemble of surrogate models, the researchers successfully transferred attacks across different vision encoder architectures.

Conclusion and Future Work

Semantic-level augmentations like AIP and TATM represent a significant advancement in understanding MLLM vulnerabilities. While these methods are highly effective against open-source models, they currently face a "closed-source wall" against proprietary models with unknown vision encoders. Future research will focus on bypassing these proprietary barriers and reducing the high computational cost associated with generating these sophisticated multimodal attacks.

Summary updated

BibTeX
@inproceedings{cheng2025transfer,
  author = {Hao Cheng and Erjia Xiao and Jiahang Cao and L. Yang and Kaidi Xu and Jindong Gu and Renjing Xu and Yang, Le and Xu, Kaidi and Gu, Jindong and Xu, Renjing},
  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