mlsanityData to 14 Oct 2026

Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewriting

arXiv 2411.16769 ↗First posted 25 Nov 2024cs.LG cs.CL cs.CRcited by 1

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

  1. 2024SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generation16 Oct
  2. 2024HTS-Attack: Heuristic Token Search for Jailbreaking Text-to-Image Models25 Aug
  3. 2024DiffZOO: A Purely Query-Based Black-Box Attack for Red-teaming Text-to-Image Generative Model via Zeroth Order Optimization18 Aug
  4. 2024Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Models1 Aug
  5. 2024ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning29 May
  6. 2024Automatic Jailbreaking of the Text-to-Image Generative AI Systems26 May
  7. 2024Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models24 May
  8. 2024Erasing Concepts from Text-to-Image Diffusion Models with Few-shot Unlearning12 May
  9. 2023To Generate or Not? Safety-Driven Unlearned Diffusion Models Are Still Easy To Generate Unsafe Images ... For Now18 Oct
  10. 2023Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?16 Oct
  11. 2023Implicit Concept Removal of Diffusion Models9 Oct
  12. 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts12 Sep
4 more
  1. 2023FLIRT: Feedback Loop In-context Red Teaming8 Aug
  2. 2023SneakyPrompt: Jailbreaking Text-to-image Generative Models20 May
  3. 2023Forget-Me-Not: Learning to Forget in Text-to-Image Diffusion Models30 Mar
  4. 2022Red-Teaming the Stable Diffusion Safety Filter3 Oct

Other references · 43

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  3. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  4. 2013Intriguing properties of neural networkscited by 5,155
  5. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  6. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
  7. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  8. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  9. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  10. 2023ImageBind: One Embedding Space To Bind Them Allcited by 1,175
  11. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  12. 2022Red Teaming Language Models with Language Modelscited by 1,026
31 more
  1. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  2. 2016Practical Black-Box Attacks against Machine Learningcited by 903
  3. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
  4. 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 694
  5. 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
  6. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  7. 2016Stealing Machine Learning Models via Prediction APIscited by 619
  8. 2020On Adaptive Attacks to Adversarial Example Defensescited by 555
  9. 2023Erasing Concepts from Diffusion Modelscited by 539
  10. 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 513
  11. 2023Zephyr: Direct Distillation of LM Alignmentcited by 506
  12. 2018Black-box Adversarial Attacks with Limited Queries and Informationcited by 501
  13. 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Modelscited by 379
  14. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
  15. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  16. 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
  17. 2023MMA-Diffusion: MultiModal Attack on Diffusion Modelscited by 194
  18. 2023One-Dimensional Adapter to Rule Them All: Concepts, Diffusion Models and Erasing Applicationscited by 169
  19. 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teamingcited by 163
  20. 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 155
  21. 2018Prior Convictions: Black-Box Adversarial Attacks with Bandits and Priorscited by 146
  22. 2024Large Language Models to Enhance Bayesian Optimizationcited by 135
  23. 2024Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Modelscited by 133
  24. 2023Receler: Reliable Concept Erasing of Text-to-Image Diffusion Models via Lightweight Eraserscited by 120
  25. 2024Curiosity-driven Red-teaming for Large Language Modelscited by 88
  26. 2024Latent Guard: a Safety Framework for Text-to-image Generationcited by 71
  27. 2024R.A.C.E.: Robust Adversarial Concept Erasure for Secure Text-to-Image Diffusion Modelcited by 58
  28. 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Modelscited by 35
  29. 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimizationcited by 32
  30. 2024All in How You Ask for It: Simple Black-Box Method for Jailbreak Attackscited by 32
  31. 2024Iteratively Prompting Multimodal LLMs to Reproduce Natural and AI-Generated Imagescited by 9

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025From Seed to Harvest: Augmenting Human Creativity with AI for Red-teaming Text-to-Image Models
  2. 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Models
  3. 2025AutoPrompt: Automated Red-Teaming of Text-to-Image Models via LLM-Driven Adversarial Prompts
  4. 2026Automatic Red Teaming for Implicit Vulnerabilities of Text-to-Image Models
  5. 2024Adversarial Nibbler: An Open Red-Teaming Method for Identifying Diverse Harms in Text-to-Image Generation
  6. 2025GenBreak: Red Teaming Text-to-Image Generators Using Large Language Models
  7. 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users
  8. 2025DREAM: Scalable Red Teaming for Text-to-Image Generative Systems via Distribution Modeling