arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16567cs.AIcs.CR
收藏

文本到图像生成式人工智能系统的自动越狱

Automatic Jailbreaking of the Text-to-Image Generative AI Systems

KAIST(韩国科学技术院);Korea University(高丽大学);Peiking University(北京大学)

Minseon Kim, Hyomin Lee, Boqing Gong, Huishuai Zhang, Sung Ju Hwang

AI总结:

本文提出一种利用LLM优化器自动生成提示词的越狱流水线,以绕过文本到图像系统的安全防护,实验表明该方法能显著降低ChatGPT的阻止率并生成版权内容,同时指出现有防御策略不足。

摘要:

近年来,基于大语言模型(LLMs)的人工智能系统在信息检索、语言生成和图像生成等多项任务中展现出极其强大的性能,甚至超越了人类的表现。与此同时,存在多种安全风险,可能通过规避LLM中的对齐机制来生成恶意内容,这类行为通常被称为“越狱”。然而,以往的研究大多只关注LLM中基于文本的越狱,而文本到图像(T2I)生成系统的越狱问题相对被忽视。在本文中,我们首先评估了商业T2I生成系统(如ChatGPT、Copilot和Gemini)在针对版权侵权的朴素提示词下的安全性。通过这一实证研究,我们发现Copilot和Gemini分别仅阻止了12%和17%的朴素提示词攻击,而ChatGPT阻止了84%的攻击。随后,我们进一步提出了一种针对T2I生成系统的更强的自动化越狱流水线,该流水线能够生成绕过其安全防护的提示词。我们的自动化越狱框架利用LLM优化器生成提示词,以最大化生成图像中的违规程度,且无需任何权重更新或梯度计算。令人惊讶的是,我们这种简单而有效的方法成功越狱了ChatGPT,使其阻止率降至11.0%,并在76%的情况下生成了受版权保护的内容。最后,我们探索了多种防御策略,如生成后过滤和机器遗忘技术,但发现这些策略均不充分,这表明有必要建立更强的防御机制。

英文摘要:

Recent AI systems have shown extremely powerful performance, even surpassing human performance, on various tasks such as information retrieval, language generation, and image generation based on large language models (LLMs). At the same time, there are diverse safety risks that can cause the generation of malicious contents by circumventing the alignment in LLMs, which are often referred to as jailbreaking. However, most of the previous works only focused on the text-based jailbreaking in LLMs, and the jailbreaking of the text-to-image (T2I) generation system has been relatively overlooked. In this paper, we first evaluate the safety of the commercial T2I generation systems, such as ChatGPT, Copilot, and Gemini, on copyright infringement with naive prompts. From this empirical study, we find that Copilot and Gemini block only 12% and 17% of the attacks with naive prompts, respectively, while ChatGPT blocks 84% of them. Then, we further propose a stronger automated jailbreaking pipeline for T2I generation systems, which produces prompts that bypass their safety guards. Our automated jailbreaking framework leverages an LLM optimizer to generate prompts to maximize degree of violation from the generated images without any weight updates or gradient computation. Surprisingly, our simple yet effective approach successfully jailbreaks the ChatGPT with 11.0% block rate, making it generate copyrighted contents in 76% of the time. Finally, we explore various defense strategies, such as post-generation filtering and machine unlearning techniques, but found that they were inadequate, which suggests the necessity of stronger defense mechanisms.

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

↑