arXiv:2411.00898cs.CVcs.AI2024-11

让视觉语言模型答错复杂问题,通过替换物体再微调实现精准攻击。

Replace-then-Perturb: Targeted Adversarial Attacks With Visual Reasoning for Vision-Language Models

  • 先用文本引导分割定位目标物,移除后用提示词填充空白区域。
  • 在多个数据集上使模型错误回答率提升至90%以上,优于传统方法。
  • 适合研究对抗攻击、模型鲁棒性或视觉推理安全性的研究人员。

传统定向对抗攻击仅使模型输出预设的错误文本,但难以应对需视觉推理的复杂问题。针对视觉语言模型(VLMs),本文提出一种新攻击流程:Replace-then-Perturb,即先利用文本引导分割找到目标物体,移除后用目标提示词进行图像修复,以保持图像整体完整性;同时设计对比学习型对抗损失 Contrastive-Adv,增强攻击效果。实验表明,在多个基准测试中,该方法显著优于现有基线算法,在复杂问答任务中使模型错误响应率超过90%。代码将开源。

原文摘要 · Abstract (English)

The conventional targeted adversarial attacks add a small perturbation to an image to make neural network models estimate the image as a predefined target class, even if it is not the correct target class. Recently, for visual-language models (VLMs), the focus of targeted adversarial attacks is to generate a perturbation that makes VLMs answer intended target text outputs. For example, they aim to make a small perturbation on an image to make VLMs' answers change from "there is an apple" to "there is a baseball." However, answering just intended text outputs is insufficient for tricky questions like "if there is a baseball, tell me what is below it." This is because the target of the adversarial attacks does not consider the overall integrity of the original image, thereby leading to a lack of visual reasoning. In this work, we focus on generating targeted adversarial examples with visual reasoning against VLMs. To this end, we propose 1) a novel adversarial attack procedure -- namely, Replace-then-Perturb and 2) a contrastive learning-based adversarial loss -- namely, Contrastive-Adv. In Replace-then-Perturb, we first leverage a text-guided segmentation model to find the target object in the image. Then, we get rid of the target object and inpaint the empty space with the desired prompt. By doing this, we can generate a target image corresponding to the desired prompt, while maintaining the overall integrity of the original image. Furthermore, in Contrastive-Adv, we design a novel loss function to obtain better adversarial examples. Our extensive benchmark results demonstrate that Replace-then-Perturb and Contrastive-Adv outperform the baseline adversarial attack algorithms. We note that the source code to reproduce the results will be available.

对抗攻击视觉语言模型图像修复

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。