arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13294cs.MMcs.LG
收藏

通过目标令牌的上下文注入增强视觉-语言模型的跨提示迁移性

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

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)

Xikang Yang, Xuehai Tang, Fuqing Zhu, Jizhong Han, Songlin Hu

AI总结:

针对视觉-语言模型跨提示迁移攻击中对抗图像效果不佳的问题,提出上下文注入攻击CIA,通过梯度扰动将目标令牌注入多模态上下文以提升迁移性,实验验证其在多个VLM上性能优于现有方法。

摘要:

视觉-语言模型(Vision-language models, VLMs)可无缝整合视觉与文本数据,以执行图像分类、字幕生成、视觉问答等任务。然而,在跨提示迁移攻击场景下,对抗图像往往难以有效欺骗所有提示,因为这类图像中的令牌概率分布更倾向于原始图像的语义,而非目标令牌语义。为解决这一问题,我们提出上下文注入攻击(Contextual-Injection Attack, CIA),该方法采用基于梯度的扰动,将目标令牌注入视觉与文本上下文中,从而优化目标令牌的概率分布。通过将上下语文语义向目标令牌而非原始图像语义偏移,CIA提升了对抗图像的跨提示迁移性。在BLIP2、InstructBLIP和LLaVA模型上开展的大量实验表明,CIA在跨提示迁移性方面优于现有方法,展现了其在VLM中构建更有效对抗策略的潜力。

英文摘要:

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.

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

↑