SafeCalib: benchmarking security-critical refusal calibration in instruction-tuned language models
Instruction-tuned large language models (LLMs) increasingly act as gatekeepers for security-sensitive and dual-use requests, yet most AI safety evaluations report refusal as a binary outcome. This leaves a deployment-critical question underexamined: whether a model separates harmful requests from legitimate security work reliably, and whether that separation survives adversarial framing. We introduce a refusal-evaluation framework comprising a two-sided, intensity-stratified error measure—Calibration-Adapted Expected Calibration Error (CA-ECE)—paired Overrefusal/Underrefusal Rate (ORR/URR) measurement, and Adversarial Calibration Shift (ACS), a statistic for how far underrefusal erodes as adversarial prompt framing intensifies. We state its scope explicitly: a refusal decision carries no confidence score, so CA-ECE is not a probability-calibration error but the fixed-weight average $$\tfrac{1}{2}(\bar{\textrm{URR}}+\bar{\textrm{ORR}})$$, whose neutral value 0.5 is shared by any policy that always refuses or never refuses. We instantiate the framework with SafeCalibBench, a 6,080-prompt benchmark covering malware generation, phishing, social engineering, network exploitation and chemical/biological misuse, with binary refusal labels, five adversarial intensity levels and legitimate-security-research hard negatives. Evaluating four instruction-tuned LLMs and three base counterparts on a stratified 2,000-prompt subsample, with intervals from a base-prompt-level cluster bootstrap, we find a consistent tradeoff: instruction tuning reduces direct underrefusal by 58.9 percentage points on average relative to base models but raises overrefusal by 20.0 points (mean ORR $$=24.6\%$$). Base-model CA-ECE (0.506–0.518) lies within 0.02 of the content-independent baseline of 0.5, so their low overrefusal reflects indiscriminate acceptance; instruction-tuned models reach 0.336–0.443. Continuation framing raises underrefusal by up to 37.7 points relative to direct prompts, and refusal behaviour differs significantly across security domains ($$p<0.01$$). All estimates carry a signed, asymmetric classifier bias that we characterise rather than assume away. SafeCalib reframes refusal evaluation from whether a model refused to how far its refusals separate harmful from legitimate use.
Authors
- Fahad Hafeez (ORCID: https://orcid.org/0009-0003-7903-7382)
Institutions
- Newcastle University (GB)
Publication Details
- Journal
- AI and Ethics
- Published
- 2026-11-24
- DOI
- https://doi.org/10.1007/s43681-026-01561-x
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00