Skip to main content
LLM Security Database
Skip to research details
Back to research findings

VLM Latent Boundary Crossing

Published
Analyzed
Paper-reported evidence
Primary source linked
Read primary paper
Cite & share
Source BibTeX

Citation metadata is maintained by the primary source and may reflect a later revision.

Paper-evaluated models(6)

Llama 3.2 11B Vision Instruct, Qwen 2.5 VL 7B Instruct, MiniGPT-4 +3 more
  • Llama 3.2 11B Vision Instruct
  • Qwen 2.5 VL 7B Instruct
  • MiniGPT-4
  • GPT-4o
  • Gemini 2.0 Flash
  • Claude 3.5 Sonnet
On this page

Description

Vision-Language Models (VLMs) contain a vulnerability in their multimodal fusion layers where safety-relevant information is linearly separable in the latent space. This allows for a "JailBound" attack, which exploits the implicit internal safety decision boundary. The attack proceeds in two stages: (1) Safety Boundary Probing, where attackers approximate the internal decision hyperplane by training layer-wise logistic regression classifiers on the fusion representations of safe versus unsafe inputs; and (2) Safety Boundary Crossing, where attackers jointly optimize adversarial perturbations for both the input image (continuous pixel manipulation) and the text prompt (discrete token suffix optimization). By steering the model’s internal fused representation across the probed boundary while minimizing geometric and semantic deviation, attackers can bypass safety alignment mechanisms and elicit policy-violating responses.

Examples

To reproduce the vulnerability, an attacker must implement the JailBound framework using the following optimization procedure:

  1. Safety Boundary Probing:
  • Curate a dataset D={(h(i),y(i))}\mathbb{D} = \{(h^{(i)}, y^{(i)})\} containing fused representations hh of safe (y=0y=0) and unsafe (y=1y=1) inputs.
  • Train a logistic regression classifier (w,bw, b) on a target fusion layer ll to minimize: min⁡w,b1N∑[−y(i)log⁡Pm(i)−(1−y(i))log⁡(1−Pm(i))]\min_{w,b} \frac{1}{N} \sum [-y^{(i)}\log P_m^{(i)} - (1-y^{(i)})\log(1-P_m^{(i)})]
  • Derive the normal vector v(l)v^{(l)} and perturbation magnitude ε(l)\varepsilon^{(l)} from the learned boundary.
  1. Safety Boundary Crossing (Attack Execution):
  • Select a target harmful query (e.g., asking for instructions on synthesizing dangerous chemicals) from the MM-SafetyBench dataset.
  • Initialize a clean image XvrawX_v^{raw} and the text input XtrawX_t^{raw}.
  • Iteratively optimize a visual perturbation δvinput\delta_v^{input} and a textual suffix XtsuffixX_t^{suffix} to minimize the total loss Ltotal=Lalign+λ1Lsem+λ2Lgeo\mathcal{L}_{total} = \mathcal{L}_{align} + \lambda_1 \mathcal{L}_{sem} + \lambda_2 \mathcal{L}_{geo}.
  • Visual Step: Update δv\delta_v via gradient descent ensuring L∞L_\infty norm constraint (ϵ=8/255\epsilon = 8/255).
  • Textual Step: Update suffix tokens using gradient-based token replacement to match the target embedding shift δtemb=−ηt∇xtL\delta_t^{emb} = -\eta_t \nabla_{x_t} \mathcal{L}.
  • Result: The VLM generates the restricted content.

See the MM-SafetyBench dataset arXiv:2311.17600 (opens in a new tab) for specific harmful prompt/image pairs used to validate this attack. See the primary evaluation, JailBound (opens in a new tab), for the tested vision-language models and reported results.

Impact

  • Safety Bypass: Circumvention of safety guardrails preventing the generation of hate speech, physical harm instructions, financial fraud advice, and illegal activity guides.
  • High Success Rate: Achieves up to 94.38% Attack Success Rate (ASR) in white-box settings.
  • Black-box Transfer: Adversarial examples generated on white-box models transfer effectively to commercial black-box models, achieving 75.24% ASR against GPT-4o and 70.06% against Gemini 2.0 Flash.

Affected Systems

  • Llama 3.2 11B Vision Instruct
  • Qwen 2.5 VL 7B Instruct
  • MiniGPT-4
  • (Transferable to) GPT-4o, Gemini 2.0 Flash, Claude 3.5 Sonnet

Mitigation Steps

  • Cross-Modal Safety Mechanisms: Implement safety alignment strategies that specifically secure latent knowledge representations within fusion layers, rather than relying solely on text-decoder alignment.
  • Obfuscation of Latent Boundaries: Develop training techniques that reduce the linear separability of safe vs. unsafe inputs in the fusion layer's latent space to prevent accurate boundary probing.
  • Adversarial Training: Incorporate fusion-centric adversarial examples (perturbing both image and text simultaneously) into the model's safety training curriculum.

Research context and provenance

Catalog identifier
LMVD-4c1ad06b
Internal research identifier, not an official CVE identifier.
Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
White-box access to model or deployment internals.
Related deployment categories
Vision-language models
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Llama 3.2 11B Vision Instruct Qwen 2.5 VL 7B Instruct MiniGPT-4 (Transferable to) GPT-4o, Gemini 2.0 Flash, Claude 3.5 Sonnet

Research Paper

JailBound: Jailbreaking Internal Safety Boundaries of Vision-Language Models

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2505.19610