TL;DR
This paper uncovers a "safety paradox" in Vision Large Language Models (VLLMs): they are incredibly easy to jailbreak using malicious images, yet they appear trivial to defend on standard benchmarks. The authors reveal that these high defense scores are often an illusion caused by "over-prudence"—where models simply refuse to answer benign questions. To address this, they propose a simple LLM-Pipeline that uses the robust guardrails of text-only LLMs to provide a more balanced and reliable defense.
What Problem Does This Paper Address?
As we move from text-only models (LLMs) to those that can "see" (VLLMs), safety becomes a much harder problem. While a model might refuse to write a "how-to" guide for a heist in text, it might happily do so if the instructions are hidden inside an image (typography) or if a "benign" prompt is paired with a suggestive picture.
The researchers noticed a strange contradiction in current literature: VLLMs are notoriously vulnerable to these "jailbreak" attacks, yet recent defense papers claim near-perfect safety scores. This paper investigates whether we have actually solved VLLM safety or if our benchmarks and defense strategies are fundamentally flawed.
Methods
The authors approach the problem through three distinct lenses:
- Mechanistic Analysis: They used T-SNE visualizations and attention maps to see why VLLMs fail. They discovered that while the "brain" (the backbone LLM) remains safety-aligned, the inclusion of visual tokens essentially "distracts" the model or bypasses its textual guardrails.
- Stress-Testing Defenses: They evaluated popular defense mechanisms (like supervised fine-tuning and system prompting) not just on how well they block attacks, but on how often they refuse benign queries (a problem they call "over-prudence").
- The LLM-Pipeline: They proposed a "detection-then-response" architecture. Instead of trying to make the VLLM itself perfectly safe, they use a highly-aligned, text-only LLM (like Llama 3.1) as a "gatekeeper" to evaluate the textual prompt (and sometimes an image caption) before the VLLM ever sees it.
Datasets
The study utilized four mainstream jailbreak benchmarks to provide a comprehensive view of the landscape:
- VLSafe: Uses benign images from MSCOCO paired with harmful questions.
- FigStep: Uses "typographic" attacks where harmful instructions are written as text inside an image.
- MM-SafetyBench: A large-scale dataset covering 13 scenarios (illegal acts, hate speech, etc.) using both typography and Stable Diffusion-generated images.
- VLGuard: A balanced dataset containing safe/unsafe pairs of both images and instructions.
Key Insights and Ideas
- Vision is the "Backdoor": The backbone LLMs are actually quite safe. The vulnerability arises because VLLMs pay more attention to "unsafe" visual features than safe ones, even when the user's text prompt is neutral. The visual input essentially "muddies" the safety signals the model learned during text-only training.
- The Over-Prudence Trap: Many "successful" defenses are just over-tuned. When the authors tested these "safe" models on benign queries, they found high abstention rates. In short: the models weren't becoming "smarter" about safety; they were just becoming more "scared" to talk.
- The Evaluation Dilemma: This is perhaps the most concerning finding. The authors found only a "chance correlation" between rule-based evaluation (looking for keywords like "I'm sorry") and LLM-based evaluation (using GPT-4 as a judge). This means a defense that looks great under one metric might be failing miserably under another.
- Text Guardrails are Enough (Mostly): Surprisingly, a strong text-only LLM can detect the vast majority of jailbreak attempts just by looking at the prompt. Adding an image captioning step (using a model like Qwen2-VL) to feed the "gatekeeper" more context further improves this without the "over-prudence" seen in fine-tuned models.
Key Results
- Defense Illusion: Models like LLaVA-1.5 and MiniGPT-v2 reached an Attack Success Rate (ASR) of nearly 0% on benchmarks after simple fine-tuning. However, their "over-prudence" on benign tasks made them significantly less helpful.
- LLM-Pipeline Superiority: The proposed LLM-Pipeline (using Llama-3.1-70B as a detector) achieved a much better balance. It maintained a high "winning rate" (helpfulness) on safe queries while keeping the ASR low on unsafe ones, outperforming specialized VLLM defenses.
- Detection Accuracy: Llama-3.1-8B, acting as a vision-free detector, reached an ASR of only 0.7% on the VLSafe dataset, proving that the textual intent of an attack is often its own "smoking gun."
Limitations and Future Work
The authors acknowledge that while their LLM-Pipeline is effective, it isn't a silver bullet.
- Complex Hybrid Attacks: Future attacks might involve "split" information where neither the text nor the image is harmful alone, but their combination is. Current detectors might struggle with these.
- Inference Overhead: Using a two-step pipeline (Detector + VLLM) increases latency and computational cost.
- Human Alignment: There is still a lack of consensus in the research community on what constitutes "harmful" in complex multimodal scenarios, making it difficult to build a universal "gold standard" for evaluation.
The paper concludes that we need to move beyond simple "keyword matching" benchmarks and focus on the trade-off between safety and utility to truly advance VLLM security.
Summary updated