TL;DR
AttackEval is a new framework designed to move beyond simple "success or failure" binary metrics when evaluating jailbreak attacks on Large Language Models (LLMs). By introducing nuanced scoring (0 to 1) and a comprehensive ground truth dataset, it reveals that many attacks previously labeled as "harmless" actually possess varying degrees of effectiveness, particularly against integrated multi-model systems.
What Problem Does This Paper Address?
As LLMs become central to digital infrastructure, "jailbreaking"—crafting prompts to bypass safety filters and generate prohibited content—has become a major security concern. Traditionally, researchers evaluate these attacks using a binary lens: either the model refused the prompt (0) or it complied (1).
The authors argue this approach is too blunt. A binary metric fails to capture the "gray area" of partial compliance or subtle harm. Furthermore, most existing evaluations rely on a single LLM (like GPT-4) as a judge, which can be biased or untrustworthy. Finally, as the industry moves toward "Mixture of Agents" (MoA) architectures, there is a lack of frameworks to evaluate how jailbreaks affect integrated systems of multiple models rather than just isolated ones.
Methods
The authors propose two distinct evaluation tiers under the AttackEval umbrella:
- Coarse-grained Evaluation: This assesses the effectiveness of an attack prompt across an integrated system of multiple LLMs (including GPT-3.5, GPT-4, Llama-2/3, Gemma, and ChatGLM). It uses a weighted scoring system where each model's contribution is proportional to its defensive robustness.
- Fine-grained Evaluation: This focuses on the intricacies of a prompt's effect on a specific model. It offers two paths:
- With Ground Truth: To reduce reliance on LLM judges, the authors use BERT embeddings to calculate the similarity between a model's response and a curated set of "ideal" harmful answers.
- Without Ground Truth: When no reference is available, they use a four-category scale: Full Rejection (0), Partial Rejection (0.33), Partial Obedience (0.66), and Full Obedience (1.0).
Datasets
The study utilizes the jailbreak_llms dataset, which contains 666 authentic "in-the-wild" jailbreak prompts and 390 harmful questions spanning 13 risk scenarios (e.g., malware generation, hate speech, fraud).
Crucially, the authors developed a new ground truth dataset. For every harmful question, they curated the three most "effective" and detailed solutions to serve as a benchmark. This allows for a more objective, similarity-based evaluation of how much illicit information a model actually leaked.
Key Insights and Ideas
- The "Gray Area" is Significant: Binary metrics often misclassify partially successful attacks as total failures. AttackEval shows a significant distribution of prompts in the 0.1 to 0.5 range, indicating that models often leak some harmful information even if they don't fully comply.
- Integrated Vulnerability: By weighting models based on their defense rates, the coarse-grained metric provides a realistic view of how a prompt might perform against a production-grade system that uses multiple models for verification or generation.
- Scenario-Specific Weakness: The research found that "Political Lobbying" was consistently the most successful jailbreak scenario across almost all tested models, suggesting a systemic weakness in how LLMs handle politically sensitive influence operations.
- Ground Truth Stability: The authors found that increasing the number of ground truth references (from 3 to 10) had a minimal impact on scores, suggesting that a small, high-quality set of reference answers is sufficient for robust evaluation.
Key Results
The authors demonstrated that their metrics correlate strongly with traditional binary baselines (coefficients of 0.85–0.88), proving their validity while offering much higher resolution.
As seen in Figure 1, while the baseline (bars) shows a massive spike at 0 (failure), the AttackEval metric (line) reveals that many of those "failures" actually have non-zero effectiveness. The red demarcation line at 0.5 shows that while the aggregate totals align with the baseline, the internal distribution is far more nuanced.
Qualitatively, GPT-4 remained the most robust model, while models like ChatGLM and Gemma showed higher average effectiveness scores across several harmful scenarios (see Table 3 and 4 in the paper).
Limitations and Future Work
While the "With Ground Truth" method reduces reliance on LLM judges, the authors acknowledge that the initial construction of that ground truth still involved GPT-4 to generate and filter candidates.
Future work could explore:
- Expanding the framework to evaluate multi-modal jailbreaks (e.g., combining text and images).
- Developing automated ways to generate the ground truth dataset to further remove human or model-specific bias.
- Testing the framework against even more complex "agentic" workflows where LLMs interact with external tools.
Summary updated