JailBound: Jailbreaking Internal Safety Boundaries of Vision-Language Models

Jiaxin Song, Yixu Wang, Jie Li, Xuan Tong, rui yu, Yan Teng, Xingjun Ma, Yingchun Wang

TL;DR

JailBound is a state-of-the-art jailbreak framework for Vision-Language Models (VLMs) that exploits the model's internal "safety decision boundaries." By first probing the latent space to find where the model draws the line between safe and unsafe content, and then jointly optimizing image and text inputs to cross that line, JailBound achieves unprecedented success rates—including a 75% success rate against commercial models like GPT-4o.

What Problem Does This Paper Address?

As Vision-Language Models (VLMs) like GPT-4o and LLaVA become more integrated into our daily lives, their safety is paramount. Developers use "safety alignment" to prevent these models from generating harmful content (e.g., instructions for illegal acts). However, the addition of a visual modality creates a massive new "attack surface."

Existing jailbreak methods often fail for two reasons:

  1. Lack of Direction: They rely on "blind" gradient-based optimization that often gets stuck in local optima because they lack a clear target in the model's internal representation space.
  2. Modality Decoupling: They usually attack the image or the text separately, ignoring the complex cross-modal interactions that happen inside the model's "fusion layers."

The authors of JailBound argue that even if a model refuses a harmful prompt, its internal states still "know" the difference between safe and unsafe. They set out to find this internal boundary and use it as a map to guide their attacks.

Methods

JailBound operates in two distinct stages, inspired by the "Eliciting Latent Knowledge" (ELK) framework:

1. Safety Boundary Probing

The researchers discovered that VLMs encode an implicit safety decision boundary within their internal fusion layers. To find it, they train simple linear classifiers (logistic regression) on the model's internal hidden states using a dataset of safe and unsafe examples. Remarkably, these probes can identify the model's internal safety judgment with nearly 100% accuracy in deeper layers. This provides a precise "normal vector" pointing toward the region of the latent space where the model is likely to comply with a request.

2. Safety Boundary Crossing

Once the boundary is mapped, JailBound uses it to guide a joint optimization of both the image and the text prompt. Unlike previous methods that might just add noise to an image, JailBound uses three specific loss functions to steer the model's internal state:

  • Adversarial Alignment Loss ($L_{align}$): Pushes the representation across the probed boundary toward a "target" region.
  • Geometric Boundary Loss ($L_{geo}$): Ensures the perturbation moves directly along the most efficient path (the normal vector) toward the target.
  • Semantic Preservation Loss ($L_{sem}$): Keeps the perturbations subtle so the image still looks normal and the text remains coherent.
The JailBound framework: from probing internal boundaries to crossing them via joint optimization.

Datasets

The authors evaluated JailBound using MM-SafetyBench, a comprehensive multimodal safety evaluation benchmark.

  • Content: 1,719 adversarial examples across 13 prohibited categories (e.g., Illegal Activity, Hate Speech, Malware Generation, etc.).
  • Structure: Each sample pairs unsafe visual content with a corresponding malicious text prompt.

Key Insights and Ideas

  • The "Know-Say" Disparity: The most profound insight is that a VLM's internal "knowledge" of safety is much more brittle than its "output" behavior. Even when a model says "I can't help with that," its internal state has already processed the harmful intent.
  • Latent Boundaries as Guidance: By treating the safety mechanism as a geometric boundary in high-dimensional space, the researchers turned a difficult optimization problem into a guided search. This avoids the "local optima" that plague other gradient-based attacks.
  • Joint Optimization is Essential: The paper shows that attacking both modalities simultaneously is significantly more effective than attacking either one in isolation. The "fusion" of image and text creates unique vulnerabilities that uni-modal attacks simply can't reach.
Visualizing the three loss components used to steer the model's internal state across the safety boundary.

Key Results

JailBound sets new records for attack effectiveness:

  • White-Box Performance: Achieved an average 94.32% Attack Success Rate (ASR) across six different VLMs, outperforming previous state-of-the-art (SOTA) methods by over 6%.
  • Black-Box Transferability: This is the most alarming result. Attacks optimized on open-source models transferred to commercial "black-box" models with a 67.28% average success rate.
  • GPT-4o Vulnerability: JailBound achieved a 75.24% ASR against GPT-4o, a massive 21% improvement over previous transfer-based attacks.

Limitations and Future Work

While JailBound is highly effective, the authors acknowledge several areas for further study:

  • Defense Gap: The paper focuses on the attack side. The authors highlight an urgent need for new defense mechanisms that protect the internal latent representations, not just the final output.
  • Layer Focus: The current work primarily targets the fusion layers. Future research could explore how safety information is distributed across the vision encoder and the LLM backbone separately.
  • Fixed Budgets: The experiments used a fixed "perturbation budget" (how much the image/text could be changed). A more granular study of the trade-off between perturbation size and attack success could provide deeper insights into model robustness.

Summary updated

BibTeX
@inproceedings{song2025jailbound,
  author = {Jiaxin Song and Yixu Wang and Jie Li and Xuan Tong and rui yu and Yan Teng and Xingjun Ma and Yingchun Wang},
  title = {{JailBound: Jailbreaking Internal Safety Boundaries of Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yg1yfaKolw},
}
Figure