Dynamic Optimization and Safety Indicator Injection for Jailbreaking Text-to-Image Models with Multimodal Safety Filters
On the map: LLM safety and security → Vision-language and text-to-image safety
Abstract (arXiv)
Text-to-image (T2I) models can generate not-safe-for-work (NSFW) content, motivating multi-stage safety pipelines with both text and image filters. Newer LLM-based filters detect latent intent beyond keywords, making token-level perturbation attacks unreliable. Our evaluation further shows that existing jailbreak methods exhibit a sharp trade-off between filter evasion and semantic fidelity, while also requiring excessive queries to succeed. We introduce OptJail, an automated jailbreak framework that combines dynamic prompt optimization with multimodal feedback. It consists of two key components: (i) textitDynamic Optimization, an iterative process that leverages text-filter feedback and semantic consistency to rewrite prompts into adversarial variants; and (ii) textitAdaptive Safety Indicator Injection, which formulates the injection of benign visual cues as a reinforcement learning problem to bypass image-level filters. OptJail achieves state-of-the-art performance, increasing the ShieldLM-7B bypass rate from 8.9% (Sneakyprompt) to 99.0%, improving CLIP score from 0.2637 to 0.2762. Moreover, it generalizes to unseen filters and successfully jailbreaks DALL E 3 in our evaluation. Mechanistic analysis reveals why these defenses fail: optimized prompts are projected into the ``safe'' region of the filter's representation space yet remain nearly stationary in the generative model's semantic space, and injected safety indicators redirect image detectors' attention away from NSFW content toward benign visual cues. This study reveals systemic vulnerabilities in current multimodal defenses and motivates stronger adaptive defenses.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Vision-language and text-to-image safety, one of 12 directions in LLM safety and security. Builds on 29 of its 44 references that are in the map. First posted on arXiv 25 May 2025.
Builds on
29 of 44 references.
Closest ancestors · 7
Same direction, newest first
- 2024Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Models1 Aug
- 2024SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Models10 Apr
- 2024GuardT2I: Defending Text-to-Image Models from Adversarial Prompts3 Mar
- 2023Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?16 Oct
- 2023SneakyPrompt: Jailbreaking Text-to-image Generative Models20 May
- 2023Black Box Adversarial Prompting for Foundation Models8 Feb
- 2022Red-Teaming the Stable Diffusion Safety Filter3 Oct
Other references · 22
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Taskscited by 2,565
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
- 2023Unified Concept Editing in Diffusion Modelscited by 388
10 more
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 270
- 2023MMA-Diffusion: MultiModal Attack on Diffusion Modelscited by 194
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 183
- 2023Unsafe Diffusion: On the Generation of Unsafe Images and Hateful Memes From Text-To-Image Modelscited by 175
- 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 155
- 2023A Pilot Study of Query-Free Adversarial Attack against Stable Diffusioncited by 76
- 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectorscited by 51
- 2022Character-level White-Box Adversarial Attacks against Transformers via Attachable Subwords Substitutioncited by 28
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimizationcited by 3
- 2026A Systematic Review of Algorithmic Red Teaming Methodologies for Assurance and Security of AI Applicationscited by 1
- 2026ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion modelscited by 0
- 2026Whispers in the Noise: Surrogate-Guided Concept Awakening via a Multi-Agent Frameworkcited by 0
- 2026Jailbreaking Text-to-Image Models Through Cracks: Navigating Heterogeneous Safety Filters via Multi-Agent Debatecited by 0
- 2026Jailbreaking Text-to-Image Models Through Cracks: Navigating Heterogeneous Safety Filters via Multi-Agent Debate1 Sep 2026
- 2026Whispers in the Noise: Surrogate-Guided Concept Awakening via a Multi-Agent Framework18 May 2026
- 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization22 Mar 2026
- 2026A Systematic Review of Algorithmic Red Teaming Methodologies for Assurance and Security of AI Applications24 Feb 2026
- 2026ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion models30 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026Low-Effort Jailbreak Attacks Against Text-to-Image Safety Filters
- 2026Mind the Gap: Zero-Query Jailbreaks via Filter-Generator Discrepancy in Text-to-Image Systems
- 2025Universally Unfiltered and Unseen:Input-Agnostic Multimodal Jailbreaks against Text-to-Image Model Safeguards
- 2025Benign-to-Toxic Jailbreaking: Inducing Harmful Responses from Harmless Prompts
- 2024Multimodal Pragmatic Jailbreak on Text-to-image Models
- 2026Open Models, Open Risks: Measuring Unsafe Generation in Text-to-Image Models In the Wild
- 2025JPS: Jailbreak Multimodal Large Language Models with Collaborative Visual Perturbation and Textual Steering
- 2025T2V-OptJail: Discrete Prompt Optimization for Text-to-Video Jailbreak Attacks