Abstract
Current evaluations for Large Language Model (LLM) safety and alignment are hindered by statistical noise, inconsistent implementation details, and biased automated judges. This paper systematically exposes how minor, often undocumented discrepancies—such as whitespace token handling or chat template selection—can drastically skew attack success rates (ASR). These inconsistencies make it nearly impossible to fairly compare safety defenses or jailbreak attacks. We provide empirical evidence of these failure modes and offer recommendations for more robust evaluation practices.
Introduction
As LLMs advance, ensuring they do not generate harmful content is paramount. Researchers typically assess model safety using "jailbreaks"—adversarial prompts designed to bypass guardrails. However, measuring robustness against these attacks is currently unreliable. Unlike fields with strict mathematical definitions for adversarial perturbations, LLM safety relies on subjective language and complex, fragmented evaluation pipelines.
The current ecosystem suffers from small datasets leading to statistical insignificance, inconsistent coding practices introducing hidden bugs, and fragmented judging criteria. This paper audits the three primary stages of the safety evaluation pipeline: Datasets, Algorithms, and Evaluation.
The LLM Safety Pipeline: Failure Modes
The authors identify critical issues at every stage of the evaluation process:
- Datasets: Benchmarks like AdvBench or HarmBench are often too small (100-500 prompts) to provide statistically significant results. They are frequently repetitive, single-turn, and limited to English.
- Algorithms: Attacks often rely on "greedy decoding" (temperature 0), which does not reflect real-world usage. Furthermore, implementation bugs in toolboxes can lead to misleading results.
- Evaluation: Automated "LLM-as-a-judge" models exhibit significant biases and lack manual verification, leading to inconsistent normalization across different studies.
Empirical Case Studies
The Impact of Implementation Details
Minor coding details, such as how whitespace is handled before control tokens, can have a massive impact on perceived robustness. If an attack algorithm misaligns these tokens, the optimizer's effort is wasted.
As shown in the figure above, properly handling a single SentencePiece whitespace token increased the Attack Success Rate (ASR) of the Greedy Coordinate Gradient (GCG) attack against Llama-2-7b from 63% to 91%. Similarly, changing the chat template or token filtering logic caused ASR against Llama-3.1-8B to fluctuate between 71% and 85%.
Statistical Significance and Judge Bias
The paper re-evaluates high-profile safety claims using standard statistical methods. For instance, a comparison between OpenAI's o1 and Claude 3.5 Sonnet on public datasets yielded p-values (p ≈ 0.12 for overrefusal, p ≈ 0.38 for jailbreaks) that fail to meet standard thresholds for significance.
Furthermore, automated judges often disagree. In a study of 5.2 million generations, the HarmBench and StrongREJECT judges disagreed on ASR by up to 25% depending on the model and attack. This suggests that "state-of-the-art" claims may often be artifacts of the specific judge used rather than true safety improvements.
Recommendations for Robust Evaluation
To improve the reliability of LLM safety research, the authors propose several shifts in practice:
- Scale Benchmarks: Use larger datasets to reduce statistical uncertainty and ensure findings are not due to noise.
- Standardize Implementations: Track attack states as raw strings rather than raw tokens to avoid alignment bugs.
- Control for Budgets: Compare algorithms based on fixed compute or query budgets.
- Diversify Evaluation: Use multiple automated judges combined with manual verification.
- Test Distributional Sampling: Evaluate models using sampling rather than just greedy decoding to better reflect real-world deployment.
By addressing these systemic issues, the community can move toward a more rigorous and comparable understanding of LLM safety and robustness.
Summary updated