DREAM: Scalable Red Teaming for Text-to-Image Generative Systems via Distribution Modeling
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
Despite the integration of safety alignment and external filters, text-to-image (T2I) generative systems are still susceptible to producing harmful content, such as sexual or violent imagery. This raises serious concerns about unintended exposure and potential misuse. Red teaming, which aims to proactively identify diverse prompts that can elicit unsafe outputs from the T2I system, is increasingly recognized as an essential method for assessing and improving safety before real-world deployment. However, existing automated red teaming approaches often treat prompt discovery as an isolated, prompt-level optimization task, which limits their scalability, diversity, and overall effectiveness. To bridge this gap, in this paper, we propose DREAM, a scalable red teaming framework to automatically uncover diverse problematic prompts from a given T2I system. Unlike prior work that optimizes prompts individually, DREAM directly models the probabilistic distribution of the target system's problematic prompts, which enables explicit optimization over both effectiveness and diversity, and allows efficient large-scale sampling after training. To achieve this without direct access to representative training samples, we draw inspiration from energy-based models and reformulate the objective into a simple and tractable form. We further introduce GC-SPSA, an efficient optimization algorithm that provides stable gradient estimates through the long and potentially non-differentiable T2I pipeline. During inference, we also propose a diversity-aware sampling strategy to enhance prompt variety. The effectiveness of DREAM is validated through extensive experiments, demonstrating state-of-the-art performance across a wide range of T2I models and safety filters in terms of both prompt success rate and diversity. Our code is available at https://github.com/AntigoneRandy/DREAM
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 60 of its 101 references that are in the map. First posted on arXiv 22 Jul 2025.
Builds on
60 of 101 references.
References · 60
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,137
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,114
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
38 more
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2022Diffusion Models in Vision: A Surveycited by 1,015
- 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 724
- 2023Erasing Concepts from Diffusion Modelscited by 539
- 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
- 2023BLIP-Diffusion: Pre-trained Subject Representation for Controllable Text-to-Image Generation and Editingcited by 442
- 2023Unified Concept Editing in Diffusion Modelscited by 388
- 2023Fine-Tuning Language Models with Just Forward Passescited by 345
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2023Ablating Concepts in Text-to-Image Diffusion Modelscited by 317
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 311
- 2023Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?cited by 250
- 2023To Generate or Not? Safety-Driven Unlearned Diffusion Models Are Still Easy To Generate Unsafe Images ... For Nowcited by 210
- 2023MMA-Diffusion: MultiModal Attack on Diffusion Modelscited by 194
- 2023SneakyPrompt: Jailbreaking Text-to-image Generative Modelscited by 189
- 2023Unsafe Diffusion: On the Generation of Unsafe Images and Hateful Memes From Text-To-Image Modelscited by 175
- 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Promptscited by 171
- 2024Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Modelscited by 168
- 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 155
- 2024Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Modelscited by 133
- 2023Mechanistically analyzing the effects of fine-tuning on procedurally defined taskscited by 115
- 2024Curiosity-driven Red-teaming for Large Language Modelscited by 88
- 2023FLIRT: Feedback Loop In-context Red Teamingcited by 83
- 2024Red-Teaming for Generative AI: Silver Bullet or Security Theater?cited by 83
- 2023A Pilot Study of Query-Free Adversarial Attack against Stable Diffusioncited by 76
- 2024SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Modelscited by 66
- 2024UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Imagescited by 53
- 2024Enhancing Zeroth-order Fine-tuning for Language Models with Low-rank Structurescited by 50
- 2024Provably Robust Multi-bit Watermarking for AI-generated Textcited by 47
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 46
- 2024Perception-guided Jailbreak against Text-to-Image Modelscited by 40
- 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Userscited by 35
- 2023SurrogatePrompt: Bypassing the Safety Filter of Text-to-Image Models via Substitutioncited by 34
- 2024Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Modelscited by 27
- 2024Kandinsky 3: Text-to-Image Synthesis for Multifunctional Generative Frameworkcited by 25
- 2024Adversarial Nibbler: An Open Red-Teaming Method for Identifying Diverse Harms in Text-to-Image Generationcited by 20
- 2024AlignGuard: Scalable Safety Alignment for Text-to-Image Generationcited by 20
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025TEAR: Temporal-aware Automated Red-teaming for Text-to-Video Modelscited by 3
- 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimizationcited by 3
- 2025Towards Effective Prompt Stealing Attack against Text-to-Image Diffusion Modelscited by 2
- 2026Position: Preventing AI-Generated CSAM Necessitates New Approaches to AI Safetycited by 0
- 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Modelscited by 0
- 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Models28 Sep 2026
- 2026Position: Preventing AI-Generated CSAM Necessitates New Approaches to AI Safety9 Jun 2026
- 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization22 Mar 2026
- 2025TEAR: Temporal-aware Automated Red-teaming for Text-to-Video Models26 Nov 2025
- 2025Towards Effective Prompt Stealing Attack against Text-to-Image Diffusion Models9 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2025GenBreak: Red Teaming Text-to-Image Generators Using Large Language Models
- 2024Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewriting
- 2024DiffZOO: A Purely Query-Based Black-Box Attack for Red-teaming Text-to-Image Generative Model via Zeroth Order Optimization
- 2025Red-Teaming Text-to-Image Systems by Rule-based Preference Modeling
- 2026Automatic Red Teaming for Implicit Vulnerabilities of Text-to-Image Models
- 2025From Seed to Harvest: Augmenting Human Creativity with AI for Red-teaming Text-to-Image Models
- 2024Against The Achilles' Heel: A Survey on Red Teaming for Generative Models
- 2025Text-Diffusion Red-Teaming of Large Language Models: Unveiling Harmful Behaviors with Proximity Constraints