An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Luo, Haochen, Gu, Jindong, Liu, Fengyuan, Torr, Philip
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914715361345536
author Luo, Haochen
Gu, Jindong
Liu, Fengyuan
Torr, Philip
author_facet Luo, Haochen
Gu, Jindong
Liu, Fengyuan
Torr, Philip
contents Different from traditional task-specific vision models, recent large VLMs can readily adapt to different vision tasks by simply using different textual instructions, i.e., prompts. However, a well-known concern about traditional task-specific vision models is that they can be misled by imperceptible adversarial perturbations. Furthermore, the concern is exacerbated by the phenomenon that the same adversarial perturbations can fool different task-specific models. Given that VLMs rely on prompts to adapt to different tasks, an intriguing question emerges: Can a single adversarial image mislead all predictions of VLMs when a thousand different prompts are given? This question essentially introduces a novel perspective on adversarial transferability: cross-prompt adversarial transferability. In this work, we propose the Cross-Prompt Attack (CroPA). This proposed method updates the visual adversarial perturbation with learnable prompts, which are designed to counteract the misleading effects of the adversarial image. By doing this, CroPA significantly improves the transferability of adversarial examples across prompts. Extensive experiments are conducted to verify the strong cross-prompt adversarial transferability of CroPA with prevalent VLMs including Flamingo, BLIP-2, and InstructBLIP in various different tasks. Our source code is available at \url{https://github.com/Haochen-Luo/CroPA}.
format Preprint
id arxiv_https___arxiv_org_abs_2403_09766
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Models
Luo, Haochen
Gu, Jindong
Liu, Fengyuan
Torr, Philip
Computer Vision and Pattern Recognition
Different from traditional task-specific vision models, recent large VLMs can readily adapt to different vision tasks by simply using different textual instructions, i.e., prompts. However, a well-known concern about traditional task-specific vision models is that they can be misled by imperceptible adversarial perturbations. Furthermore, the concern is exacerbated by the phenomenon that the same adversarial perturbations can fool different task-specific models. Given that VLMs rely on prompts to adapt to different tasks, an intriguing question emerges: Can a single adversarial image mislead all predictions of VLMs when a thousand different prompts are given? This question essentially introduces a novel perspective on adversarial transferability: cross-prompt adversarial transferability. In this work, we propose the Cross-Prompt Attack (CroPA). This proposed method updates the visual adversarial perturbation with learnable prompts, which are designed to counteract the misleading effects of the adversarial image. By doing this, CroPA significantly improves the transferability of adversarial examples across prompts. Extensive experiments are conducted to verify the strong cross-prompt adversarial transferability of CroPA with prevalent VLMs including Flamingo, BLIP-2, and InstructBLIP in various different tasks. Our source code is available at \url{https://github.com/Haochen-Luo/CroPA}.
title An Image Is Worth 1000 Lies: Adversarial Transferability across Prompts on Vision-Language Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2403.09766