arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.07591cs.CVcs.NE
收藏

我看见“死人”:针对图像到文本模型的灰盒对抗攻击

I See Dead People: Gray-Box Adversarial Attack on Image-To-Text Models

Ben-Gurion University of the Negev(内盖夫本-古里安大学);DeepKeep

Raz Lapid, Moshe Sipper

AI总结:

针对图像到文本模型输出空间大、对抗样本生成难的问题,提出一种仅依赖图像编码器的灰盒对抗攻击算法,在ViT-GPT2和Flickr30k上验证了无目标与有目标攻击的有效性,且可骗过Hugging Face平台。

摘要:

现代图像到文本系统通常采用编码器-解码器框架,包含两大核心组件:负责提取图像特征的图像编码器,以及用于生成描述文本的基于Transformer的解码器。受神经网络对抗扰动鲁棒性分析的启发,我们提出一种新型灰盒算法,用于生成图像到文本模型的对抗样本。与类别标签有限的图像分类任务不同,在图像到文本任务中寻找视觉上相似的对抗样本面临更大挑战,因为字幕生成系统的可能输出空间几乎是无限的。本文提出一种针对图像到文本模型的灰盒对抗攻击,涵盖无目标和有目标两种场景。我们将寻找对抗扰动的过程建模为仅使用图像编码器组件的优化问题,这意味着所提攻击与语言模型无关。我们在Hugging Face上最常用的图像到文本模型ViT-GPT2以及Flickr30k数据集上开展了实验,结果表明,所提攻击能成功生成视觉相似的对抗样本,既适用于无目标字幕也适用于有目标字幕。值得注意的是,该攻击以灰盒方式运行,无需解码器模块的任何相关知识。我们还证明了该攻击能够骗过热门开源平台Hugging Face。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑