[论文解读] On Evaluating Adversarial Robustness of Large Vision-Language Models
本研究针对开源大规模视觉语言模型的黑盒定向对抗攻击,展示基于迁移和基于查询的方法能够在多模型上引发定向回应。
Large vision-language models (VLMs) such as GPT-4 have achieved unprecedented performance in response generation, especially with visual inputs, enabling more creative and adaptable interaction than large language models such as ChatGPT. Nonetheless, multimodal generation exacerbates safety concerns, since adversaries may successfully evade the entire system by subtly manipulating the most vulnerable modality (e.g., vision). To this end, we propose evaluating the robustness of open-source large VLMs in the most realistic and high-risk setting, where adversaries have only black-box system access and seek to deceive the model into returning the targeted responses. In particular, we first craft targeted adversarial examples against pretrained models such as CLIP and BLIP, and then transfer these adversarial examples to other VLMs such as MiniGPT-4, LLaVA, UniDiffuser, BLIP-2, and Img2Prompt. In addition, we observe that black-box queries on these VLMs can further improve the effectiveness of targeted evasion, resulting in a surprisingly high success rate for generating targeted responses. Our findings provide a quantitative understanding regarding the adversarial vulnerability of large VLMs and call for a more thorough examination of their potential security flaws before deployment in practice. Code is at https://github.com/yunqing-me/AttackVLM.
研究动机与目标
- 评估开源大规模视觉语言模型(VLMs)对黑盒定向对抗攻击的易受攻击性。
- 开发迁移式(MF-it, MF-ii)和查询式(MF-tt)攻击策略,以诱导定向回应。
- 评估对抗样本在不同VLM之间的跨模型转移性(如 MiniGPT-4、LLaVA、UniDiffuser、BLIP-2、Img2Prompt 等)。
- 分析扰动强度、图像保真度与攻击效果之间的权衡。
- 为多模态系统部署前的安全评估提供启示。
提出的方法
- 将视觉语言生成建模为 p_theta(x; c_in) -> c_out,在具备黑盒访问权限且目标 c_tar 的威胁模型下。
- 设计使用代理编码器(图像和文本)以及跨模态或跨模型目标的迁移式攻击(MF-it、MF-ii)。
- 通过对齐 f_phi(x_adv) 与 f_phi(h_xi(c_tar))(其中 h_xi 是文本到图像生成器)的方式,使用 image-image 特征匹配(MF-ii)。
- 使用 image-text 特征匹配(MF-it),通过跨模态相似性将 f_phi(x_adv) 与 g_psi(c_tar) 对齐,在椭圆无穷大範围约束下通过 PGD 优化。
- 在黑盒访问无法反向传播时,实施基于查询的 MF-tt,通过随机梯度无关(RGF)方法估计梯度。
- 将迁移式初始化与查询式细化相结合(t + q),以增强规避效果。
- 数据集包括 ImageNet-1K 用于干净图像与 MS-COCO 标注文本用于定向文本;定向图像通过 Stable Diffusion / Midjourney / DALL-E 生成。
实验结果
研究问题
- RQ1黑盒对手方是否能够设计定向扰动,使开源 VLMs 输出预定义的回应?
- RQ2对不同的大型 VLMs(如 MiniGPT-4、LLaVA、UniDiffuser、BLIP-2、Img2Prompt)而言,对抗样本的跨模型转移性有多高?
- RQ3引入查询式细化(MF-tt)是否显著提升相对于仅迁移式方法的定向规避效果?
- RQ4扰动预算、图像保真度与跨模型定向回应的成功之间的关系是什么?
主要发现
- 对 surrogate 模型的黑盒基于迁移的攻击,在攻击受害模型的多个 VLMs 时,可以提高对定向文本的相似性。
- MF-ii(图像-图像特征)和 MF-it(图像-文本特征)能够在 surrogate 模型 上打造提高与定向文本的 CLIP 相似度的对抗图像。
- 将迁移式初始化与查询式细化结合(MF-ii + MF-tt)在多个 VLMs 上显著提高了与定向回应的一致性。
- 在 UniDiffuser、BLIP-2、Img2Prompt、LLaVA、MiniGPT-4 等开源 VLMs 上均可成功实施攻击,且使用 MF-ii + MF-tt 时效果更佳。
- 扰动预算与感知图像质量之间存在权衡,需要在保真度与定向成功之间谨慎选择 epsilon。
- GradCAM 分析表明对抗扰动可改变注意力,模拟定向图像而不暴露扰动本身的语义内容。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。