arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.01446cs.CV
收藏

GuardT2I:防御文本到图像模型免受对抗性提示攻击

GuardT2I: Defending Text-to-Image Models from Adversarial Prompts

The Chinese University of Hong Kong(香港中文大学);Tsinghua University(清华大学)

Yijun Yang, Ruiyuan Gao, Xiao Yang, Jianyuan Zhong, Qiang Xu

AI总结:

针对T2I模型易被对抗性提示滥用生成NSFW内容的安全问题,研究提出GuardT2I生成式审核框架,通过LLM转换文本引导嵌入实现检测且不损模型性能,效果显著优于主流商业方案。

摘要:

文本到图像(Text-to-Image, T2I)模型的最新进展引发了重大安全担忧:尽管已有NSFW分类器、针对不当概念移除的模型微调等应对措施,这类模型仍可能被滥用于生成不当或工作场所不安全(Not-Safe-For-Work, NSFW)内容。为应对这一挑战,本研究提出GuardT2I——一种新型审核框架,采用生成式方法提升T2I模型对对抗性提示的鲁棒性。GuardT2I不进行二分类,而是利用大语言模型(Large Language Model, LLM)将T2I模型内的文本引导嵌入有条件地转换为自然语言,以实现有效的对抗性提示检测,且不会损害模型固有性能。大量实验表明,在多种对抗场景下,GuardT2I的性能显著优于OpenAI-Moderation、Microsoft Azure Moderator等主流商业方案。该框架可在https://github.com/cure-lab/GuardT2I获取。

英文摘要:

Recent advancements in Text-to-Image (T2I) models have raised significant safety concerns about their potential misuse for generating inappropriate or Not-Safe-For-Work (NSFW) contents, despite existing countermeasures such as NSFW classifiers or model fine-tuning for inappropriate concept removal. Addressing this challenge, our study unveils GuardT2I, a novel moderation framework that adopts a generative approach to enhance T2I models' robustness against adversarial prompts. Instead of making a binary classification, GuardT2I utilizes a Large Language Model (LLM) to conditionally transform text guidance embeddings within the T2I models into natural language for effective adversarial prompt detection, without compromising the models' inherent performance. Our extensive experiments reveal that GuardT2I outperforms leading commercial solutions like OpenAI-Moderation and Microsoft Azure Moderator by a significant margin across diverse adversarial scenarios. Our framework is available at https://github.com/cure-lab/GuardT2I.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑