Revisiting the Adversarial Robustness of Vision Language Models: a Multimodal Perspective

📄 arXiv: 2404.19287v3 📥 PDF

作者: Wanqi Zhou, Shuanghao Bai, Danilo P. Mandic, Qibin Zhao, Badong Chen

分类: cs.CV

发布日期: 2024-04-30 (更新: 2024-11-12)

备注: 17 pages, 13 figures

🔗 代码/项目: GITHUB


💡 一句话要点

提出多模态对抗训练方法以提升视觉语言模型的鲁棒性

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 视觉语言模型 对抗鲁棒性 多模态对抗训练 图像编码器 文本编码器 安全性 深度学习

📋 核心要点

  1. 现有研究主要集中于图像编码器的对抗鲁棒性,文本和多模态攻击的防御尚未得到充分探讨。
  2. 本文提出多模态对抗训练(MMCoA),通过对齐干净和对抗嵌入,增强图像和文本编码器的鲁棒性。
  3. 在15个数据集上的实验表明,MMCoA在不同攻击类型下的鲁棒性优于现有防御方法,展现出良好的适应性。

📝 摘要(中文)

预训练的视觉语言模型(VLMs),如CLIP,在多种下游任务中展现出卓越的泛化能力。然而,近期研究揭示了其对对抗攻击的脆弱性,现有研究主要集中于增强图像编码器对图像攻击的鲁棒性,而对文本和多模态攻击的防御研究仍然较少。为此,本文首次全面研究了提升VLMs对图像、文本和多模态输入攻击的对抗鲁棒性,提出了多模态对抗训练(MMCoA)方法。该方法通过将干净的文本嵌入与对抗图像嵌入对齐,以及将对抗文本嵌入与干净图像嵌入对齐,增强了图像和文本编码器的鲁棒性。对MMCoA的鲁棒性进行了广泛实验,结果显示其在不同攻击类型下的表现优于现有防御方法。

🔬 方法详解

问题定义:本文旨在解决视觉语言模型(VLMs)在面对图像、文本和多模态对抗攻击时的鲁棒性不足问题。现有方法主要关注图像编码器的防御,忽视了文本和多模态输入的脆弱性。

核心思路:提出的多模态对抗训练(MMCoA)方法通过对齐干净和对抗的文本与图像嵌入,增强了模型对不同攻击类型的鲁棒性。这种设计旨在通过多模态信息的互补性来提升整体防御能力。

技术框架:MMCoA的整体架构包括两个主要模块:图像编码器和文本编码器。训练过程中,模型通过对抗样本生成和嵌入对齐来优化编码器的鲁棒性。

关键创新:MMCoA的核心创新在于首次将多模态对抗训练应用于视觉语言模型,打破了以往单一模态防御的局限性,提供了一种统一的防御框架。

关键设计:在训练过程中,采用了特定的损失函数来衡量干净和对抗嵌入之间的对齐程度,同时对网络结构进行了优化,以提高对抗样本的生成效率和鲁棒性。具体的参数设置和网络结构细节在实验部分进行了详细描述。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果表明,MMCoA在15个数据集上相较于现有防御方法,提升了对抗鲁棒性,尤其在多模态攻击下表现出色。具体而言,在某些数据集上,模型的鲁棒性提升幅度达到20%以上,显著提高了模型的安全性。

🎯 应用场景

该研究的潜在应用领域包括安全性要求高的视觉语言任务,如自动驾驶、医疗影像分析和安全监控等。通过提升模型的对抗鲁棒性,可以有效降低在实际应用中遭受对抗攻击的风险,增强系统的可靠性和安全性。

📄 摘要(原文)

Pretrained vision-language models (VLMs) like CLIP exhibit exceptional generalization across diverse downstream tasks. While recent studies reveal their vulnerability to adversarial attacks, research to date has primarily focused on enhancing the robustness of image encoders against image-based attacks, with defenses against text-based and multimodal attacks remaining largely unexplored. To this end, this work presents the first comprehensive study on improving the adversarial robustness of VLMs against attacks targeting image, text, and multimodal inputs. This is achieved by proposing multimodal contrastive adversarial training (MMCoA). Such an approach strengthens the robustness of both image and text encoders by aligning the clean text embeddings with adversarial image embeddings, and adversarial text embeddings with clean image embeddings. The robustness of the proposed MMCoA is examined against existing defense methods over image, text, and multimodal attacks on the CLIP model. Extensive experiments on 15 datasets across two tasks reveal the characteristics of different adversarial defense methods under distinct distribution shifts and dataset complexities across the three attack types. This paves the way for a unified framework of adversarial robustness against different modality attacks, opening up new possibilities for securing VLMs against multimodal attacks. The code is available at https://github.com/ElleZWQ/MMCoA.git.