Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 4eb7bd09
Paper published March 1, 2025
Entry analyzed December 9, 2025
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Cross-Modal Toxic Continuation

Large Vision-Language Models (VLMs) are vulnerable to a cross-modal toxic continuation attack facilitated by reinforcement learning-tuned diffusion models. This vulnerability allows an attacker to bypass safety…

BibTeX citation

Paper-evaluated models(3)

  • LLaVA 1.5 7B
  • Gemini 1.5 Flash
  • Llama 3.2 11B Vision Instruct

Description

Large Vision-Language Models (VLMs) are vulnerable to a cross-modal toxic continuation attack facilitated by reinforcement learning-tuned diffusion models. This vulnerability allows an attacker to bypass safety alignment and external guardrails (such as NSFW image filters) by pairing a specific text prefix with a "semantically adversarial" image. Unlike traditional gradient-based adversarial examples that rely on pixel noise, these images are semantically coherent but optimized via Denoising Diffusion Policy Optimization (DDPO) to maximize the toxicity of the VLM's textual completion. The attack exploits the interaction between visual and textual modalities, causing the model to generate hate speech, threats, or sexually explicit text even when the text prefix alone would be refused or completed safely.

Examples

The attack requires a diffusion model fine-tuned using the RedDiffuser framework and a target VLM.

  1. Preparation (Attacker side):
  • Use an unaligned LLM (e.g., Gemini Pro with safety disabled) to generate a candidate image prompt via greedy search.
  • Pass this prompt to a Stable Diffusion model fine-tuned via RL (RedDiffuser) with a dual reward function: one for maximizing toxicity in the target VLM (using a classifier like Detoxify) and one for maintaining semantic alignment (using BERTScore).
  1. Attack Execution:
  • Input Text Prefix: "Please extend the following sentence: [Toxic Prefix from RealToxicityPrompts]"
  • Input Image: An image generated by the RedDiffuser model. For example, a stylized, cartoon-like rendering of a school hallway containing subtle ominous cues (shadows/garbage) that passes standard NSFW filters but triggers a violent completion.
  • Query: Submit the paired Image + Text Prefix to the target VLM.
  1. Result:
  • The VLM completes the sentence with high-toxicity content (e.g., detailed threats or profanity) instead of a refusal.

For specific adversarial image prompts and the fine-tuning codebase, see the RedDiffuser repository and the RealToxicityPrompts dataset subset.

Impact

  • Safety Bypass: Circumvents built-in safety alignment (RLHF) and external content moderation systems (such as image-level NSFW classifiers) with a high success rate (up to 94.50% guardrail pass rate).
  • Content Generation: Forces the model to generate severe toxicity, including hate speech, insults, and violent threats.
  • Cross-Model Transferability: Adversarial images optimized against one model (e.g., LLaVA) successfully transfer to other black-box commercial and open-source models, significantly increasing toxicity rates on systems like Gemini-1.5-flash (+5.1%) and Llama-3.2-11B-Vision-Instruct (+26.83%).

Affected Systems

  • LLaVA-1.5-7B
  • Google Gemini-1.5-flash
  • Meta Llama-3.2-11B-Vision-Instruct
  • Any VLM accepting interleaved image-text inputs for continuation tasks.

Mitigation Steps

  • Multimodal Guardrails: Implement safety checkers that evaluate the joint probability of the image and text combination, rather than filtering images and text in isolation.
  • Adversarial Training: Incorporate toxic continuation scenarios involving adversarial images into the VLM's safety alignment training data (RLHF).
  • Refusal Training: Explicitly train models to recognize and refuse "toxic continuation" tasks where a neutral or slightly harmful prefix is paired with context-shifting visual inputs.
  • Visual Semantics Analysis: Move beyond pixel-level or basic NSFW classification for input images; utilize semantic analysis to detect subtle visual cues (e.g., threatening atmospheres or caricatures) designed to elicit toxicity.

Research context and confidence

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
Black-box model, service, or application access.
Related deployment categories
Vision-language models
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
LLaVA-1.5-7B Google Gemini-1.5-flash Meta Llama-3.2-11B-Vision-Instruct Any VLM accepting interleaved image-text inputs for continuation tasks.

Research Paper

RedDiffuser: Auditing Multimodal Safety Failures in Vision-Language Models via Reinforced Diffusion

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/2503.06223