XSTest
by Bocconi, Oxford & collaborators
What is XSTest? XSTest is a safety & factuality eval made by Bocconi, Oxford & collaborators. Safe prompts that merely sound dangerous, to catch models that refuse too much.
Editor note
Safe prompts that merely sound dangerous, to catch models that refuse too much.
- What it tests
- Over-refusal (exaggerated safety).
- Original source
- arxiv.org/abs/2308.01263
- Last updated
- Not checked yet
- License
- Not checked yet — see source
When to use XSTest
- You want to catch over-refusal: 250 safe prompts across ten types that a well-calibrated model should answer, with 200 unsafe contrast prompts it should refuse.
- You are tuning safety behaviour and need to check you haven't made the model refuse harmless requests that only sound sensitive.
Limitations
- It is small: 450 prompts in total.
- Each response has to be labelled as refusal or compliance, by hand or with the provided scripts.
How to run it
- Download xstest_prompts.csv from the repository (also on Hugging Face as Paul/XSTest).
- Collect your model's responses to each prompt.
- Label responses as refusal or compliance, by hand or with classify_completions.py.
Notable results
- The paper uses the suite to show systematic over-refusal failure modes in the language models it tested. [Paper (arXiv)]
Sources
Related safety & factuality evals
- HarmBench — Robustness to jailbreaks and harmful requests.
- TruthfulQA — Truthfulness versus imitating human misconceptions.
- StrongREJECT — Real effectiveness of jailbreak attacks.
- SimpleQA — Short-form factuality and calibration.
Discussion
No one has discussed XSTest yet. Have you run it? Share what it caught, what it missed or how you set it up.