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

Xikang Yang, Xuehai Tang, Fuqing Zhu, Jizhong Han, Songlin Hu
6/19/2024
cs.MMcs.LG

No official code found. Best implementation: YancyKahn/CIA (3 stars, MIT, last commit 2024-06-26).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

YancyKahn/CIACommunity100%
MIT

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

30Shell, PythonJun 12, 20242 years agoMIT

Similar Papers

Cite this paper

@article{yang2024enhancing,
  title  = {Enhancing Cross-Prompt Transferability in Vision-Language Models through Contextual Injection of Target Tokens},
  author = {Xikang Yang and Xuehai Tang and Fuqing Zhu and Jizhong Han and Songlin Hu},
  year   = {2024},
  eprint = {2406.13294},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13294v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.13294.svg)](https://codeofpaper.com/paper/2406.13294)

Discussion