Jailbreaking Black Box Large Language Models in Twenty Queries
Authors:
Top Cited Papers
- 9 April 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 23-42
Abstract
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.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Visual Adversarial Examples Jailbreak Aligned Large Language ModelsProceedings of the AAAI Conference on Artificial Intelligence, 2024
- MASTERKEY: Automated Jailbreaking of Large Language Model Chatbots2024
- Large language models in medicineNature Medicine, 2023
- Parallel Rectangle Flip Attack: A Query-based Black-box Attack against Object Detection2021
- Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation2021
- AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts2020
- Beyond Accuracy: Behavioral Testing of NLP Models with CheckList2020
- Certified Robustness to Adversarial Examples with Differential Privacy2019
- Adversarial Attacks and Defences Competition2018
- ZOO2017