arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.00236cs.LGcs.CLcs.CR
收藏

图像劫持:对抗性图像可在运行时控制生成式模型

Image Hijacks: Adversarial Images can Control Generative Models at Runtime

Harvard University(哈佛大学);Cambridge University(剑桥大学);University of California, Berkeley(加利福尼亚大学伯克利分校)

Luke Bailey, Euan Ong, Stuart Russell, Scott Emmons

AI总结:

该研究发现可控制视觉语言模型推理行为的“图像劫持”对抗样本,提出行为匹配及提示匹配算法生成劫持图像,针对LLaVA的四类攻击成功率超80%,且攻击自动化、仅需微小图像扰动。

摘要:

基础模型能否抵御恶意攻击者的攻击?本研究聚焦视觉语言模型(VLM)的图像输入,发现了“图像劫持”现象——即能在推理阶段控制VLM行为的对抗性图像,并提出了用于训练图像劫持的通用“行为匹配(Behaviour Matching)”算法。基于该算法,我们进一步提出“提示匹配(Prompt Matching)”方法,可使用与选定提示无关的通用现成数据集,训练出匹配任意用户自定义文本提示(例如“埃菲尔铁塔现在位于罗马”)行为的劫持图像。我们利用行为匹配方法设计了四类攻击的劫持图像,分别迫使VLM生成攻击者指定的输出、泄露其上下文窗口中的信息、绕过其安全训练机制,以及相信虚假陈述。我们针对基于CLIP和LLaMA-2的先进VLM——LLaVA开展了这些攻击的测试,结果显示所有攻击类型的成功率均超过80%。此外,我们的攻击是自动化的,仅需对图像施加微小扰动即可实现。

英文摘要:

Are foundation models secure against malicious actors? In this work, we focus on the image input to a vision-language model (VLM). We discover image hijacks, adversarial images that control the behaviour of VLMs at inference time, and introduce the general Behaviour Matching algorithm for training image hijacks. From this, we derive the Prompt Matching method, allowing us to train hijacks matching the behaviour of an arbitrary user-defined text prompt (e.g. 'the Eiffel Tower is now located in Rome') using a generic, off-the-shelf dataset unrelated to our choice of prompt. We use Behaviour Matching to craft hijacks for four types of attack, forcing VLMs to generate outputs of the adversary's choice, leak information from their context window, override their safety training, and believe false statements. We study these attacks against LLaVA, a state-of-the-art VLM based on CLIP and LLaMA-2, and find that all attack types achieve a success rate of over 80%. Moreover, our attacks are automated and require only small image perturbations.

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

↑