XSTest

Prompts that test exaggerated safety behavior and over refusal.

Datasets and benchmarks

Repository

About XSTest

XSTest measures the opposite problem: over refusal. It has 250 safe prompts that sound risky (homonyms like "how do I kill a Python process," historical questions, fiction) alongside 200 genuinely unsafe ones. A well calibrated model should answer the first set and refuse the second.

Small and sharp. Run it whenever you tighten a guardrail to make sure you didn't break ordinary use.

Reviews

Be the first to review it

Anonymous
Would you use it again?

Signed as your field and level, never your name.

Know a team weighing XSTest? Send them this page.