Jailbreaking Black Box Large Language Models in Twenty Queries
Open accessThe DOI matches its Crossref record; 45 of the 45 references it cites were found in a registry or an index.
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 1×
“The strong performance of LLMs is largely due to the fact that they are trained on vast text corpora—often scraped from the Internet—which in turn facilitates the generation of realistic text that pertains to a diverse set of topics [5, 33].”
Explaining and Harnessing Adversarial Examples
Goodfellow, I. J., Shlens, J., & Szegedy, C. (2014) · arXiv · doi:10.48550/arxiv.1412.6572 · Cited by 10,381
Intriguing properties of neural networks
Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., & Fergus, R. (2013) · arXiv · doi:10.48550/arxiv.1312.6199 · Cited by 8,143 · cited 1×
“In particular, a great deal of work has shown that deep neural networks are vulnerable to small, norm-bounded, adversarially-chosen perturbations; such perturbations are known as adversarial examples [13, 31].”
Towards Deep Learning Models Resistant to Adversarial Attacks
Madry, A., Makelov, A., Schmidt, L., Tsipras, D., & Vladu, A. (2017) · arXiv · doi:10.48550/arxiv.1706.06083 · Cited by 6,602
Chain-Of-Thought Prompting Elicits Reasoning in Large Language Models
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q. V., & Zhou, D. (2022) · Advances in Neural Information Processing Systems 35 · doi:10.52202/068431-1800 · Cited by 4,505
Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022) · arXiv · doi:10.48550/arxiv.2201.11903 · Cited by 4,263
Large language models in medicine
Thirunavukarasu, A. J., Ting, D. S. J., Elangovan, K., Gutierrez, L., Tan, T. F., & Ting, D. S. W. (2023) · Nature Medicine · doi:10.1038/s41591-023-02448-8 · Cited by 3,944 · cited 1×
“Although still at its infancy, the field of study surrounding large language models (LLMs) has shown significant promise in advancing numerous fields, including code generation [28], business analytics [38], and medicine [32].”
Llama 2: Open Foundation and Fine-Tuned Chat Models
Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. (2023) · arXiv · doi:10.48550/arxiv.2307.09288 · Cited by 2,604
Chen, P.-Y., Zhang, H., Sharma, Y., Yi, J., & Hsieh, C.-J. (2017) · Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security · doi:10.1145/3128572.3140448 · Cited by 1,656 · cited 1×
“This significant discrepancy is a major strength and one of the key selling points of our approach relative to GCG.”
Making Pre-trained Language Models Better Few-shot Learners
Gao, T., Fisch, A., & Chen, D. (2021) · Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · doi:10.18653/v1/2021.acl-long.295 · Cited by 1,380
Research works printed but not linked: 22
- Wu, 2023, Bloomberggpt: A large language model for finance, arXiv preprint
- Korbak, 2023, Pretraining language models with human preferences, 17506
- Ouyang, 2022, Training language models to follow instructions with human feedback, 2022, 13
- Carlini, 2023, Are aligned neural networks adversarially aligned?
- Maus, 2023, Black box adversarial prompting for foundation models
- Jones, 2023, Automatically auditing large language models via discrete optimization
- Zou, 2023, Universal and transferable adversarial attacks on aligned language models
- Inan, 2023, Llama guard: Llm-based input-output safe-guard for human-ai conversations
- Bai, 2022, Constitutional ai: Harmlessness from ai feedback
- Bartolo, 2021, Models in the loop: Aiding crowdworkers with generative annotation assistants, arXiv preprint
- Huang, 2023, Catastrophic jailbreak of open-source llms via exploiting generation
- Mazeika, 2023, Tdc 2023 (llm edition): The trojan detection challenge
- Jiang, 2024, Mixtral of experts
- Zheng, 2023, Judging llm-as-a-judge with mt-bench and chatbot arena
- 2023, Gpt-4 technical report
- 2023, Gemini: A family of highly capable multi-modal models
- Jain, 2023, Baseline defenses for adversarial attacks against aligned language models, arXiv preprint
- Wang, 2019, Improving adversarial robustness requires revisiting misclassified examples, International conference on learning representations
- Cohen, 2019, Certified adversarial robustness via randomized smoothing, 1310
- Salman, 2019, Provably robust deep learning via adversarially trained smoothed classifiers, Advances in Neural Information Processing Systems, 32
- Ji, 2024, Defending large language models against jailbreak attacks via semantic smoothing, arXiv preprint
- Zhou, 2024, Robust prompt optimization for defending language models against jailbreaking attacks, arXiv preprint
Cited by
Security and Privacy Challenges of Large Language Models: A Survey
Das, B. C., Amini, M. H., & Wu, Y. (2025) · ACM Computing Surveys · doi:10.1145/3712001 · Cited by 445
“It can automatically generate jailbreaking prompts for a distinct targeted LLM, eliminating the need for human intervention [79].”
Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks
Andriushchenko, M., Croce, F., & Flammarion, N. (2024) · arXiv · doi:10.48550/arxiv.2404.02151 · Cited by 396
“We measure the attack success rate according to GPT-4 judge (Chao et al., 2023) depending on the request structure: user denotes providing the whole manual prompt in a single user message, system+user splits the manual prompt in the system and user messages.”
InfluentialAdvPrompter: Fast Adaptive Adversarial Prompting for LLMs
Paulus, A., Zharmagambetov, A., Guo, C., Amos, B., & Tian, Y. (2024) · arXiv · doi:10.48550/arxiv.2404.16873 · Cited by 184
Zeng, Y., Lin, H., Zhang, J., Yang, D., Jia, R., & Shi, W. (2024) · arXiv · doi:10.48550/arxiv.2401.06373 · Cited by 174
“…virtualization or role-play), e.g., Yu et al. (2023) learn the distribution of virtualization-based jailbreak templates to produce jailbreak variants, while PAIR (Chao et al., 2023) asks LLMs to improve instructions as an “assistant” and often leads to prompts that employ virtualization or persona.”
InfluentialHughes, J., Price, S., Lynch, A., Schaeffer, R., Barez, F., Koyejo, S., Sleight, H., Jones, E., Perez, E., & Sharma, M. (2024) · arXiv · doi:10.48550/arxiv.2412.03556 · Cited by 129
Know Your Limits: A Survey of Abstention in Large Language Models
Wen, B., Yao, J., Feng, S., Xu, C., Tsvetkov, Y., Howe, B., & Wang, L. L. (2025) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00754 · Cited by 56
Jailbreak and Guard Aligned Language Models With Only Few In-Context Demonstrations
Wei, Z., Wang, Y., Li, A., Mo, Y., & Wang, Y. (2026) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2026.3660147 · Cited by 51
Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis
Lin, Y., He, P., Xu, H., Xing, Y., Yamada, M., Liu, H., & Tang, J. (2024) · Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2024.emnlp-main.401 · Cited by 46
Is LLM-as-a-Judge Robust? Investigating Universal Adversarial Attacks on Zero-shot LLM Assessment
Raina, V., Liusie, A., & Gales, M. (2024) · arXiv · doi:10.48550/arxiv.2402.14016 · Cited by 40
Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks
Pasquini, D., Strohmeier, M., & Troncoso, C. (2024) · arXiv · doi:10.48550/arxiv.2403.03792 · Cited by 27
Efficient Adversarial Training in LLMs with Continuous Attacks
Xhonneux, S., Sordoni, A., Günnemann, S., Gidel, G., & Schwinn, L. (2024) · arXiv · doi:10.48550/arxiv.2405.15589 · Cited by 16
“Similarly, Chao et al. [14] found that LLMs could be leveraged to create jailbreaks for other LLMs, even without fine-tuning.”
BackgroundFrom Allies to Adversaries: Manipulating LLM Tool-Calling through Adversarial Injection
Zhang, R., Wang, H., Wang, J., Li, M., Huang, Y., Wang, D., & Wang, Q. (2025) · Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers) · doi:10.18653/v1/2025.naacl-long.101 · Cited by 11
Ranking Manipulation for Conversational Search Engines
Pfrommer, S., Bai, Y., Gautam, T., & Sojoudi, S. (2024) · arXiv · doi:10.48550/arxiv.2406.03589 · Cited by 8
“Our work investigates a few fundamental factors driving conversational search rankings and provides evidence that these rankings are susceptible to adversarial manipulation (see Figure 1). refine adversarial strings (Chao et al., 2023; Perez et al., 2022; Wu et al., 2023; Mehrotra et al., 2023).”
BackgroundLanguage-Models-as-a-Service: Overview of a New Paradigm and its Challenges
La Malfa, E., Petrov, A., Frieder, S., Weinhuber, C., Burnell, R., Nazar, R., Cohn, A., Shadbolt, N., & Wooldridge, M. (2024) · Journal of Artificial Intelligence Research · doi:10.1613/jair.1.15865 · Cited by 9
Zhou, Q., Zhang, Z., Zhi, L., & Sun, L. (2026) · Findings of the Association for Computational Linguistics: EMNLP 2026 · doi:10.18653/2026.findings-emnlp.49 · Cited by 8
Sharma, M., Tong, M., Mu, J., Wei, J., Kruthoff, J., Goodfriend, S., Ong, E., Peng, A., Agarwal, R., Anil, C., et al. (2025) · arXiv · doi:10.48550/arxiv.2501.18837 · Cited by 7
Dissecting Adversarial Robustness of Multimodal LM Agents
Wu, C. H., Shah, R., Koh, J. Y., Salakhutdinov, R., Fried, D., & Raghunathan, A. (2024) · arXiv · doi:10.48550/arxiv.2406.12814 · Cited by 1
Savani, Y., Trockman, A., Feng, Z., Xu, Y. E., Schwarzschild, A., Robey, A., Finzi, M., & Kolter, J. Z. (2025) · arXiv · doi:10.48550/arxiv.2504.13146 · Cited by 1
“The main idea underpinning antidistillation sampling is to adjust a model’s sampling distribution so that generated traces maintain high likelihood under the unadjusted distribution, and distillation attempts are simultaneously poisoned.”
Self-citationEfficient LLM Safety Evaluation through Multi-Agent Debate
Lin, D., Shen, G., Yang, Z., Liu, T., Zhao, D., & Zeng, Y. (2025) · arXiv · doi:10.48550/arxiv.2511.06396 · Cited by 8
“…judge (GCG) [28], fine-tuned judge (Llama-Guard [14], JudgeLM [27]), and two types of single-turn prompt-based judge, namely pair judge from [5], and align judge that utilized our framework’s final judge prompt As shown in Figure 2a, pairwise agreement among safety judges is low, evidencing…”
InfluentialA Coin Flip for Safety: LLM Judges Fail to Reliably Measure Adversarial Robustness
Schwinn, L., Ladenburger, M., Beyer, T., Mofakhami, M., Gidel, G., & Günnemann, S. (2026) · arXiv · doi:10.48550/arxiv.2603.06594 · Cited by 19
“Prompt Automatic Iterative Refinement is an automated framework that uses a secondary attacker LLM to iteratively refine a prompt based on feedback from the victim model and a safety judge (Chao et al., 2025).”
LLMs Cannot Reliably Judge (Yet?): A Comprehensive Assessment on the Robustness of LLM-as-a-Judge
Li, S., Xu, C., Wang, J., Gong, X., Chen, C., Zhang, J., Wang, J., Lam, K.-Y., & Ji, S. (2025) · arXiv · doi:10.48550/arxiv.2506.09443 · Cited by 40
“Jailbreaking involves designing inputs that circumvent an LLM’s built-in safeguards, coercing it into producing content that violates its usual policy constraints, such as harmful or unethical outputs [15], [16], [33], [34].”
Influential
Metadata
- Authors
- Chao, P., Robey, A., Dobriban, E., Hassani, H., Pappas, G. J., & Wong, E.
- Venue
- 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML)
- Publisher
- IEEE
- Published
- 2025-04-09
- Pages
- 23-42
- OpenAlex
- W4410609100
- Cited by
- 193
- References
- 45
- FWCI
- 175.49
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.