Jailbreaking Black Box Large Language Models in Twenty Queries

By Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George Pappas, Eric Wong. 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2023

1,568 citations recorded by the source corpus.

There is growing interest in ensuring that large language models (LLMs) align with human values. However, the alignment of such models is vulnerable to adversarial jailbreaks, which coax LLMs into overriding their safety guardrails. The identification of these vulnerabilities is therefore instrumental in understanding inherent weaknesses and preventing future misuse. To this end, we propose Prompt Automatic Iterative Refinement (PAIR), an algorithm that generates semantic jailbreaks with only black-box access to an LLM. PAIR—which is inspired by social engineering attacks—uses an attacker LLM to automatically generate jailbreaks for a separate targeted LLM without human intervention. In this way, the attacker LLM iteratively queries the target LLM to update and refine a candidate jailbreak. Empirically, PAIR often requires fewer than twenty queries to produce a jailbreak, which is orders of magnitude more efficient than existing algorithms. PAIR also achieves competitive jailbreaking success rates and transferability on open and closed-source LLMs, including GPT-3.5/4, Vicuna, and Gemini.

Subfields: Artificial Intelligence, Management Science and Operations Research

View Paper: https://www.semanticscholar.org/paper/4637f79ddfaf923ce569996ffa5b6cda1996faa1

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. Matthias Hein
  2. Dan Hendrycks
  3. Percy Liang
  4. Quoc V. Le
  5. Luke S. Zettlemoyer
  6. Mohit Bansal
  7. Maksym Andriushchenko
  8. Jianfeng Gao

In Management Science and Operations Research

  1. David Kristjanson Duvenaud
  2. Dan Hendrycks
  3. Jared Kaplan
  4. Maksym Andriushchenko
  5. Mantas Mazeika
  6. Alex Tamkin
  7. Cem Anil
  8. Steven Basart

Citations in the corpus