Estimating the attack success rate with imperfect automatic judges and repeated generations: a cluster-robust estimator with arm-specific calibration
In research on the safety of large language models (LLMs), the attack success rate (ASR) is the most widely used measure for comparing models, attacks and defenses, but it is almost always computed with an imperfect automatic judge and over several generations of the same prompt. Recent literature has shown separately that judge error distorts the ASR and may depend on the evaluated model, and that reusing prompts violates the independence of observations. This work presents a closed form for the ASR difference between two arms that combines the arm-specific Rogan–Gladen correction with a cluster-robust variance by prompt, paired across arms and with variable cluster size, which also propagates the uncertainty of the human calibration. A cluster bootstrap variant is also shown. The method is evaluated with Monte Carlo simulations with known truth (51 configurations): a judge that is more accurate on one arm than on the other yields, with the raw ASR, Type I errors up to 0.86 with n = 200 prompts and m = 10 generations per prompt (0.15–0.18 with m = 1; nominal level 0.05), whereas the proposed estimator is unbiased with coverage 0.94–0.97 when the assumptions hold. On two public datasets with human labels (the validation set of HarmBench, in which clusters are almost absent; data of Schwinn et al., preselected with another judge) a resampling is used in which the population is the empirical distribution of the dataset. With calibration coming from the arm itself, the coverage of the 95% interval is 0.95–0.96 for three judges with high J over ten comparisons between attacks, but this outcome is guaranteed by the design (transportability is true by construction) and is not an independent validation. With calibration coming from other attack methods, coverage drops to 0.86–0.91 and the mean absolute bias rises to 0.09–0.11, values no better than those of the raw ASR with cluster standard error (coverage 0.82–0.92, bias 0.03–0.07); with weak judges (J ≤ 0.21) the intervals are uninformative. The intra-behavior correlation of the human labels of the second dataset is about 0.37–0.38 (design effect 3.7–6.6) and iid standard errors cover only ≈0.81. The present contribution is to be regarded as a specialization, as well as a verification of known methods, with limitations present above all in the empirical part.
Authors
- Eduardo De Filippis (ORCID: https://orcid.org/0009-0006-2852-9143)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24773212
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00