NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AttackEval: How to Evaluate the Effectiveness of Jailbreak Attacking on Large Language Models

Dong Shu, Mingyu Jin, Suiyuan Zhu, Beichen Wang, Zihao Zhou, Chong Zhang, Yongfeng Zhang

TL;DR

This paper introduces AttackEval, a novel framework for evaluating the effectiveness of jailbreak attacks on Large Language Models (LLMs). It moves beyond simple binary success/failure metrics to offer more nuanced, fine-grained assessments and introduces a comprehensive ground truth dataset for more systematic evaluation.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly powerful, but also vulnerable to "jailbreak" attacks. These attacks aim to trick LLMs into generating harmful, unethical, or prohibited content by circumventing their built-in safety mechanisms. Existing evaluation methods for these attacks are often too simplistic, relying on binary metrics (successful or not) that can miss subtle vulnerabilities. Furthermore, many evaluations depend on a single LLM (like GPT-4) as a judge, which might not always be reliable. This paper addresses the need for a more sophisticated and robust evaluation framework that can better capture the nuances of jailbreak attacks and their impact on LLMs, especially as LLMs are increasingly integrated into complex systems.

Methods

The core contribution is a two-tiered evaluation framework:

  1. Coarse-grained Evaluation: This assesses the overall effectiveness of attack prompts across a suite of widely recognized LLMs. It aims to understand how jailbreak attacks can compromise integrated LLM systems. This involves calculating a weighted average of individual LLM scores, where weights are determined by each LLM's defense rate against attacks.
  2. Fine-grained Evaluation: This delves deeper into the effectiveness of attack prompts on individual LLMs. It offers two sub-approaches:
  3. With Ground Truth: This method compares LLM responses to a curated set of three "most effective" ground truth answers for each prompt, using BERT embeddings to calculate similarity scores.
  4. Without Ground Truth: This approach categorizes responses into four levels: Full Rejection (0), Partial Rejection (0.33), Partial Obedience (0.66), and Full Obedience (1), providing a more granular assessment without relying on pre-defined correct answers.

The paper also introduces a comprehensive jailbreak ground truth dataset, compiled from various sources, covering 13 critical scenarios.

Datasets

The primary dataset used is jailbreak_llms, a collection of 666 prompts and 390 harmful questions spanning 13 scenarios (e.g., Illegal Activity, Hate Speech, Privacy Violations). The authors specifically excluded prompts used for calculating LLM weights to ensure unbiased evaluation. A new ground truth dataset was also created as part of the fine-grained evaluation with ground truth, consisting of the three most effective solutions for each question.

Key Insights and Ideas

  • Beyond Binary: Simple binary evaluations (success/failure) are insufficient. AttackEval's graded scoring reveals that many prompts classified as harmless by binary metrics can still exhibit partial effectiveness, indicating a more nuanced threat landscape.
  • LLM Integration Matters: Evaluating attacks on integrated LLM systems (coarse-grained) is crucial, as vulnerabilities might manifest differently than in isolated LLMs.
  • Ground Truth is Valuable: The fine-grained evaluation with ground truth provides a more objective measure by comparing LLM outputs against known effective responses.
  • "Political Lobbying" is a Hotspot: Across multiple evaluation methods and LLMs, prompts related to "Political Lobbying" consistently show the highest effectiveness scores, suggesting a particular vulnerability in this domain.
  • Correlation with Baseline: Despite offering more nuanced insights, AttackEval's metrics show a strong correlation with traditional baseline metrics, validating its approach while highlighting its superior detail.

Key Results

  • AttackEval's metrics consistently show a slightly higher percentage of attack prompts classified as harmful compared to traditional binary baselines.
  • The framework demonstrates that even prompts considered "harmless" by binary metrics can achieve non-zero scores, indicating potential for subtle exploitation.
  • In the fine-grained evaluation with ground truth, the size of the ground truth set (3, 5, or 10 answers) had a minimal impact on scores (less than 5% difference).
  • Across various scenarios and LLMs, "Political Lobbying" consistently yielded the highest effectiveness scores. For instance, in Table 3 (fine-grained with GT), it reached 0.65 for GPT3.5, and in Table 4 (fine-grained without GT), it reached 0.56 for GPT3.5.
  • Correlation analysis showed high correlation coefficients (0.85-0.88) between AttackEval's metrics and the baseline, confirming alignment in overall trends.

Limitations and Future Work

  • LLM Judgment Reliability: While the paper notes human evaluation aligns with GPT-4 judgment, the reliance on LLMs for evaluation (even as judges) can still introduce biases or limitations. The paper acknowledges this by offering a fine-grained evaluation without ground truth, which relies less on external judgment.
  • Scope of Scenarios: While the dataset covers 13 scenarios, the authors might explore an even broader range of potential misuse cases in the future.
  • Future Work: The authors suggest further research into how jailbreak attacks can effectively compromise integrated LLM systems (like Mixture-of-Agents) and the development of more advanced defensive strategies, particularly for high-risk scenarios like "Political Lobbying." They also aim to expand the ground truth dataset and explore more sophisticated evaluation methodologies.

Summary updated

BibTeX
@inproceedings{shu2024attackeval,
  author = {Dong Shu and Mingyu Jin and Suiyuan Zhu and Beichen Wang and Zihao Zhou and Chong Zhang and Yongfeng Zhang},
  title = {{AttackEval: How to Evaluate the Effectiveness of Jailbreak Attacking on Large Language Models}},
  booktitle = {SIGKDD Explor},
  year = {2024},
  url = {https://openreview.net/forum?id=HneWDpW2Ev},
}
Figure