Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Xikang, Tang, Xuehai, Zhu, Fuqing, Han, Jizhong, Hu, Songlin
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909227802427392
author Yang, Xikang
Tang, Xuehai
Zhu, Fuqing
Han, Jizhong
Hu, Songlin
author_facet Yang, Xikang
Tang, Xuehai
Zhu, Fuqing
Han, Jizhong
Hu, Songlin
contents Vision-language models (VLMs) seamlessly integrate visual and textual data to perform tasks such as image classification, caption generation, and visual question answering. However, adversarial images often struggle to deceive all prompts effectively in the context of cross-prompt migration attacks, as the probability distribution of the tokens in these images tends to favor the semantics of the original image rather than the target tokens. To address this challenge, we propose a Contextual-Injection Attack (CIA) that employs gradient-based perturbation to inject target tokens into both visual and textual contexts, thereby improving the probability distribution of the target tokens. By shifting the contextual semantics towards the target tokens instead of the original image semantics, CIA enhances the cross-prompt transferability of adversarial images.Extensive experiments on the BLIP2, InstructBLIP, and LLaVA models show that CIA outperforms existing methods in cross-prompt transferability, demonstrating its potential for more effective adversarial strategies in VLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2406_13294
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens
Yang, Xikang
Tang, Xuehai
Zhu, Fuqing
Han, Jizhong
Hu, Songlin
Multimedia
Machine Learning
Vision-language models (VLMs) seamlessly integrate visual and textual data to perform tasks such as image classification, caption generation, and visual question answering. However, adversarial images often struggle to deceive all prompts effectively in the context of cross-prompt migration attacks, as the probability distribution of the tokens in these images tends to favor the semantics of the original image rather than the target tokens. To address this challenge, we propose a Contextual-Injection Attack (CIA) that employs gradient-based perturbation to inject target tokens into both visual and textual contexts, thereby improving the probability distribution of the target tokens. By shifting the contextual semantics towards the target tokens instead of the original image semantics, CIA enhances the cross-prompt transferability of adversarial images.Extensive experiments on the BLIP2, InstructBLIP, and LLaVA models show that CIA outperforms existing methods in cross-prompt transferability, demonstrating its potential for more effective adversarial strategies in VLMs.
title Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens
topic Multimedia
Machine Learning
url https://arxiv.org/abs/2406.13294