Skip to content

An Account of Guardrail Validation via Conformal Prediction: What Works, What Does Not

Sherwin Varghese, Alessio Lomuscio

cs.CR

Abstract

A guardrail classifier can be certified against a threat model measured from an attacker one can run, using a split-conformal radius, and scored by certified harmful coverage (CHC): of the harmful prompts the guard already fires on, the fraction it also certifies, at a fixed 5%5\% benign false-positive rate. On a public toxicity guard this reaches 0.3740.374, and we ask what the missing 0.6260.626 consists of. With an oracle difficulty estimate inside the radius, the certified set is exactly the set of prompts no sampled edit evades, so every fired prompt is certified, lost to the attacker, or lost to a loose difficulty estimate; a few certified prompts (2.4%2.4\% at most) are evaded anyway, which is the conformal error budget. On two BERT-family toxicity guards the loose share is 1.41.4 to 3.43.4 times the attacker's. Measuring the difficulty with 88 of the attacker's 3232 sampled edits raises CHC from 0.3720.372 to 0.4550.455 on the same 2424 remaining edits (paired difference 0.0830.083, 95%95\% CI [0.019,0.146][0.019, 0.146], positive on all four seeds), recovering about a fifth of the loose share. When the guard changes, a certificate shared by every head in a feature space is valid and vacuous, since its radius equals the worst head's score. A certificate for a neighbourhood of the current head survives a change of loss and keeps little after retraining on resampled data. Certifying the maximum of several guards needs no union bound; it matches the depth a deployer would pick and adds nothing across re-fits of one head.

Create a lesson

Metadata

Categories
cs.CR, cs.AI
Comments
Accepted at NeurIPS 2026 Workshop on Who Verifies the Agents? Toward Reliable Agent Development