Abstract
Vision-Language Models (VLMs) are increasingly vulnerable to multi-modal jailbreak attacks, yet evaluating their defenses is often computationally prohibitive. This paper introduces the Retention Score, a fast, attack-agnostic metric that leverages diffusion models to quantify a VLM's certified robustness against both visual and textual adversarial perturbations. The proposed framework achieves a 2x to 30x speedup over traditional attack-based evaluations while maintaining high correlation with actual attack success rates across models like GPT-4V, Gemini, and various open-source alternatives.
Introduction
The evolution of Large Language Models (LLMs) into Vision-Language Models (VLMs) has introduced significant multi-modal capabilities but also expanded the potential attack surface. Malicious actors can exploit these models by crafting adversarial images or text prompts to bypass safety alignments, leading to the generation of harmful content.
Traditionally, evaluating a model's robustness against these jailbreaks requires running computationally heavy, optimization-based adversarial attacks. These methods are not only resource-intensive but also fail to provide theoretical guarantees; a failed attack does not preclude the existence of a more potent, undiscovered vulnerability. To address this, the authors present a mathematically sound, attack-agnostic method to measure VLM vulnerability without requiring white-box access to model weights.
Methodology: The Retention Score Framework
The Retention Score framework evaluates robustness through two primary components: Retention-I (visual) and Retention-T (textual). Rather than actively attacking the model, the framework measures the maximum perturbation an input can sustain before the VLM's output becomes toxic.
The process involves three key steps:
- Generative Sampling: Off-the-shelf diffusion models (Stable Diffusion for images, DiffuSeq for text) generate semantically similar variations of an original input pair.
- Toxicity Evaluation: These variations are processed by the target VLM, and the responses are scored by toxicity classifiers such as the Perspective API or LLaMA-70B.
- Certified Robustness: By calculating the margin between toxic and non-toxic output probabilities, the authors derive a mathematical bound. This "Retention Score" serves as a certified robustness guarantee, ensuring that no perturbation within a specific radius can trigger toxic outputs.
Key Results and Insights
The Retention Score demonstrates a strong inverse correlation with actual Attack Success Rates (ASR). A higher Retention Score reliably indicates lower vulnerability to state-of-the-art jailbreak methods.
Efficiency and Speedup
A primary advantage of the Retention Score is its computational efficiency. By avoiding the iterative optimization required by traditional attacks, the framework achieves significant speedups, ranging from 2x to 30x faster than traditional methods.
Model Performance and Rankings
- Visual Robustness: MiniGPT-4 proved the most robust against visual jailbreaks, followed by InstructBLIP, with LLaVA being the most vulnerable.
- Textual Robustness: Conversely, LLaVA showed exceptional resistance to text-based attacks (only 9.4% ASR), while InstructBLIP was highly susceptible (84.5% ASR).
- Proprietary Auditing: The metric successfully audited black-box models like GPT-4V and Gemini Pro Vision, accurately reflecting user-configurable safety thresholds.
Conclusion and Limitations
The study reveals that integrating visual modules often degrades the underlying LLM's safety alignment against text-based attacks. While the Retention Score provides a robust and efficient evaluation metric, it is dependent on the accuracy of external toxicity classifiers. Future research is needed to understand the exact mechanisms by which visual modules impact safety and to develop integration methods that preserve original safety alignments.
Summary updated