arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.22300cs.CRcs.AIcs.CV
收藏

T2I-RiskyPrompt:用于评估、攻击和防御文本到图像模型安全性的基准

T2I-RiskyPrompt: A Benchmark for Safety Evaluation, Attack, and Defense on Text-to-Image Model

Chenyu Zhang, Tairen Zhang, Lanjun Wang, Ruidong Chen, Wenhui Li, Anan Liu

AI总结:

T2I-RiskyPrompt提出了一种用于评估文本到图像模型安全性的综合基准,通过层次化风险分类和原因驱动的检测方法,全面评估了多种模型和防御策略的安全性能。

摘要:

使用如色情和暴力提示等危险文本提示来测试文本到图像(T2I)模型的安全性是一个关键任务。然而,现有危险提示数据集在三个方面存在局限:1)危险类别有限,2)标注粗粒度,3)效果低下。为了解决这些限制,我们引入了T2I-RiskyPrompt,一个用于评估T2I模型安全相关任务的综合基准。具体来说,我们首先开发了一种层次化的风险分类体系,由6个主要类别和14个细粒度子类别组成。在此分类体系的基础上,我们构建了一个收集和标注危险提示的流程。最终,我们获得了6,432个有效的危险提示,每个提示都标注了层次类别标签和详细的风险原因。此外,为了促进评估,我们提出了一种基于原因的危险图像检测方法,该方法明确地将大语言模型(MLLM)与安全标注对齐。基于T2I-RiskyPrompt,我们对八个T2I模型、九种防御方法、五种安全过滤器和五种攻击策略进行了全面评估,提供了九项关于T2I模型安全性的关键见解。最后,我们讨论了T2I-RiskyPrompt在各种研究领域的潜在应用。数据集和代码可在https://github.com/datar001/T2I-RiskyPrompt中提供。

英文摘要:

Using risky text prompts, such as pornography and violent prompts, to test the safety of text-to-image (T2I) models is a critical task. However, existing risky prompt datasets are limited in three key areas: 1) limited risky categories, 2) coarse-grained annotation, and 3) low effectiveness. To address these limitations, we introduce T2I-RiskyPrompt, a comprehensive benchmark designed for evaluating safety-related tasks in T2I models. Specifically, we first develop a hierarchical risk taxonomy, which consists of 6 primary categories and 14 fine-grained subcategories. Building upon this taxonomy, we construct a pipeline to collect and annotate risky prompts. Finally, we obtain 6,432 effective risky prompts, where each prompt is annotated with both hierarchical category labels and detailed risk reasons. Moreover, to facilitate the evaluation, we propose a reason-driven risky image detection method that explicitly aligns the MLLM with safety annotations. Based on T2I-RiskyPrompt, we conduct a comprehensive evaluation of eight T2I models, nine defense methods, five safety filters, and five attack strategies, offering nine key insights into the strengths and limitations of T2I model safety. Finally, we discuss potential applications of T2I-RiskyPrompt across various research fields. The dataset and code are provided in https://github.com/datar001/T2I-RiskyPrompt.

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

↑