Visual adversarial examples can jailbreak aligned large language modelsVisual Adversarial Examples Jailbreak Aligned Large Language Models
Translation in progress — untranslated text is omitted.
In 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.
- 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.
- 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.
- 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).
- 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.
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.