Prompting4Debugging: Red-teaming text-to-image diffusion models by finding problematic promptsPrompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts
Translation in progress — untranslated text is omitted.
The researchers propose Prompting4Debugging (P4D), a red-teaming debugging tool that automatically finds problematic prompts for text-to-image diffusion models such as Stable Diffusion, used to test the reliability of deployed safety mechanisms. Experiments show that about half of the prompts in existing safety prompt benchmarks that were originally regarded as safe can, after manipulation, bypass various deployed safety mechanisms such as concept removal, negative prompts, and safety guidance. The authors note that, without comprehensive testing, evaluations relying only on limited safety prompt benchmarks may give text-to-image models a false sense of safety.
- T2I diffusion models with safety mechanisms may still generate copyrighted or NSFW content, while known bypass cases are discovered manually and are difficult to scale; before deployment, there is a lack of automated red-teaming tools to systematically test the reliability of safety mechanisms.
- P4D uses an unconstrained diffusion model to optimize prompts in latent space so that the noise prediction of the model with a safety mechanism approaches that of the unconstrained model, thereby finding problematic prompts that can bypass the safety mechanism; it includes two variants, P4D-N and P4D-K.
- On the I2P and ESD object datasets, P4D-UNION raises the failure rate of each safe T2I model to 40.98%–72.74% (Table 2); the universal prompt can transfer to SDXL (56.14%) and Midjourney (30.70%), while DALL·E 3 is only 8.77% (Table 5).
- The authors note that the method requires white-box access to both the unconstrained and the safe model, which is limited for closed-source models that only provide an API; in the future they hope to relax this constraint and explore debugging methods that adapt to closed-source models; the optimized prompts may lack semantic coherence.