Abstract
Multi-modal Large Language Models (MLLMs) are increasingly vulnerable to visual jailbreaks, where harmful prompts are embedded within images to bypass text-based safety filters. Traditional defenses involve fine-tuning models on labor-intensive, curated datasets of malicious multi-modal content. This paper challenges the necessity of such toxic data, demonstrating that MLLM vulnerability stems from a "compliance bias" acquired during instruction tuning. By fine-tuning models on benign images paired with generic rejection responses, we can effectively restore the model's inherent safety alignment and drastically reduce jailbreak success rates without the need for harmful training examples.
1. Introduction
Most open-source Multi-modal Large Language Models (MLLMs), such as LLaVA, are constructed by integrating a vision encoder with a pre-trained, safety-aligned Large Language Model (LLM). While the underlying LLM is typically robust against harmful text-only prompts, the subsequent multi-modal training phase—visual instruction tuning—rarely includes safety-specific data.
This oversight creates a significant security gap. Attackers can bypass safety guardrails through typographic attacks (placing harmful text inside an image) or by pairing harmful prompts with seemingly innocuous but related images. To date, the standard defense has been the curation of multi-modal safety datasets. However, this approach is expensive, difficult to scale, and requires human annotators to interact with harmful content. This research investigates a fundamental question: Is malicious data truly a prerequisite for teaching an MLLM to be safe?
2. The Compliance Bias Hypothesis
The authors hypothesize that MLLMs do not "forget" their safety training during multi-modal alignment. Instead, they develop a "compliance bias." Because standard visual instruction tuning datasets consist almost entirely of helpful, compliant interactions, the model learns a statistical bias to answer any prompt that includes an image. In this state, the vision-language connector effectively overrides the LLM backbone's refusal mechanisms. Safety fine-tuning, therefore, is not about teaching the model new ethical concepts, but about teaching the vision-language connector how to refuse, allowing the LLM's existing alignment to resurface.
3. Methodology
3.1 Deconstructing Safety Data
The researchers began by performing ablation studies on VLGuard, a prominent multi-modal safety dataset. By systematically removing "high-quality" features—such as harmful images, multi-turn context, and detailed ethical explanations—they found that the models still maintained defensive capabilities. This suggested that the specific content of the malicious data was less important than the presence of the refusal behavior itself.
3.2 Zero-Toxicity Fine-Tuning
Based on these insights, the authors proposed a novel fine-tuning approach using zero toxic data:
- Benign Sampling: 5,000 standard instruction-tuning samples were selected from the LLaVA-v1.5-mix665k dataset.
- Artificial Rejection: 2,000 benign medical QA samples (from LLaVA-Med) were repurposed. The original helpful answers were replaced with a generic, hardcoded rejection: "I'm sorry, I cannot assist with that request."
- LoRA Fine-tuning: Several MLLMs, including LLaVA-v1.5, LLaVA-NeXT, and Yi-VL, were fine-tuned on this mixture of compliant and artificially non-compliant benign data.
4. Experimental Results
4.1 Safety Performance
The results demonstrated a massive reduction in Attack Success Rates (ASR). On the LLaVA-v1.5-7B model:
- FigStep (Typographic attacks): ASR dropped from 100% to 0.20%.
- MM-SafetyBench: ASR dropped from 96.37% to 5.60%.
These improvements were achieved entirely through benign data, proving that the model's dormant safety alignment could be "awakened" without exposure to new toxic content.
4.2 Utility and Over-rejection
To ensure the models remained functional, they were evaluated on ScienceQA and VizWizQA. Performance on these general visual tasks remained comparable to the original, unprotected models, indicating that the safety tuning did not degrade general intelligence.
However, the researchers identified a "sweet spot" for the rejection ratio. A ratio of approximately 28% rejection data in the fine-tuning set was found to be ideal. Exceeding this ratio led to increased over-rejection, where the model began refusing safe, helpful prompts (as measured by the XSTest).
5. Discussion and Limitations
While highly effective at bridging the vision-language safety gap, this method has limitations. Because medical images were used to generate the rejection samples, the model showed a slight tendency to over-reject benign medical image descriptions. Furthermore, this method specifically targets multi-modal vulnerabilities and does not improve the model's baseline safety against sophisticated text-only jailbreaks.
6. Conclusion
This study reveals that curated malicious data is not a requirement for MLLM safety alignment. By addressing the compliance bias inherent in instruction tuning through simple, benign rejection samples, developers can create secure models more efficiently and ethically. Future work will focus on refining the selection of rejection data to minimize over-rejection in specific domains while maintaining robust multi-modal security.
Summary updated