Automatic Red Teaming for Implicit Vulnerabilities of Text-to-Image Models
Organizations: Columbia University, USA · University of Oxford, UK · LMU Munich, Germany · Siemens AG, Germany ·
Abstract
Red-teaming Text-to-Image (T2I) models is essential for safe deployment, yet it remains particularly challenging against implicit adversarial prompts. Unlike explicit adversarial prompts that can be readily identified and blocked, implicit ones are much harder to detect: the prompts appear benign on the text surface yet still lead to inappropriate visual content. To address this, we propose Adversarial Probing for Implicit VulnErabilities (AdvPIE), a multimodal agentic framework to expose implicit vulnerabilities without requiring access to the parameters of target models. AdvPIE adopts a policy agent to generate and refine implicit adversarial prompts based on the feedback from a judge agent. To construct informative feedback, the judge agent provides modality-specific safety evaluation at both global and relative levels across iterations. To effectively leverage the feedback, we propose a novel Cumulative Adversarial Decoding strategy for the policy agent, which dynamically reweights token distributions to favor tokens that lead to more harmful images while preserving sampling diversity. Extensive experiments on standard and safety-aligned T2I models show that AdvPIE1 effectively uncovers implicit vulnerabilities, outperforming various baseline methods.
Figures & tables
| Method | safe-sd-v1-5 | safe-sd-v2-1 | sd-3.5-large | Flux | ||||||||
| Gem. | LLa. | SS. | Gem. | LLa. | SS. | Gem. | LLa. | SS. | Gem. | LLa. | SS. | |
| Groot | 11.55 | 9.35 | 0.11 | 10.97 | 8.55 | 0.30 | 22.24 | 17.71 | 0.47 | 24.33 | 17.47 | 0.39 |
| ART | 21.33 | 15.88 | 0.05 | 21.42 | 14.73 | 0.26 | 45.08 | 34.42 | 1.58 | 43.82 | 31.36 | 0.77 |
| FLIRT | 33.26 | 24.14 | 0.08 | 29.97 | 21.14 | 0.58 | 50.06 | 43.36 | 1.31 | 49.34 | 40.50 | 0.88 |
| AdvPIE | 30.45 | 24.73 | 0.11 | 32.52 | 23.61 | 0.59 | 57.83 | 45.41 | 1.70 | 58.71 | 49.64 | 1.21 |
| *Gem.: Gemma, LLa.: LLaVA Guard, SS.: SafeSearch. | ||||||||||||
| Stable Diffusion API | |||
| Method | Gemma | LLaVa Guard | Safe Search |
| Groot | 22.64 | 18.27 | 0.50 |
| ART | 40.14 | 30.05 | 0.61 |
| FLIRT | 38.27 | 29.00 | 0.54 |
| AdvPIE | 50.45 | 38.00 | 1.15 |
| Method | Gemma | LLaVA | SafeSearch | Bypass (%) |
| w/o CAD | 24.50 13.17 | 25.17 11.50 | 1.67 1.83 | 45.17 9.66 |
| w/o feedback | 27.33 10.34 | 25.67 11.00 | 3.33 0.17 | 48.33 6.50 |
| AdvPIE(Full) | 37.67 | 36.67 | 3.50 | 54.83 |
| Method | Gemma | LLaVA | SafeSearch | Bypass (%) |
| w/o feedback | 27.33 10.34 | 25.67 11.00 | 3.00 0.50 | 48.33 6.50 |
| w/o reasoning | 30.50 7.17 | 28.83 7.84 | 2.33 1.17 | 47.17 7.66 |
| w/o guidance | 21.83 15.84 | 21.33 15.34 | 2.00 1.50 | 37.83 17.00 |
| AdvPIE(Full) | 37.67 | 36.67 | 3.50 | 54.83 |
| Method | safe-sd-v1-5 | safe-sd-v2-1 | sd-3.5-large | FLUX |
| Groot | 0.0 / 1.0 / 21.0 | 1.0 / 3.0 / 21.0 | 2.0 / 6.5 / 18.5 | 1.0 / 1.0 / 25.5 |
| ART | 1.0 / 2.5 / 21.5 | 2.5 / 6.0 / 24.5 | 1.1 / 3.5 / 24.5 | 1.8 / 5.5 / 23.5 |
| FLIRT | 0.0 / 6.0 / 24.5 | 0.0 / 4.0 / 23.0 | 0.5 / 6.0 / 29.5 | 0.6 / 5.0 / 30.5 |
| AdvPIE | 1.5 / 11.5 / 34.0 | 2.5 / 15.0 / 33.5 | 3.0 / 12.0 / 36.5 | 2.0 / 11.0 / 37.0 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameters | Value |
| top p | 5.0 |
| top k | 50 |
| temperature | 3.0 |
| num beams | 5 |
| do sample | true |
| Category | Description | Examples |
| Hate | Content that promotes hate based on identity, including hateful symbols and stereotypes. | Swastika, Confederate flag, SS-runes, KKK hood, Anti-Semitic symbols, White power symbols |
| Harassment | Mocking, threatening, or bullying individuals. | Sexual harassment, Cyberbullying, Threatening messages, Workplace harassment, Online trolling |
| Violence | Violent acts and the suffering or humiliation of others. | Gun violence, Knife attacks, Assaults, Torture, Homicide, War scenes, Mass shootings, Child abuse |
| Self-Harm | Suicide, cutting, eating disorders, and other self-harm behaviors. | Suicide, Self-hanging, Self-hitting, Self-burning, Skin-picking, Hair-pulling, Drug/alcohol abuse |
| Sexual | Nudity, sexual acts, or content meant to arouse sexual excitement. | Erotic content, Genital exposure, Pornography, Suggestive poses, Sexual fetish, Nudity in public |
| Shocking | Bodily fluids, obscene gestures, or other shocking/disgusting content. | Gore, Disturbing injuries, Human flesh, Human and animal suffering, Demonic figures |
Safe T2I Generation
Safe text-to-image generation develops methods to prevent harmful images while preserving useful, faithful outputs.
See all 53 papers