[Paper Review] JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models
JailbreakBench provides an open, reproducible benchmark with artifacts, a dataset of 100 harmful/benign behaviors, a standardized evaluation framework, a judge classifier, and a public leaderboard to track jailbreaking attacks and defenses on various LLMs.
Jailbreak attacks cause large language models (LLMs) to generate harmful, unethical, or otherwise objectionable content. Evaluating these attacks presents a number of challenges, which the current collection of benchmarks and evaluation techniques do not adequately address. First, there is no clear standard of practice regarding jailbreaking evaluation. Second, existing works compute costs and success rates in incomparable ways. And third, numerous works are not reproducible, as they withhold adversarial prompts, involve closed-source code, or rely on evolving proprietary APIs. To address these challenges, we introduce JailbreakBench, an open-sourced benchmark with the following components: (1) an evolving repository of state-of-the-art adversarial prompts, which we refer to as jailbreak artifacts; (2) a jailbreaking dataset comprising 100 behaviors -- both original and sourced from prior work (Zou et al., 2023; Mazeika et al., 2023, 2024) -- which align with OpenAI's usage policies; (3) a standardized evaluation framework at https://github.com/JailbreakBench/jailbreakbench that includes a clearly defined threat model, system prompts, chat templates, and scoring functions; and (4) a leaderboard at https://jailbreakbench.github.io/ that tracks the performance of attacks and defenses for various LLMs. We have carefully considered the potential ethical implications of releasing this benchmark, and believe that it will be a net positive for the community.
Motivation & Objective
- Standardize evaluation of jailbreaking attacks and defenses for LLMs.
- Provide an open repository of jailbreak artifacts to enable reproducible research.
- Offer a standardized red-teaming pipeline and defense testing framework.
- Establish a jailbreaking judge and a dataset of harmful/benign behaviors for evaluation.
Proposed method
- Curate an evolving repository of state-of-the-art jailbreak artifacts and defenses.
- Define JBB-Behaviors dataset with 100 harmful/benign behaviors aligned to OpenAI policies.
- Develop a reproducible evaluation framework with system prompts, judge, and scoring functions.
- Implement a jailbreaking classifier evaluation to select an effective judge (Llama-3-70B chosen).
- Provide a pipeline for red-teaming LLMs and a separate pipeline for testing defenses.
- Maintain a public leaderboard and website to report attack/defense performance across models.
Experimental results
Research questions
- RQ1How can jailbreaking attacks be standardized and reproducibly evaluated across LLMs?
- RQ2Which jailbreak artifacts and defenses are most effective under a uniform evaluation framework?
- RQ3What judge/classifier best approximates human judgments of harmful content in jailbreak contexts?
- RQ4How do attacks perform on open vs. closed models, and how do defenses mitigate them under adaptive conditions?
Key findings
- A variety of attacks achieve high success rates across models, with Prompt with RS showing strong effectiveness on open and closed models.
- GCG, PAIR, JB-Chat vary in effectiveness across Vicuna, Llama-2, GPT-3.5, and GPT-4, highlighting model-dependent robustness.
- Five baseline defenses show different levels of effectiveness, with Erase-and-Check generally robust but not universally so.
- Llama-3-70B and GPT-4 offer high agreement with human judges for jailbreaking classification, supporting open-weight judging alternatives.
- A standardized, reproducible framework enables consistent evaluation of attack/defense performance and facilitates community contributions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.