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

通过双模态对抗提示越狱视觉语言模型

Jailbreak Vision Language Models via Bi-Modal Adversarial Prompt

Beihang University(北京航空航天大学);Fudan University(复旦大学);National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学)

Zonghao Ying, Aishan Liu, Tianyuan Zhang, Zhengmin Yu, Siyuan Liang, Xianglong Liu, Dacheng Tao

AI总结:

本文提出双模态对抗提示攻击(BAP),通过协同优化图像和文本提示实现视觉语言模型越狱,并在多个数据集和模型上显著提升攻击成功率。

摘要:

在大型视觉语言模型(LVLMs)领域,越狱攻击作为一种红队测试方法,用于绕过防护机制并揭示安全影响。现有的越狱攻击主要集中于视觉模态,仅扰动提示中的视觉输入进行攻击。然而,当面对同时融合视觉和文本特征进行生成的对齐模型时,这些方法效果不足。为了解决这一局限性,本文提出了双模态对抗提示攻击(BAP),通过协同优化文本和视觉提示来执行越狱。首先,我们在图像中对抗性地嵌入普遍有害的扰动,并以少量样本的查询无关语料(例如肯定性前缀和否定性抑制)为指导。该过程确保图像提示LVLMs对任何有害查询都作出积极响应。随后,利用对抗性图像,我们针对特定有害意图优化文本提示。特别地,我们利用大型语言模型分析越狱失败案例,并采用思维链推理,通过反馈迭代方式优化文本提示。为验证方法的有效性,我们在多个数据集和LVLMs上进行了广泛评估,结果表明我们的方法以较大幅度显著优于其他方法(平均攻击成功率提升+29.03%)。此外,我们展示了该攻击在黑盒商用LVLMs(如Gemini和ChatGLM)上的潜力。

英文摘要:

In the realm of large vision language models (LVLMs), jailbreak attacks serve as a red-teaming approach to bypass guardrails and uncover safety implications. Existing jailbreaks predominantly focus on the visual modality, perturbing solely visual inputs in the prompt for attacks. However, they fall short when confronted with aligned models that fuse visual and textual features simultaneously for generation. To address this limitation, this paper introduces the Bi-Modal Adversarial Prompt Attack (BAP), which executes jailbreaks by optimizing textual and visual prompts cohesively. Initially, we adversarially embed universally harmful perturbations in an image, guided by a few-shot query-agnostic corpus (e.g., affirmative prefixes and negative inhibitions). This process ensures that image prompt LVLMs to respond positively to any harmful queries. Subsequently, leveraging the adversarial image, we optimize textual prompts with specific harmful intent. In particular, we utilize a large language model to analyze jailbreak failures and employ chain-of-thought reasoning to refine textual prompts through a feedback-iteration manner. To validate the efficacy of our approach, we conducted extensive evaluations on various datasets and LVLMs, demonstrating that our method significantly outperforms other methods by large margins (+29.03% in attack success rate on average). Additionally, we showcase the potential of our attacks on black-box commercial LVLMs, such as Gemini and ChatGLM.

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

↑