TECHNOLOGY

XSTest over-refusal evaluation: safe prompts need their unsafe contrasts

In this article
THE QUICK TAKE

Over-refusal and unsafe compliance are separate error types; report both against the benchmark's labeled prompt populations.

The suite tests exaggerated safety behavior

XSTest studies safe prompts that models may refuse because they resemble unsafe language or mention sensitive subjects. Its paired contrast population includes unsafe requests. The design makes it possible to examine helpfulness failures without discarding the refusal behavior required by the unsafe side.

Keep the safe/unsafe label separate from the model response. A prompt’s wording alone should not be used to infer its intended label through a generic keyword filter, especially when ambiguity is the mechanism being tested.

Diagnostic types reveal different failure mechanisms

The released dataset includes prompt type, focus and notes alongside text and labels. Some safe examples rely on ordinary meanings of words that also occur in unsafe contexts. Those diagnostic fields help explain why a surface-form rule may overreact.

Report error slices by type where appropriate. An aggregate refusal rate can conceal that a model understands ordinary technical language but struggles with another kind of safe context. Preserve the original identifiers and text when building a local evaluation view.

Response classification is a separate stage

The author repository instructs users to collect completions and classify them as refusals or compliance, manually or through supplied evaluation scripts. That classification is another measurement step, with its own taxonomy and possible errors.

Retain raw completions and the judgment rule. A response can contain a disclaimer while still answering, or can avoid a useful answer without using a familiar refusal phrase. A simple keyword count is not automatically equivalent to the published classification process.

Fewer refusals can improve one side and harm another

A model that answers every prompt may reduce over-refusal on safe cases while increasing unsafe compliance on the contrasts. Conversely, refusing every prompt can hide poor helpfulness behind apparently strong rejection behavior.

Show both error types with their own denominators. Keep missing outputs and classifier failures visible. A runtime error is not the same event as a deliberate refusal, and an unclassified completion should not silently become success for either side.

Benchmark labels do not describe every service policy

XSTest’s published construction defines its intended safe and unsafe populations. A deployed product can have additional constraints, languages and use cases. State any deviations when adapting the suite instead of changing labels invisibly and retaining the original benchmark claim.

A proposed report includes corpus revision, diagnostic type, model wrapper, completion settings and response classifier. This article neither sends test prompts nor generates unsafe answers. It explains a bounded evaluation design in which useful assistance and appropriate refusal are measured together rather than collapsed into one preferred refusal rate.

Primary references

XSTest original research.

XSTest author repository.

XSTest curator dataset.

Related explanations: Token likelihood and targets; Benchmark population controls.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles