Exploring Visual Vulnerabilities via Multi-Loss Adversarial Search for Jailbreaking Vision-Language Models

Shuyang Hao, Bryan Hooi, Jun Liu, Kai-Wei Chang, Zi Huang, Yujun Cai

Introduction

Vision-Language Models (VLMs), such as LLaVA and GPT-4o, represent a significant leap in AI by integrating large language models (LLMs) with sophisticated visual encoders. While the textual components of these models undergo rigorous safety alignment—such as Reinforcement Learning from Human Feedback (RLHF)—to prevent the generation of harmful content, the visual modality introduces a novel attack surface. Researchers have identified a "visual vulnerability" where adversarial images can act as a Trojan horse, bypassing safety filters to elicit prohibited responses.

The Visual Vulnerability Problem

Traditional jailbreaking attacks on VLMs often rely on finding a single adversarial image that, when paired with a harmful prompt, triggers a successful jailbreak. However, these methods frequently encounter two primary obstacles: semantic mismatch and optimization fragility.

  1. Semantic Mismatch: If an adversarial image is semantically unrelated to the harmful prompt (e.g., a random noise pattern or an irrelevant animal), the model's safety mechanisms are more likely to remain active.
  2. Optimization Fragility: Standard gradient-based attacks typically seek the "lowest loss" image. However, research suggests these points often represent "sharp minima"—mathematical outliers that are not robust to minor internal state shifts in the model.
Impact of semantic matching and the loss paradox on VLM safety filters.

As illustrated in Figure 1, using a semantically relevant image (e.g., a business setting for a tax evasion prompt) significantly increases the risk of a successful jailbreak. Notably, images with higher loss in "flat" regions can be more effective than those with lower loss in "sharp" regions, a phenomenon termed the "Loss Paradox."

Methodology: Multi-Loss Adversarial Images (MLAI)

To exploit these vulnerabilities, the MLAI (Multi-Loss Adversarial Images) framework was developed. This approach moves beyond searching for a single global minimum and instead targets "flat minima" across a collaborative set of images.

The MLAI framework consists of three key steps:

  1. Scenario-Aware Image Generation: Using generative models like DALL-E 3, the attack begins with "benign" images that match the context of the harmful prompt. This semantic alignment provides a stable foundation for the attack.
  2. Adversarial Optimization: Gradient-based techniques are applied to these context-aware images to introduce subtle perturbations.
  3. Multi-Image Collaborative Attack: Instead of selecting the single image with the lowest loss, the framework identifies a "flat" region in the loss landscape. A collaborative set of these images is then used to overwhelm the model's safety alignment.
The MLAI framework for generating collaborative adversarial image sets to bypass safety filters.

Experimental Results and Key Insights

The effectiveness of MLAI was evaluated against both open-source (MiniGPT-4, LLaVA-2) and commercial black-box models (Gemini, ChatGLM, Qwen) using benchmarks like SafetyBench and AdvBench.

Key Findings:

  • Record Attack Success Rates (ASR): MLAI achieved an ASR of 77.75% on MiniGPT-4 and 82.80% on LLaVA-2, significantly outperforming previous state-of-the-art methods by over 12%.
  • The Loss Paradox: The research demonstrates that "lower loss" does not always equate to a better attack. Images in "flat" regions of the loss landscape are more robust and effective at bypassing safety filters than those at "sharp" global minima.
  • Semantic Synergy: Aligning the image's visual context with the prompt's malicious intent creates a synergy that makes it difficult for safety filters to distinguish between legitimate and harmful queries.
  • Commercial Vulnerability: Adversarial images optimized on open-source models showed high transferability, successfully jailbreaking commercial models with success rates up to 60.11%.

Conclusion

The discovery of visual vulnerabilities through MLAI highlights a critical gap in current VLM safety alignment. By exploiting semantic matching and the robustness of flat minima in the loss landscape, these attacks can consistently bypass existing defenses. While similarity-based deduplication offers a potential defensive strategy, future work must focus on more holistic safety alignment that accounts for the complex interplay between visual and textual semantics.

Summary updated

BibTeX
@inproceedings{hao2025exploring,
  author = {Shuyang Hao and Bryan Hooi and Jun Liu and Kai-Wei Chang and Zi Huang and Yujun Cai},
  title = {{Exploring Visual Vulnerabilities via Multi-Loss Adversarial Search for Jailbreaking Vision-Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01852},
}
Figure