TL;DR
Vision-Language Models (VLLMs) are surprisingly easy to both attack and defend against jailbreaking, creating a paradox. This paper argues that the ease of attack stems from the inclusion of visual inputs, while the ease of defense is due to "over-prudence" in current methods. They propose a simple "LLM-Pipeline" detector that leverages existing LLM guardrails, showing it balances safety and helpfulness better than existing defenses.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly integrated into our lives, and ensuring their outputs are helpful, honest, and harmless (the "3H" criteria) is crucial. A key aspect of harmlessness is preventing "jailbreaks" – attacks that trick models into generating malicious content. While LLMs have been extensively studied for jailbreaking vulnerabilities, Vision-Language Models (VLLMs), which combine text and image understanding, are also susceptible.
What's puzzling is that while VLLMs can be easily jailbroken, recent defense mechanisms seem to achieve near-perfect performance on benchmark datasets with minimal effort. This "dual ease" – easy to attack, easy to defend – presents a paradox. The paper aims to unravel this paradox by investigating why VLLMs are vulnerable, why defenses are so effective (perhaps too effective), and how we can better evaluate these systems.
Methods
The paper proposes three main contributions:
- Explanation for VLLM Vulnerability: The authors hypothesize that the inclusion of visual inputs, rather than issues like catastrophic forgetting during fine-tuning, is the primary reason for VLLMs' susceptibility to jailbreaks. They analyze feature representations to show how vision integration compromises the safety alignment that base LLMs possess.
- Identification of "Over-Prudence" in Defenses: They observe that many current VLLM defense mechanisms are "over-prudent." This means they tend to abstain from responding even to benign inputs, which undermines their helpfulness and overall reliability.
- LLM-Pipeline: A Vision-Free Detector: To address the limitations of existing defenses and the evaluation dilemma, the authors propose a simple "LLM-Pipeline." This approach uses a powerful, pre-trained LLM (like Llama3.1) as a "detector" to evaluate the safety of an input before it's passed to the VLLM for response generation. This detector is vision-free, relying solely on the text prompt. If the detector deems the input unsafe, the query is rejected.
Datasets
The paper uses several existing datasets for evaluation:
- VLSafe [10]: Contains safe images paired with both harmful and safe instructions.
- FigStep [19]: Primarily uses typographic methods to inject high-risk content into images.
- MM-SafeB [36]: Includes images generated by stable diffusion and typography.
- VLGuard [75]: A comprehensive dataset with a balance of safe and unsafe images and instructions.
- MSCOCO [31]: Used for sourcing benign images.
The authors do not introduce new datasets but focus on analyzing existing ones and proposing a new methodology for defense.
Key Insights and Ideas
- Vision is the Culprit: The core insight is that the integration of visual information into LLMs is the primary driver of their vulnerability to jailbreaks, not necessarily issues with the LLM's core reasoning or training. This shifts the focus from purely text-based vulnerabilities to the multimodal aspect.
- Defense is Too Good (and Bad): Current defenses are highly effective at preventing jailbreaks, but this comes at the cost of "over-prudence." This means they are overly cautious, refusing to answer legitimate, harmless queries, which is a significant drawback for helpfulness.
- Leveraging Existing LLM Power: Instead of developing complex, VLLM-specific defenses, the paper demonstrates that the robust safety guardrails already present in advanced LLMs can be effectively repurposed as a vision-free detector for VLLM inputs.
- Evaluation Mismatch: The paper highlights a critical issue: traditional rule-based and LLM-based evaluation methods for jailbreaks often show only chance agreement. This makes it difficult to reliably assess the true effectiveness of attacks and defenses.
Key Results
- VLLM Vulnerability: The study shows that even advanced VLLMs exhibit high Attack Success Rates (ASR) across various jailbreak datasets (e.g., LLaVA-1.5 models showing ASRs in the high 70s to low 90s on some benchmarks).
- Over-Prudence in Defenses: Experiments with defense methods like VLGuard and AdaShield show a significant increase in abstention rates for benign inputs, sometimes reaching near 100% when instructed to abstain.
- LLM-Pipeline Effectiveness: The proposed LLM-Pipeline, using Llama3.1 as a detector, achieves a good balance. For instance, on the VLSafe dataset, it shows a low ASR (0.7% for Llama3.1-8B) while maintaining a high winning rate on safe-safe scenarios, indicating it's both safe and helpful.
- Evaluation Dilemma: Figure 7 demonstrates that rule-based and LLM-based evaluations have predominantly negative or near-zero Cohen's kappa scores, indicating poor inter-metric agreement.
Limitations and Future Work
- Dataset Limitations: The authors note that even seemingly "safe" instances identified by their detector might still pose minimal actual risk, suggesting that current datasets have limitations and a clearer, consensus-based definition of multi-modal safety is needed.
- Future Work Directions:
- Comprehensive Attack Datasets: The need for datasets that capture more complex attack scenarios, especially in hybrid systems with imperceptible triggers and long-context jailbreaking.
- Robust Defense Methods: Exploring Reinforcement Learning and system-level strategies, and investigating methods for distilling safety alignment from LLMs.
- Human Alignment on Evaluation: Developing open platforms for evaluating safety alignment, similar to Chatbot Arena, to establish better human preference benchmarks and address the evaluation dilemma.
- Broader Negative Impact: The authors acknowledge that disclosing defense rationales could be exploited by malicious users, leading to potential harm.
Summary updated