TL;DR
While current safety alignment techniques effectively block harmful text or image prompts in isolation, they fail to account for the complex interactions between modalities. This paper introduces a novel multimodal universal jailbreak attack framework that iteratively distributes adversarial information across both text suffixes and images, successfully bypassing safety protocols across 17 different Multimodal Large Language Models (MLLMs).
What Problem Does This Paper Address?
As Large Language Models (LLMs) have evolved into Multimodal Large Language Models (MLLMs)—capable of processing images, audio, and video alongside text—their attack surface has expanded dramatically. Current safety alignment practices typically focus on single-modality guardrails (e.g., filtering toxic text or detecting adversarial images).
However, MLLMs process overall user intent by mapping visual features directly into a shared language space. The authors identify a critical, unexplored vulnerability: cross-modal interaction. Existing jailbreak methods either append an adversarial text suffix (like GCG) or alter the image (like Visual-Jailbreak) independently. This paper addresses the gap by demonstrating that safety filters can be completely bypassed when adversarial information is strategically distributed across both text and image modalities simultaneously.
Methods
The authors propose a unified framework called the Iterative Multimodal Interaction Jailbreak Attack. Instead of optimizing text and images independently, the framework alternates between the two modalities, using one as supervised information to optimize the other within the multimodal alignment space.
Key components include:
- Iterative Cross-Modal Optimization: The algorithm alternates between generating universal adversarial images (via Projected Gradient Descent) and universal text suffixes. This ensures the jailbreak information is tightly coupled across both modalities.
- Gradient Variance Tuning: To prevent overfitting to a specific surrogate model and ensure the attack transfers well to black-box models, the authors apply a variance-tuning momentum strategy. By sampling $K$ neighboring examples around the adversarial data point, they find flatter loss landscapes that generalize better.
- Shorter Suffix Lengths: By offloading part of the adversarial perturbation to the visual modality, the framework reduces the required text suffix length from 20 tokens (standard in GCG) to just 10 tokens, significantly lowering text perplexity and making the attack harder for standard defense filters to detect.
Datasets
The framework was evaluated using AdvBench, a standard benchmark containing 520 harmful behavioral instructions.
- Training/Optimization: 25 harmful behaviors were randomly selected to optimize the universal adversarial suffix and image pairs.
- Testing: 100 unseen harmful behaviors were reserved to evaluate the universality and transferability of the attack across different models.
Key Insights and Ideas
- The Sum is Greater Than the Parts: Simply combining a text attack (GCG) with an image attack (Visual-Jailbreak) post-hoc yields poor transferability. True cross-modal optimization is required to navigate the complex decision boundaries of MLLM interaction spaces.
- Exploiting the Semantic Gap: MLLMs map visual features into language domains, but subtle semantic gaps remain. Distributed adversarial prompts exploit these gaps, ensuring that neither the text filter nor the image filter flags the input, yet their combination triggers a harmful response.
- Stealthiness via Modality Splitting: Shorter adversarial text suffixes mean lower perplexity scores. By hiding a portion of the malicious intent inside pixel-level image noise, the attack successfully evades traditional text-based anomaly detectors.
Key Results
The authors evaluated their attack across 17 open-source MLLMs (including LLaVA, MiniGPT-v2, MiniGPT4, InstructBLIP, and CogVLM) using two primary metrics: standard Attack Success Rate (ASR) and ASR-G (a more rigorous evaluation where GPT-4 judges if the model actually fulfilled the malicious request).
- White-Box Performance: On LLaVA-7B, the proposed method achieved an 80.0% ASR-G, significantly outperforming GCG (50.0%) and Visual-Jailbreak (70.0%).
- Black-Box Transferability: When adversarial samples optimized on smaller surrogate models (LLaVA-7B and MiniGPT-v2-7B) were transferred to completely different architectures or larger models, the attack maintained superior performance. For instance, when attacking the 34-billion parameter Yi-VL-34B, the proposed method achieved a significantly higher success rate compared to single-modality baselines.
Limitations and Future Work
The primary limitation acknowledged by the authors is that the attack success rate scales inversely with model size. As MLLMs grow larger (e.g., 34B models or proprietary systems like GPT-4), their safety alignment becomes more robust, and the simpler alignment spaces of smaller surrogate models do not transfer perfectly. Due to hardware resource constraints, the authors could not use larger models as surrogates during optimization.
Future work highlights the urgent need for defensive strategies specifically designed for cross-modal interactions, such as Cross-Modal Adversarial Fine-Tuning and Dynamic Contextual Analysis to monitor the joint coherence of text and image inputs.
Summary updated