arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.19360cs.CRcs.AI
收藏

ART:面向文本到图像模型的自动红队测试以保护良性用户

ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users

Nanyang Technological University(南洋理工大学);Xidian University(西安电子科技大学);A*STAR(新加坡科技研究局);CFAR(计算与算法研究中心);IHPC(高性能计算研究所)

Guanlin Li, Kangjie Chen, Shudong Zhang, Jie Zhang, Tianwei Zhang

AI总结:

针对文本到图像模型在安全提示词下仍可能生成不安全内容的风险,提出自动红队测试框架ART,结合视觉语言模型与大型语言模型高效识别模型漏洞,并构建三个大规模数据集揭示主流开源模型的毒性。

摘要:

大规模预训练生成模型因其生成创意内容的能力正风靡全球。与此同时,为保护用户权利与安全,针对这些生成模型的防护机制也相继开发,但其中大部分专为大型语言模型设计。现有方法主要关注越狱与对抗攻击,多在恶意提示词下评估模型安全性。近期研究发现,人工编写的安全提示词也可能无意中引发不安全的生成内容。为更系统地评估文本到图像模型的安全风险,我们提出了一种新颖的自动红队测试框架ART。该方法结合视觉语言模型与大型语言模型,建立不安全生成内容与其提示词之间的联系,从而更高效地识别模型漏洞。通过全面实验,我们揭示了主流开源文本到图像模型的毒性。实验还验证了ART的有效性、适应性及高度多样性。此外,我们引入了三个大规模红队测试数据集,用于研究文本到图像模型相关的安全风险。数据集和模型可在https://github.com/GuanlinLee/ART获取。

英文摘要:

Large-scale pre-trained generative models are taking the world by storm, due to their abilities in generating creative content. Meanwhile, safeguards for these generative models are developed, to protect users' rights and safety, most of which are designed for large language models. Existing methods primarily focus on jailbreak and adversarial attacks, which mainly evaluate the model's safety under malicious prompts. Recent work found that manually crafted safe prompts can unintentionally trigger unsafe generations. To further systematically evaluate the safety risks of text-to-image models, we propose a novel Automatic Red-Teaming framework, ART. Our method leverages both vision language model and large language model to establish a connection between unsafe generations and their prompts, thereby more efficiently identifying the model's vulnerabilities. With our comprehensive experiments, we reveal the toxicity of the popular open-source text-to-image models. The experiments also validate the effectiveness, adaptability, and great diversity of ART. Additionally, we introduce three large-scale red-teaming datasets for studying the safety risks associated with text-to-image models. Datasets and models can be found in https://github.com/GuanlinLee/ART.

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

↑