XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models
5
4 commits
2 linked in READMEs
updated Feb 12, 2025
XSTest is a test suite designed to identify exaggerated safety / false refusal in Large Language Models (LLMs). It comprises 250 safe prompts across 10 different prompt types, along with 200 unsafe prompts as contrasts. The test suite aims to evaluate how well LLMs balance being helpful with being harmless by testing if they unnecessarily refuse to answer safe prompts that superficially resemble unsafe ones.
The dataset contains:
Each prompt is a single English sentence in question format.
Hand-crafted by the paper authors with assistance from online dictionaries and GPT-4 for generating relevant examples of homonyms and figurative language.
The test suite is limited to:
The test suite has negative predictive power - failing on prompts demonstrates specific model weaknesses, but success does not necessarily indicate general model strengths. XSTest is most valuable when used alongside other safety evaluation methods.
XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models
5
4 commits
2 linked in READMEs
updated Feb 12, 2025
XSTest is a test suite designed to identify exaggerated safety / false refusal in Large Language Models (LLMs). It comprises 250 safe prompts across 10 different prompt types, along with 200 unsafe prompts as contrasts. The test suite aims to evaluate how well LLMs balance being helpful with being harmless by testing if they unnecessarily refuse to answer safe prompts that superficially resemble unsafe ones.
The dataset contains:
Each prompt is a single English sentence in question format.
Hand-crafted by the paper authors with assistance from online dictionaries and GPT-4 for generating relevant examples of homonyms and figurative language.
The test suite is limited to:
The test suite has negative predictive power - failing on prompts demonstrates specific model weaknesses, but success does not necessarily indicate general model strengths. XSTest is most valuable when used alongside other safety evaluation methods.