TL;DR
While text-based Large Language Models (LLMs) have robust safety guardrails, extending them into Multimodal MLLMs introduces a critical vulnerability: the visual modality. This paper demonstrates that images act as an alignment backdoor, and introduces HADES, a three-stage jailbreak attack that hides and amplifies malicious intent within images to achieve up to a 90% attack success rate on state-of-the-art models.
What Problem Does This Paper Address?
Safety alignment techniques like Reinforcement Learning from Human Feedback (RLHF) have made modern LLMs reasonably adept at refusing harmful prompts (e.g., "how to build a bomb"). However, as these models evolve into Multimodal Large Language Models (MLLMs) to process both text and vision, a new security gap emerges.
This paper investigates whether MLLMs maintain their safety alignment when given multimodal inputs. The authors reveal a troubling systemic issue: the cross-modal fine-tuning process used to connect vision encoders to LLMs actually degrades the original safety alignment of the text backbone, turning the image input channel into a dangerous vulnerability.
Methods
To systematically exploit this vulnerability, the authors propose HADES (Hiding and Amplifying harmfulness in images to DEStroy multimodal alignment). HADES operates via a three-stage pipeline:
- Hiding Harmfulness (Text-to-Image Pointer): The attack strips explicit harmful keywords from the text prompt and replaces them with a pointer (e.g., changing "handgun" to "the object in the image"). The original keyword is rendered as text inside the image (typography), bypassing text-only safety filters while leveraging the MLLM's OCR capabilities.
- Amplifying Toxicity via LLMs: To exploit the model's sensitivity to visual context, an attacker LLM iteratively optimizes a prompt for a text-to-image diffusion model (PixArt-$\alpha$) to generate highly realistic, contextually harmful images that reinforce the malicious prompt.
- Amplifying Toxicity via Gradient Updates: For open-source models, HADES appends a layer of adversarial noise optimized via gradient descent. This noise acts similarly to text-based "Do Anything Now" (DAN) tokens, forcing the model into an affirmative, compliant state (e.g., forcing it to start its response with "Sure!").
To counter this, the authors also introduce a defense mechanism called Contrastive Harmlessness LoRA (CH LoRA), which fine-tunes MLLMs on a mix of harmful and harmless OCR/captioning tasks to teach the model to reject visually implied harm.
Datasets
The authors compiled a new evaluation dataset consisting of 750 harmful instructions spread across five real-world risk scenarios:
- Violence, Aiding and Abetting, Incitement
- Financial Crime, Property Crime, Theft
- Privacy Violation
- Self-Harm
- Animal Abuse
For each category, GPT-4 synthesized distinct instructions based on 50 specific keywords. These keywords were then paired with real-world images harvested via Google Search and filtered using CLIP to ensure semantic relevance.
Key Insights and Ideas
- Images as Alignment Backdoors: Simply pairing a harmful text prompt with a completely blank image drastically increases the Attack Success Rate (ASR). For instance, LLaVA-1.5's ASR jumped from 26.13% (text-only) to 54.13% when a blank image was added.
- The "Inverse Alignment Tax": The more parameters tuned during cross-modal training, the more the model's safety alignment degrades. Full-parameter fine-tuned models were significantly more vulnerable than those trained with LoRA or frozen backbones.
- Capability Conflicts: MLLMs jailbreak because their core strengths—advanced OCR, image captioning, and strict instruction-following—directly conflict with and override their safety guardrails.
Key Results
The empirical results show that HADES severely undermines current safety protocols across both open- and closed-source models:
- LLaVA-1.5 was highly vulnerable, reaching an average Attack Success Rate (ASR) of 90.26% under the full HADES attack.
- Gemini Pro Vision proved highly susceptible to the black-box components of HADES, yielding a 71.60% ASR under the optimized image setting.
- GPT-4V demonstrated the strongest defense but was still breached, with its ASR increasing to 15.07% when exposed to LLM-optimized harmful images.
- Defense Efficacy: Applying the proposed CH LoRA defense to LLaVA-1.5 successfully mitigated the threat, plummeting the HADES ASR from 89.53% down to just 5.07% while preserving standard multimodal performance.
Limitations and Future Work
The primary limitation of the full HADES framework is its reliance on white-box gradient updates in Step 3, which requires direct access to model weights. Consequently, the gradient-based noise amplification could not be applied to closed-source commercial APIs like GPT-4V and Gemini Pro Vision.
The authors emphasize that future work must move away from purely text-centric safety training and focus heavily on robust cross-modal alignment strategies during the initial vision-language pre-training phases.
Summary updated