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

针对文本生成图像模型的提示词窃取攻击

Prompt Stealing Attacks Against Text-to-Image Generation Models

CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全中心)

Xinyue Shen, Yiting Qu, Michael Backes, Yang Zhang

AI总结:

本文首次研究文本生成图像模型的提示词窃取攻击威胁,提出含主体生成器与修饰词检测器的PromptStealer攻击方法,其效果优于三种基线方法,并初步探索了防御方案,揭示了该生态的新攻击向量。

摘要:

文本生成图像模型彻底革新了艺术设计流程,让任何人都能通过输入被称为提示词的文本描述来生成高质量图像。创作一条包含主体和多个修饰词的高质量提示词可能既耗时又成本高昂,因此,专门交易高质量提示词的市场逐渐兴起。本文首次针对一种新型攻击——提示词窃取攻击的威胁展开研究,该攻击旨在从文本生成图像模型产出的图像中窃取提示词。成功的提示词窃取攻击会直接侵犯提示词工程师的知识产权,还会危及提示词交易市场的商业模式。我们首先对自行收集的数据集开展系统分析,发现成功的提示词窃取攻击需要同时考虑提示词的主体及其修饰词。基于这一观察,我们提出了一种简单却有效的提示词窃取攻击方法PromptStealer,它包含两个模块:用于推断主体的主体生成器,以及用于识别生成图像中修饰词的修饰词检测器。实验结果表明,PromptStealer在定量和定性指标上均优于三种基线方法。我们还初步尝试了针对PromptStealer的防御方法。总体而言,本研究揭示了热门文本生成图像模型所构建的生态系统中存在的一种新攻击向量,希望研究成果能助力理解并缓解这一新兴威胁。

英文摘要:

Text-to-Image generation models have revolutionized the artwork design process and enabled anyone to create high-quality images by entering text descriptions called prompts. Creating a high-quality prompt that consists of a subject and several modifiers can be time-consuming and costly. In consequence, a trend of trading high-quality prompts on specialized marketplaces has emerged. In this paper, we perform the first study on understanding the threat of a novel attack, namely prompt stealing attack, which aims to steal prompts from generated images by text-to-image generation models. Successful prompt stealing attacks directly violate the intellectual property of prompt engineers and jeopardize the business model of prompt marketplaces. We first perform a systematic analysis on a dataset collected by ourselves and show that a successful prompt stealing attack should consider a prompt's subject as well as its modifiers. Based on this observation, we propose a simple yet effective prompt stealing attack, PromptStealer. It consists of two modules: a subject generator trained to infer the subject and a modifier detector for identifying the modifiers within the generated image. Experimental results demonstrate that PromptStealer is superior over three baseline methods, both quantitatively and qualitatively. We also make some initial attempts to defend PromptStealer. In general, our study uncovers a new attack vector within the ecosystem established by the popular text-to-image generation models. We hope our results can contribute to understanding and mitigating this emerging threat.

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

↑