NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Models

Yifan Li, Hangyu Guo, Kun Zhou, Wayne Xin Zhao, Ji-Rong Wen · DOI

TL;DR

This paper reveals that images are a significant vulnerability in the "harmlessness alignment" of Multimodal Large Language Models (MLLMs), making them susceptible to jailbreaking. The authors introduce HADES, a novel method that cleverly hides harmful intent in text and amplifies it through carefully crafted images, demonstrating high success rates in bypassing safety measures of leading MLLMs.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly being augmented with the ability to process visual information, leading to Multimodal Large Language Models (MLLMs). While these models offer enhanced capabilities, they inherit the safety and "harmlessness alignment" challenges of their LLM predecessors. This paper investigates whether the addition of visual input exacerbates these alignment issues. Specifically, it explores how images might act as "backdoors" to bypass the safety mechanisms that LLMs are trained to uphold, leading to the generation of harmful content. The core problem is understanding and exploiting these visual vulnerabilities to effectively jailbreak MLLMs.

Methods

The authors propose a novel jailbreak method called HADES (Hiding and Amplifying harmfulness in images to DEStroy multimodal alignment). HADES operates in three stages:

  1. Hiding Harmfulness from Text to Image: The harmful keywords or phrases from a text instruction are removed and replaced with a "text-to-image pointer." This pointer guides the model to focus on the image, effectively transferring the malicious intent from the text (where LLMs are generally well-aligned) to the image modality (where alignment is weaker). Typography is used to represent abstract concepts or behaviors in the image.
  2. Amplifying Image Harmfulness with LLMs: To increase the harmfulness of the image, a diffusion model is used to generate a harmful image. This process is iteratively refined by using an LLM (acting as an attacker) to optimize the prompt for the diffusion model, aiming to maximize the harmfulness of the generated image.
  3. Amplifying Image Harmfulness with Gradient Update: Finally, adversarial images are generated using gradient-based optimization. These adversarial images are then concatenated with the previously generated harmful images and the modified text instruction. This final step aims to further push the MLLM towards generating harmful responses.

Datasets

The authors created a new dataset comprising 750 harmful instructions across 5 scenarios: Violence, Financial Crime, Privacy Violation, Self-Harm, and Animal Abuse. Each instruction was paired with a relevant harmful image. For training the contrastive harmlessness LoRA, they collected 2286 instructions, pairing negative (harmful) instructions with positive (harmless) counterparts.

Key Insights and Ideas

  • Images as Alignment Backdoors: The presence of images, even benign ones, significantly increases the likelihood of MLLMs generating harmful content compared to text-only inputs. This highlights a critical vulnerability in MLLM alignment.
  • Cross-Modal Fine-Tuning Undermines Alignment: The process of fine-tuning LLMs to become multimodal can degrade their inherent harmlessness alignment. The more parameters involved in this cross-modal fine-tuning, the more severe the disruption.
  • Harmfulness of Image Content Matters: The more harmful the content of an image, the more likely an MLLM is to produce a harmful response. This suggests a direct correlation between visual toxicity and model output.
  • "Inverse Alignment Tax": The authors hypothesize that cross-modal fine-tuning might impose an "inverse alignment tax," improving multimodal capabilities at the cost of harmlessness.

Key Results

HADES demonstrated significant success in jailbreaking various MLLMs:

  • LLaVA-1.5: Achieved an average Attack Success Rate (ASR) of 90.26%.
  • Gemini Pro Vision: Achieved an average ASR of 71.60%.
  • LLaVA-1.5L: Achieved an average ASR of 88.93%.
  • LLaVA: Achieved an average ASR of 82.53%.
  • GPT-4V: Showed the strongest defense, with an ASR of 15.07%.

The attack was particularly effective for instructions related to Financial, Privacy, and Violence categories. The proposed contrastive harmlessness LoRA significantly reduced the ASR on LLaVA-1.5, decreasing it from 79.20% to 6.67% for the +Opt image setting and from 89.53% to 5.07% for the +Adv image setting.

Limitations and Future Work

  • OCR Limitations: Some open-source MLLMs with limited OCR capabilities struggled to interpret the text-to-image pointers, which sometimes offset the attack's effectiveness.
  • Cross-Modal Fine-Tuning Impact: The study suggests that extensive cross-modal fine-tuning can weaken harmlessness alignment.
  • Future Work: The authors propose developing cross-modal training strategies that incorporate more adversarial samples (both harmful instructions and images) during fine-tuning to improve MLLMs' defense against image-based attacks while preserving multimodal capabilities. They also explored using the HADES data to fine-tune MLLMs for enhanced safety alignment.

Summary updated

BibTeX
@inproceedings{li2024images,
  author = {Yifan Li and Hangyu Guo and Kun Zhou and Wayne Xin Zhao and Ji-Rong Wen},
  title = {{Images are Achilles' Heel of Alignment: Exploiting Visual Vulnerabilities for Jailbreaking Multimodal Large Language Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73464-9\_11},
}
Figure