Skip to main content
QUICK REVIEW

[论文解读] JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models

Patrick Chao, Edoardo Debenedetti|arXiv (Cornell University)|Mar 28, 2024
Digital and Cyber ForensicsComputer Science被引用 9
一句话总结

tldr: JailbreakBench 提供一个开放、可复现的基准,包含工件、一个包含100个有害/无害行为的数据集、一个标准化评估框架、一个评判分类器,以及一个公开排行榜,用于跟踪各LLM的越狱攻击与防御。

ABSTRACT

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.

研究动机与目标

  • 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.

提出的方法

  • 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.

实验结果

研究问题

  • 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?

主要发现

  • 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.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。