TL;DR
Current large language model (LLM) jailbreak benchmarks are systematically inflated because they ignore the inherent randomness (stochasticity) of both LLM generation and LLM-based safety judges. This paper introduces Consistency for Attack Success (CAS), a new metric and evaluation framework that filters out "lucky" single-shot jailbreaks to provide a realistic, reproducible measure of AI safety vulnerabilities.
What Problem Does This Paper Address?
When researchers try to break an LLM's safety guardrails (known as "jailbreaking"), they typically measure success using the Attack Success Rate (ASR). If a malicious prompt tricks the model into giving a harmful response just once, it is marked as a successful jailbreak.
However, LLMs are inherently stochastic (random). A jailbreak prompt that succeeds on the first try might fail on the next nine attempts. Furthermore, the automated LLM judges (like Llama-Guard) used to evaluate whether a response is harmful are also stochastic. This double layer of randomness means that many published ASR scores are inflated by lucky draws rather than reflecting a genuine, reproducible vulnerability.
Methods
The authors propose a new metric called Consistency for Attack Success (CAS). Instead of using an "OR" rule (where one success out of $N$ attempts counts as a win), CAS uses an "AND" rule: a jailbreak prompt is only considered successful if it consistently triggers a harmful response across all $k$ independent evaluation runs.
They instantiate this metric into two novel frameworks:
- CAS-eval: Controls the evaluation stage by querying the judge $k_{eval}$ independent times for a fixed prompt, effectively suppressing false positives caused by judge non-determinism.
- CAS-gen: Controls the attack generation stage. A jailbreak prompt is only accepted into the final attack dataset if it successfully bypasses the target model's guardrails $k_{gen}$ consecutive times during optimization.
Datasets
The authors evaluated their framework using a subset of JailbreakBench, testing four prominent black-box attacks (Best-of-N, PAIR, TAP, and Crescendo) across five target models (ranging from 1B to 70B parameters) and two judge models (Llama-Guard-3-1B and 8B).
Additionally, because they couldn't use adversarial prompts on commercial APIs without violating terms of service, they built a custom non-adversarial dataset of 20 prompts across five categories (factual, math, code, creative, reasoning) to study whether commercial models are truly deterministic at a temperature of zero ($T=0$).
Key Insights and Ideas
- ASR is a Random Variable: Treating ASR as a fixed point estimate is fundamentally flawed. It is highly sensitive to random seed variations and judge inconsistency.
- The Judge's Temperature is a Silent Killer: Raising the judge's evaluation temperature ($\theta_{eval}$) from 0 to 1.0 can collapse the reported ASR by up to 54 percentage points purely due to labeling noise on borderline responses.
- Greedy Decoding ($T=0$) is Not Fully Deterministic: In commercial APIs like Claude Sonnet 4.6, setting the temperature to 0 still resulted in a surprisingly low exact-match rate of 58.5% across identical runs, likely due to backend hardware non-determinism or parallel processing optimizations.
Key Results
- The ASR Drop: Moving from a standard single-shot evaluation ($k_{eval}=1$) to a strict 10-evaluation threshold ($k_{eval}=10$) reduces reported ASR by 12 to 24 percentage points across all tested configurations.
- Recovery via CAS-gen: While strict evaluation lowers the apparent success rate, generating attacks using
CAS-gen($k_{gen}=10$) filters out weak prompts and lifts the ASR back up by 12 to 30 percentage points, proving that it successfully selects genuinely robust jailbreaks.
Limitations and Future Work
- Attack Coverage: The study focused exclusively on sampling-based black-box attacks. White-box or gradient-based attacks (like Greedy Coordinate Gradient) operate differently and might exhibit different stochasticity profiles.
- Proprietary Models: The core evaluation was restricted to open-weight models (Llama, Gemma, Granite). Heavily RLHF-aligned proprietary models (like GPT-4o or Claude) often use undisclosed safety stacks that complicate the isolation of generation vs. evaluation noise.
- Modality: The frameworks are currently limited to text-based jailbreaks; extending this consistency analysis to multimodal settings (vision and audio) remains an open avenue for future research.
Summary updated