arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03869cs.CLcs.AIcs.CRcs.CVcs.MM
收藏

通过逐步编辑对图像生成模型的链式越狱攻击

Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Step

Renmin University of China(中国人民大学);Chinese University of Hong Kong(香港大学);Chinese University of Hong Kong, Shenzhen(香港大学(深圳));Johns Hopkins University(约翰霍普金斯大学);Tencent(腾讯);Hong Kong University of Science and Technology(香港科技大学)

Wenxuan Wang, Kuiyi Gao, Youliang Yuan, Jen-tse Huang, Qiuzhi Liu, Shuai Wang, Wenxiang Jiao, Zhaopeng Tu

AI总结:

本文提出 Chain-of-Jailbreak 攻击,通过将恶意查询分解为多个子查询并逐步编辑图像,成功绕过主流图像生成模型的安全防护,并构建 CoJ-Bench 数据集及 Think Twice Prompting 防御方法。

摘要:

基于文本的图像生成模型,如 Stable Diffusion 和 DALL-E 3,在内容创作和发布工作流中具有重要潜力,因此成为近年来的研究焦点。尽管这些模型在生成多样且生动的图像方面表现出色,但人们仍在投入大量努力来防止生成有害内容,例如辱骂性、暴力或色情材料。为了评估现有模型的安全性,我们提出了一种名为 Chain-of-Jailbreak(CoJ)攻击的新型越狱方法,该方法通过逐步编辑过程来攻破图像生成模型。具体而言,对于无法通过单次提示绕过安全防护的恶意查询,我们有意将查询分解为多个子查询。随后,图像生成模型被提示根据这些子查询生成并迭代编辑图像。为了评估我们的 CoJ 攻击方法的有效性,我们构建了一个综合数据集 CoJ-Bench,涵盖九个安全场景、三种编辑操作类型和三种编辑元素。在由 GPT-4V、GPT-4o、Gemini 1.5 和 Gemini 1.5 Pro 提供的四种广泛使用的图像生成服务上进行的实验表明,我们的 CoJ 攻击方法能够在超过 60% 的案例中成功绕过模型的安全防护,显著优于其他越狱方法(即 14%)。此外,为了增强这些模型抵御我们 CoJ 攻击方法的安全性,我们还提出了一种有效的基于提示的方法,称为 Think Twice Prompting,该方法能够成功防御超过 95% 的 CoJ 攻击。我们发布了数据集和代码,以促进 AI 安全研究。

英文摘要:

Text-based image generation models, such as Stable Diffusion and DALL-E 3, hold significant potential in content creation and publishing workflows, making them the focus in recent years. Despite their remarkable capability to generate diverse and vivid images, considerable efforts are being made to prevent the generation of harmful content, such as abusive, violent, or pornographic material. To assess the safety of existing models, we introduce a novel jailbreaking method called Chain-of-Jailbreak (CoJ) attack, which compromises image generation models through a step-by-step editing process. Specifically, for malicious queries that cannot bypass the safeguards with a single prompt, we intentionally decompose the query into multiple sub-queries. The image generation models are then prompted to generate and iteratively edit images based on these sub-queries. To evaluate the effectiveness of our CoJ attack method, we constructed a comprehensive dataset, CoJ-Bench, encompassing nine safety scenarios, three types of editing operations, and three editing elements. Experiments on four widely-used image generation services provided by GPT-4V, GPT-4o, Gemini 1.5 and Gemini 1.5 Pro, demonstrate that our CoJ attack method can successfully bypass the safeguards of models for over 60% cases, which significantly outperforms other jailbreaking methods (i.e., 14%). Further, to enhance these models' safety against our CoJ attack method, we also propose an effective prompting-based method, Think Twice Prompting, that can successfully defend over 95% of CoJ attack. We release our dataset and code to facilitate the AI safety research.

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

↑