Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewriting
On the map: LLM safety and security → Vision-language and text-to-image safety
Abstract (arXiv)
Understanding the capabilities of text-to-image (T2I) models in harmful content generation is essential to safety and compliance. However, human red-teaming is costly and inconsistent, driving the need for automatic tools that simulate realistic misuse attempts. Existing methods either require white-box access, fail to generalize across defenses, or produce uninterpretable adversarial tokens, while generating fluent prompts that preserve the original harmful intent remains underexplored despite its practical relevance. We propose ICER, a black-box framework that addresses this gap through two components: an LLM-based rewriter that produces fluent, natural-language adversarial prompts, and in-context experience replay that accumulates successful jailbreaking patterns into a reusable prior. These components are integrated via bandit optimization, enabling ICER to efficiently balance exploiting proven attack strategies with exploring new ones. Experiments across six safety mechanisms show that ICER outperforms seven baselines under both standard and semantics-preserving evaluation, with over 30% of generated prompts transferring to commercial systems like DALL-E 3 and Midjourney.
Key facts. Cited by 1 paper 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 59 of its 68 references that are in the map. First posted on arXiv 25 Nov 2024.
Builds on
59 of 68 references.
Closest ancestors · 16
Same direction, newest first
- 2024SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generation16 Oct
- 2024HTS-Attack: Heuristic Token Search for Jailbreaking Text-to-Image Models25 Aug
- 2024DiffZOO: A Purely Query-Based Black-Box Attack for Red-teaming Text-to-Image Generative Model via Zeroth Order Optimization18 Aug
- 2024Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Models1 Aug
- 2024ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning29 May
- 2024Automatic Jailbreaking of the Text-to-Image Generative AI Systems26 May
- 2024Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models24 May
- 2024Erasing Concepts from Text-to-Image Diffusion Models with Few-shot Unlearning12 May
- 2023To Generate or Not? Safety-Driven Unlearned Diffusion Models Are Still Easy To Generate Unsafe Images ... For Now18 Oct
- 2023Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?16 Oct
- 2023Implicit Concept Removal of Diffusion Models9 Oct
- 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts12 Sep
4 more
Other references · 43
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2013Intriguing properties of neural networkscited by 5,155
- 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
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2023ImageBind: One Embedding Space To Bind Them Allcited by 1,175
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Red Teaming Language Models with Language Modelscited by 1,026
31 more
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2016Practical Black-Box Attacks against Machine Learningcited by 903
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 694
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2016Stealing Machine Learning Models via Prediction APIscited by 619
- 2020On Adaptive Attacks to Adversarial Example Defensescited by 555
- 2023Erasing Concepts from Diffusion Modelscited by 539
- 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
- 2023Zephyr: Direct Distillation of LM Alignmentcited by 506
- 2018Black-box Adversarial Attacks with Limited Queries and Informationcited by 501
- 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Modelscited by 379
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
- 2023MMA-Diffusion: MultiModal Attack on Diffusion Modelscited by 194
- 2023One-Dimensional Adapter to Rule Them All: Concepts, Diffusion Models and Erasing Applicationscited by 169
- 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teamingcited by 163
- 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 155
- 2018Prior Convictions: Black-Box Adversarial Attacks with Bandits and Priorscited by 146
- 2024Large Language Models to Enhance Bayesian Optimizationcited by 135
- 2024Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Modelscited by 133
- 2023Receler: Reliable Concept Erasing of Text-to-Image Diffusion Models via Lightweight Eraserscited by 120
- 2024Curiosity-driven Red-teaming for Large Language Modelscited by 88
- 2024Latent Guard: a Safety Framework for Text-to-image Generationcited by 71
- 2024R.A.C.E.: Robust Adversarial Concept Erasure for Secure Text-to-Image Diffusion Modelcited by 58
- 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Modelscited by 35
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimizationcited by 32
- 2024All in How You Ask for It: Simple Black-Box Method for Jailbreak Attackscited by 32
- 2024Iteratively Prompting Multimodal LLMs to Reproduce Natural and AI-Generated Imagescited by 9
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025From Seed to Harvest: Augmenting Human Creativity with AI for Red-teaming Text-to-Image Models
- 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Models
- 2025AutoPrompt: Automated Red-Teaming of Text-to-Image Models via LLM-Driven Adversarial Prompts
- 2026Automatic Red Teaming for Implicit Vulnerabilities of Text-to-Image Models
- 2024Adversarial Nibbler: An Open Red-Teaming Method for Identifying Diverse Harms in Text-to-Image Generation
- 2025GenBreak: Red Teaming Text-to-Image Generators Using Large Language Models
- 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users
- 2025DREAM: Scalable Red Teaming for Text-to-Image Generative Systems via Distribution Modeling