Visual Adversarial Examples Jailbreak Aligned Large Language Models

By Xiangyu Qi, Kaixuan Huang, Ashwinee Panda, Mengdi Wang, Prateek Mittal. AAAI Conference on Artificial Intelligence, 2023

403 citations recorded by the source corpus.

Warning: this paper contains data, prompts, and model outputs that are offensive in nature. Recently, there has been a surge of interest in integrating vision into Large Language Models (LLMs), exemplified by Visual Language Models (VLMs) such as Flamingo and GPT-4. This paper sheds light on the security and safety implications of this trend. First, we underscore that the continuous and high-dimensional nature of the visual input makes it a weak link against adversarial attacks, representing an expanded attack surface of vision-integrated LLMs. Second, we highlight that the versatility of LLMs also presents visual attackers with a wider array of achievable adversarial objectives, extending the implications of security failures beyond mere misclassification. As an illustration, we present a case study in which we exploit visual adversarial examples to circumvent the safety guardrail of aligned LLMs with integrated vision. Intriguingly, we discover that a single visual adversarial example can universally jailbreak an aligned LLM, compelling it to heed a wide range of harmful instructions (that it otherwise would not) and generate harmful content that transcends the narrow scope of a `few-shot' derogatory corpus initially employed to optimize the adversarial example. Our study underscores the escalating adversarial risks associated with the pursuit of multimodality. Our findings also connect the long-studied adversarial vulnerabilities of neural networks to the nascent field of AI alignment. The presented attack suggests a fundamental adversarial challenge for AI alignment, especially in light of the emerging trend toward multimodality in frontier foundation models.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/142e934dd5d6c53f877c30243d436255e3a0dde7

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Siddharth Karamcheti
  2. Dorsa Sadigh
  3. Prateek Mittal
  4. Peter Henderson
  5. Percy Liang
  6. Suraj Nair
  7. Yue Dong
  8. Xiangyu Qi

In Computer Vision and Pattern Recognition

  1. Siddharth Karamcheti
  2. Dorsa Sadigh
  3. Percy Liang
  4. Prateek Mittal
  5. Suraj Nair
  6. Peter Henderson
  7. Nael B. Abu-Ghazaleh
  8. Sisi Duan

Citations in the corpus