Red-teaming text-to-image models via contextual experience replay and semantics-preserving prompt rewritingRed-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewriting
Translation in progress — untranslated text is omitted.
The researchers propose a black-box red-teaming framework, ICER, for text-to-image models that automatically generates fluent natural-language jailbreak prompts, over 30% of which transfer to commercial systems such as DALL-E 3 and Midjourney. To address the shortcomings of existing methods that rely on white-box access or produce uninterpretable adversarial tokens, the framework uses an LLM-based rewriter to generate semantics-preserving adversarial prompts and uses contextual experience replay to accumulate successful jailbreak patterns as reusable priors; the two are integrated via bandit optimization, balancing exploitation of validated attack strategies and exploration of new strategies. Experiments on six safety mechanisms show that ICER outperforms seven baselines under both standard and semantics-preserving evaluations.
- T2I models may generate harmful content, and automated red-teaming tools are needed before deployment. The authors argue that existing methods either require white-box access, produce uninterpretable tokens, or treat each attack independently, and that fluent black-box attacks that preserve the original harmful intent are still lacking.
- Proposes the black-box framework ICER: an LLM (Zephyr-7B-α) rewrites original prompts into fluent adversarial prompts, in-context experience replay stores successful attacks as a few-shot example library, and Thompson Sampling then selects examples to balance exploiting verified patterns and exploring new strategies.
- On six SD1.4 safety T2I models and two concept types, nudity and violence, ICER's FR is higher than all seven baselines; perplexity is lower than the baselines; of 128 universal prompts, 35.58% transfer to DALL·E 3 and 41.35% to Midjourney.
- The authors point out that for filters that directly block generations, continuous rewards fail and the reward function needs to be modified; why these patterns succeed in jailbreaking remains unclear. The main experiments are limited to SD1.4 backbones and the nudity and violence concepts, and commercial systems are tested only for transfer.