Explainer
Red teaming and safety evaluation
Red teaming looks for failures on purpose; a safety evaluation then counts harmful compliance and over-refusal together.
Red teaming, also called adversarial testing, is a deliberate search for ways a system fails, “to probe an AI system to find flaws and vulnerabilities” in NIST's words (NIST AI 600-1). Common attacks include a jailbreak, a request worded to get past a model's limits, and prompt injection, instructions hidden in material the system reads (NIST AI 100-2). Keep each failure you find as a test case.
A safety evaluation counts two failures. Illustration: a library assistant must not reveal another member's loans, yet must tell members their own due dates.
- Harmful compliance. It does what the rules forbid, such as listing a neighbour's loans.
- Over-refusal. It refuses a safe request that only looks risky, such as a member asking for their own due dates.
A system that refuses everything aces the first count and fails the second, so report both, as Anthropic's safety-evaluation guidance advises.
A fixed list of attacks ages, because attackers adapt. Researchers bypassed 12 published defences, most of which had “originally reported near-zero attack success rates”, reaching an attack success rate, the share of attempts that get through, above 90% against most (Nasr and colleagues).
A guardrail is a check that blocks a request or reply in the moment, such as an input or output filter like Llama Guard. An evaluation measures the whole system afterwards, guardrail included. Guardrails need evaluating too: wrong blocks, misses, cost and delay.
Going deeper
Repeating each attack 25 times raised NIST's average attack success rate “from 57% to 80%” (NIST's agent-hijacking post). In an automated test, Anthropic's classifiers cut jailbreak success from 86% to 4.4%, while refusals on real traffic rose 0.38 percentage points and compute 23.7% (Anthropic, the paper). Refusal is not always the safe answer: for self-harm conversations, Anthropic calls it “often the wrong construct”.
In the long read: Keep testing as the system changes. Then read Benchmark contamination and saturation. Revisit Evaluation after launch for guardrails on a live system.