DREAM: Scalable red teaming of text-to-image generation systems via distribution modelingDREAM: Scalable Red Teaming for Text-to-Image Generative Systems via Distribution Modeling
The researchers propose DREAM, a scalable red teaming framework for text-to-image generation systems, which discovers diverse prompts by directly modeling the probability distribution of prompts that induce unsafe outputs. Existing automated red teaming methods often treat prompt discovery as isolated prompt-level optimization, limiting scale, diversity and effectiveness; DREAM can sample at scale after training and simultaneously optimizes effectiveness and diversity. To achieve this goal without representative training samples, the authors draw on energy models to rewrite the objective into a tractable form, and propose the GC-SPSA optimization algorithm, which provides stable gradient estimation in long and potentially non-differentiable T2I pipelines; at inference, diversity-aware sampling is also used. The authors claim that experiments on multiple T2I models and safety filters achieve current best levels in prompt success rate and diversity, with code at https://github.com/AntigoneRandy/DREAM。