通过上下文经验回放和语义保留提示重写对文本到图像模型进行红队测试
Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewriting
AI总结:
本文提出ICER框架,通过提示重写和上下文经验回放生成流畅的对抗性提示,有效提升图像生成模型的安全性测试能力,实验表明其在多个安全机制上优于现有方法。
摘要:
理解文本到图像(T2I)模型在生成有害内容方面的能力对于安全和合规至关重要。然而,人类红队测试成本高且不一致,推动了自动工具的需求,以模拟现实中的滥用尝试。现有方法要么需要白盒访问,要么无法跨防御泛化,或生成不可解释的对抗性标记,而生成流畅的提示以保留原始有害意图仍不被充分探索。我们提出ICER,一个黑盒框架,通过两个组件解决这一差距:基于LLM的重写器生成流畅的对抗性提示,以及上下文经验回放将成功的绕过模式积累到可重用的先验中。这些组件通过多臂优化整合,使ICER能够高效平衡利用已证明的攻击策略与探索新策略。在六个安全机制上的实验表明,ICER在标准和语义保留评估下均优于七个基线方法,超过30%的生成提示转移到商业系统如DALL-E 3和Midjourney。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。