Jailbreak Vision Language Models via Bi-Modal Adversarial Prompt

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ying, Zonghao, Liu, Aishan, Zhang, Tianyuan, Yu, Zhengmin, Liang, Siyuan, Liu, Xianglong, Tao, Dacheng
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911939031990272
author Ying, Zonghao
Liu, Aishan
Zhang, Tianyuan
Yu, Zhengmin
Liang, Siyuan
Liu, Xianglong
Tao, Dacheng
author_facet Ying, Zonghao
Liu, Aishan
Zhang, Tianyuan
Yu, Zhengmin
Liang, Siyuan
Liu, Xianglong
Tao, Dacheng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_04031
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Jailbreak Vision Language Models via Bi-Modal Adversarial Prompt
Ying, Zonghao
Liu, Aishan
Zhang, Tianyuan
Yu, Zhengmin
Liang, Siyuan
Liu, Xianglong
Tao, Dacheng
Computer Vision and Pattern Recognition
Cryptography and Security
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.
title Jailbreak Vision Language Models via Bi-Modal Adversarial Prompt
topic Computer Vision and Pattern Recognition
Cryptography and Security
url https://arxiv.org/abs/2406.04031