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

一张图像抵千言谎言:视觉语言模型中跨提示的对抗迁移性

An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Models

University of Oxford(牛津大学)

Haochen Luo, Jindong Gu, Fengyuan Liu, Philip Torr

AI总结:

针对视觉语言模型依赖提示适应任务的特点,提出跨提示攻击(CroPA),利用可学习提示更新视觉扰动,显著提升对抗样本跨提示的迁移性,并在Flamingo、BLIP-2和InstructBLIP上验证有效性。

摘要:

与传统任务特定的视觉模型不同,近期的大型视觉语言模型(VLM)可以通过简单地使用不同的文本指令(即提示)来轻松适应不同的视觉任务。然而,关于传统任务特定视觉模型的一个众所周知的问题是,它们可能被难以察觉的对抗性扰动所误导。此外,这种担忧因同一对抗性扰动能够欺骗不同的任务特定模型这一现象而加剧。鉴于VLM依赖提示来适应不同任务,一个有趣的问题出现了:当给定一千个不同的提示时,单个对抗性图像能否误导VLM的所有预测?这个问题本质上引入了对抗迁移性的一个新视角:跨提示对抗迁移性。在这项工作中,我们提出了跨提示攻击(CroPA)。该方法使用可学习的提示来更新视觉对抗性扰动,这些提示旨在抵消对抗性图像的误导效果。通过这样做,CroPA显著提高了对抗性示例在提示间的迁移性。我们进行了大量实验,以验证CroPA在包括Flamingo、BLIP-2和InstructBLIP在内的主流VLM上,在各种不同任务中具有强大的跨提示对抗迁移性。我们的源代码可在\url{https://github.com/Haochen-Luo/CroPA}获取。

英文摘要:

Different from traditional task-specific vision models, recent large VLMs can readily adapt to different vision tasks by simply using different textual instructions, i.e., prompts. However, a well-known concern about traditional task-specific vision models is that they can be misled by imperceptible adversarial perturbations. Furthermore, the concern is exacerbated by the phenomenon that the same adversarial perturbations can fool different task-specific models. Given that VLMs rely on prompts to adapt to different tasks, an intriguing question emerges: Can a single adversarial image mislead all predictions of VLMs when a thousand different prompts are given? This question essentially introduces a novel perspective on adversarial transferability: cross-prompt adversarial transferability. In this work, we propose the Cross-Prompt Attack (CroPA). This proposed method updates the visual adversarial perturbation with learnable prompts, which are designed to counteract the misleading effects of the adversarial image. By doing this, CroPA significantly improves the transferability of adversarial examples across prompts. Extensive experiments are conducted to verify the strong cross-prompt adversarial transferability of CroPA with prevalent VLMs including Flamingo, BLIP-2, and InstructBLIP in various different tasks. Our source code is available at \url{https://github.com/Haochen-Luo/CroPA}.

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

↑