arXiv:2505.17440cs.CV2025-05被引 6

针对视觉语言模型的视觉编码器发起无任务依赖攻击,高效且通用。

VEAttack: Downstream-agnostic Vision Encoder Attack against Large Vision Language Models

  • 直接优化图像令牌生成对抗样本,不依赖下游任务和标签。
  • 在图文生成与视觉问答任务上分别导致94.5%和75.7%性能下降。
  • 适用于多种任务,适合研究模型鲁棒性与防御机制的学者。

大型视觉语言模型(LVLMs)在多模态理解与生成方面表现出色,但其对对抗攻击的脆弱性引发严重鲁棒性担忧。现有有效攻击多聚焦于特定任务的白盒设置,受限于LVLM多样化的下游任务需求及高昂的全模型梯度计算成本。鉴于视觉编码器在LVLM中的核心作用与广泛应用,本文提出一种简单而有效的视觉编码器攻击(VEAttack),仅针对LVLM的视觉编码器进行攻击。具体而言,通过最小化干净与扰动后视觉特征间的余弦相似度生成对抗样本,无需访问后续大语言模型、任务信息或标签,显著降低计算开销并消除传统白盒攻击对任务和标签的依赖。为提升攻击效果,我们建议优化图像令牌而非分类令牌。实证与理论分析表明,VEAttack可广泛泛化至多种任务。该方法在图像描述任务上使性能下降94.5%,在视觉问答任务上下降75.7%。此外,本文揭示若干关键观察:1)大语言模型隐藏层变化;2)令牌注意力差异;3)迁移攻击中的莫比乌斯环现象;4)对攻击步数低敏感性。代码已开源:https://github.com/hefeimei06/VEAttack-LVLM。

原文摘要 · Abstract (English)

Large Vision-Language Models (LVLMs) have demonstrated remarkable capabilities in multimodal understanding and generation, yet their vulnerability to adversarial attacks raises significant robustness concerns. While existing effective attacks always focus on task-specific white-box settings, these approaches are limited in the context of LVLMs, which are designed for diverse downstream tasks and require expensive full-model gradient computations. Motivated by the pivotal role and wide adoption of the vision encoder in LVLMs, we propose a simple yet effective Vision Encoder Attack (VEAttack), which targets the vision encoder of LVLMs only. Specifically, we propose to generate adversarial examples by minimizing the cosine similarity between the clean and perturbed visual features, without accessing the following large language models, task information, and labels. It significantly reduces the computational overhead while eliminating the task and label dependence of traditional white-box attacks in LVLMs. To make this simple attack effective, we propose to perturb images by optimizing image tokens instead of the classification token. We provide both empirical and theoretical evidence that VEAttack can easily generalize to various tasks. VEAttack has achieved a performance degradation of 94.5% on image caption task and 75.7% on visual question answering task. We also reveal some key observations to provide insights into LVLM attack/defense: 1) hidden layer variations of LLM, 2) token attention differential, 3) Möbius band in transfer attack, 4) low sensitivity to attack steps. The code is available at https://github.com/hefeimei06/VEAttack-LVLM.

对抗攻击视觉语言模型鲁棒性视觉编码器

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