Skip to main content
QUICK REVIEW

[论文解读] I See Dead People: Gray-Box Adversarial Attack on Image-To-Text Models

Raz Lapid, Moshe Sipper|arXiv (Cornell University)|Jun 13, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 3
一句话总结

本文提出了一种针对图像到文本模型的灰盒对抗攻击,仅使用图像编码器生成难以察觉的扰动,无需访问解码器知识。该方法在无目标和有目标攻击中均实现了高成功率,通过利用视觉Transformer编码器中的漏洞,欺骗了包括Hugging Face托管模型在内的多种模型。

ABSTRACT

Modern image-to-text systems typically adopt the encoder-decoder framework, which comprises two main components: an image encoder, responsible for extracting image features, and a transformer-based decoder, used for generating captions. Taking inspiration from the analysis of neural networks' robustness against adversarial perturbations, we propose a novel gray-box algorithm for creating adversarial examples in image-to-text models. Unlike image classification tasks that have a finite set of class labels, finding visually similar adversarial examples in an image-to-text task poses greater challenges because the captioning system allows for a virtually infinite space of possible captions. In this paper, we present a gray-box adversarial attack on image-to-text, both untargeted and targeted. We formulate the process of discovering adversarial perturbations as an optimization problem that uses only the image-encoder component, meaning the proposed attack is language-model agnostic. Through experiments conducted on the ViT-GPT2 model, which is the most-used image-to-text model in Hugging Face, and the Flickr30k dataset, we demonstrate that our proposed attack successfully generates visually similar adversarial examples, both with untargeted and targeted captions. Notably, our attack operates in a gray-box manner, requiring no knowledge about the decoder module. We also show that our attacks fool the popular open-source platform Hugging Face.

研究动机与目标

  • 为解决预训练多模态模型背景下图像到文本模型对对抗攻击的脆弱性问题。
  • 开发一种无需访问解码器模块的灰盒攻击,仅依赖图像编码器。
  • 生成视觉上相似的对抗样本,诱导图像到文本系统生成错误或特定目标的字幕。
  • 展示该攻击在真实部署模型(如Hugging Face推理API)上的可迁移性。
  • 揭示在辅助技术与内容审核等安全关键应用中对抗鲁棒性的风险。

提出的方法

  • 该攻击将对抗扰动生成建模为仅使用图像编码器的优化问题,无需查询端到端完整模型。
  • 扰动通过最小化CLIP图像-文本相似度损失进行优化,同时保持与原始图像的视觉相似性(受限于ε = 0.05)。
  • 在有目标攻击中,方法使用目标字幕损失,引导模型生成特定期望的字幕。
  • 优化过程在视觉Transformer(ViT)编码器的潜在空间中进行,确保攻击的高效性和可迁移性。
  • 该方法与语言模型无关,因其无需解码器的梯度或架构知识。
  • 对抗样本在生成后经完整图像到文本流水线评估,确认成功绕过了端到端模型。

实验结果

研究问题

  • RQ1能否构建一种仅访问图像编码器的灰盒对抗攻击,仍能成功生成图像到文本模型的对抗样本?
  • RQ2对抗扰动在导致图像到文本模型出现显著字幕错误的同时,能在多大程度上保持视觉上的不可察觉性?
  • RQ3该攻击是否能有效迁移到部署模型(如Hugging Face推理API)上,而无需了解其部署细节或量化方式?
  • RQ4在无目标和有目标场景下,该攻击的效率如何,特别是在字幕保真度和模型欺骗方面?
  • RQ5该攻击能否应用于广泛使用的ViT-GPT2模型,而无需访问解码器或微调?

主要发现

  • 所提出的灰盒攻击在ViT-GPT2模型上的有目标攻击中实现了100%的成功率,始终生成精确的目标字幕。
  • 在有目标设置下,该攻击的CLIP得分最低达到0.134,表明原始字幕与对抗字幕之间存在显著的语义差异。
  • 该攻击成功迁移到Hugging Face托管的推理API上,即使不了解部署细节,仍生成了与本地评估完全相同的对抗字幕。
  • 对抗样本与原始图像视觉上高度相似,扰动在ε = 0.05下保持不可察觉,证实了其视觉隐蔽性。
  • 该方法在多种图像-字幕对上表现出鲁棒性,包括人物、动物和城市环境等复杂场景。
  • 即使解码器为黑盒,该攻击依然有效,证明漏洞主要源于图像编码器对扰动的敏感性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。