VERA-V: Variational Inference Framework for Jailbreaking Vision-Language Models

Qilin Liao, Anamika Lochab, Ruqi Zhang

TL;DR

This paper introduces VERA-V, a novel framework for jailbreaking Vision-Language Models (VLMs) by treating adversarial prompt generation as a variational inference problem. By learning a joint distribution over text-image prompts, VERA-V can generate diverse, stealthy, and highly effective attacks that exploit cross-modal vulnerabilities, significantly outperforming existing methods.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) are powerful tools that combine text and image understanding, but this multimodal nature also introduces new vulnerabilities. Current methods for testing these vulnerabilities (red-teaming) are often limited: they might focus on only text or images, rely on pre-defined templates, and only uncover a small range of potential weaknesses. This leaves VLMs susceptible to sophisticated attacks that exploit the interplay between visual and textual information. The paper aims to address this gap by developing a more comprehensive and effective approach to discover and exploit these multimodal vulnerabilities.

Methods

VERA-V frames multimodal jailbreaking as a variational inference problem, aiming to learn a joint posterior distribution over paired text-image prompts that can elicit harmful responses from a VLM. The core of VERA-V involves:

  • Variational Inference Framework: Instead of generating single attacks, VERA-V learns a distribution of adversarial prompts. This allows for the generation of diverse attacks and provides insights into the landscape of VLM vulnerabilities.
  • Lightweight Attacker: A fine-tuned LLM (e.g., Vicuna-7B) is trained to approximate the learned posterior distribution, enabling efficient sampling of adversarial prompts.
  • Compositional Adversarial Strategy: VERA-V combines three key techniques:
  • Typography-based Text Prompts: Textual prompts are rendered as images to bypass text-based filters.
  • Diffusion-based Image Synthesis: Adversarial signals are embedded into generated images using diffusion models.
  • Structured Distractors: Additional images are used to fragment the VLM's attention, making it harder to detect the malicious cues.
  • Feedback-Driven Optimization: The attacker is trained using feedback from a judge model that scores the harmfulness of VLM responses, guiding the attacker to generate more effective prompts.

Datasets

  • HarmBench: Used for evaluating VLM jailbreak performance, containing 400 harmful textual behaviors across semantic and functional categories. The paper focuses on the "standard" category.
  • HADES-Dataset: Another benchmark used for evaluation, comprising 750 malicious instructions across five scenarios. The paper randomly samples 100 instructions from this dataset.

Key Insights and Ideas

  • The Power of Joint Distribution: Treating adversarial prompt generation as learning a joint distribution over text-image pairs is crucial for uncovering complex cross-modal vulnerabilities that single-modality attacks miss.
  • Composition is Key: Combining typography, diffusion-generated images, and distractors creates a synergistic effect, leading to more potent and stealthy attacks than any single component alone.
  • Stealth Through Visual Obfuscation: Distractors and diffusion-based image synthesis help to fragment VLM attention and obscure harmful cues, making attacks harder to detect by safety filters.
  • Variational Inference for Scalability and Diversity: The probabilistic approach allows for scalable generation of diverse attacks, moving beyond brittle, template-based methods.
  • Feedback Loop for Refinement: The adaptive learning process, guided by a judge model, allows the attacker to continuously improve its strategies and discover more potent vulnerabilities.

Key Results

  • State-of-the-Art Performance: VERA-V consistently outperforms existing state-of-the-art multimodal jailbreak methods on both open-source and frontier VLMs.
  • Significant ASR Gains: Achieved up to 53.75% higher attack success rate (ASR) over the best baseline on GPT-4o on the HarmBench dataset. On HADES, VERA-V achieved 80.0% ASR on open-source models and 73.5% on closed-source models.
  • Robustness to Defenses: VERA-V's attacks are more resilient to common VLM defenses (OCR detection, BlueSuffix, ETA) compared to baseline methods.
  • High Transferability: Prompts optimized on one VLM show strong performance when transferred to other models, indicating generalizable vulnerability discovery.
  • Efficient and Diverse Attack Generation: VERA-V can generate 100 adversarial prompts achieving 70% ASR within a short time after initial training.

Limitations and Future Work

  • Computational Resources: The experiments require significant computational resources, particularly for training the attacker and running diffusion models.
  • Judge Model Dependency: The performance of VERA-V is influenced by the quality and strictness of the judge model.
  • Potential for Misuse: The authors acknowledge the potential for misuse of their jailbreaking techniques and emphasize that the methodology is shared for research purposes only.
  • Future Work: The paper suggests exploring more advanced adversarial strategies, investigating the impact of different judge models, and further analyzing the attention mechanisms of VLMs to understand how these attacks work. The authors also highlight the need for more robust and comprehensive defense mechanisms against such sophisticated multimodal attacks.

Summary updated

BibTeX
@inproceedings{liao2026vera,
  author = {Qilin Liao and Anamika Lochab and Ruqi Zhang},
  title = {{VERA-V: Variational Inference Framework for Jailbreaking Vision-Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=tj9EwfaxHm},
}
Figure