Skip to content

Visual adversarial examples can jailbreak aligned large language modelsVisual Adversarial Examples Jailbreak Aligned Large Language Models

arXiv· arXiv:2306.13213· AAAI· Xiangyu Qi, Kaixuan Huang, Ashwinee Panda, Peter Henderson, Mengdi Wang, Prateek MittalPrinceton University; Stanford UniversityIndexed by this site · 24 days ago· Originally publishedSelected AttacksSelectedAttention41

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryIn the paper, the researchers show that optimizing a single image with a small corpus of only 66 derogatory sentences yields a single visual adversarial example that can universally jailbreak aligned vision-language models, making them comply with various harmful instructions that were not involved in the optimization. In human evaluation of MiniGPT-4, the probability of harmful output in the identity attack category rose from 26.2% to 78.5%, and the probabilities of violence and anti-human content increased by up to 37.2% and 53.3%, respectively; the attack is effective on MiniGPT-4, InstructBLIP, and LLaVA based on LLaMA-2, and cross-model black-box transferability was verified. Text adversarial attacks of the same length are less effective, with computational overhead about 12 times that of the visual attack.

Questions
Visual inputs are continuous and high-dimensional, giving vision-language models (VLMs) a larger adversarial attack surface than pure text; the authors study whether visual adversarial samples can bypass the safety guardrails of aligned LLMs, and the attack goals are not limited to misclassification.
Methods
On a 66-sentence derogatory corpus targeting three identities, PGD (5000 steps, batch 8) is used to maximize the model's conditional probability of generating that corpus, yielding a single visual adversarial sample; at inference it is concatenated with any harmful text instruction as input to the VLM, and the authors state the idea is equivalent to prompt tuning.
Experiments and results
On the three VLMs MiniGPT-4, InstructBLIP, and LLaVA, the authors report that a single example can universally increase the compliance rate with various harmful instructions: on MiniGPT-4 the identity attack success rate rises from 26.2% to 78.5% (Table 1), on LLaVA the toxicity proportion rises from 9.2% to 52.3% (Table 6), and black-box transferability exists (Table 3).
Limitations and future work
The authors note that the evaluation dataset is incomplete, human evaluation lacks recognized standards, and API evaluation accuracy is limited; it is only a proof of concept (Section 6). The experiments cover only 3 open-source VLMs, DiffPure defense is evaluated only on MiniGPT-4, and no adaptive attack experiments were conducted.
Why it was selectedThe paper presents experimental data on a single visual adversarial example universally jailbreaking multiple vision-language models, and compares the effectiveness and overhead of visual and text attacks.

The paper presents experimental data on a single visual adversarial example universally jailbreaking multiple vision-language models, and compares the effectiveness and overhead of visual and text attacks.

Read originalAAAI