evaluate 0 0 0

Paul/XSTest

published by @Paul

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
30K
Last 30 days
3.7K
Likes
5
Size
42 KB
Created on HF
2025-02-11
Age
1 years ago

Description

XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models

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… See the full description on the dataset page: https://huggingface.co/datasets/Paul/XSTest.

Tags

task_categories:text-generationlanguage:enlicense:cc-by-4.0size_categories:n<1Kformat:csvmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:us

README current version from Hugging Face


license: cc-by-4.0
task_categories:

  • text-generation
    language:
  • en
    pretty_name: XSTest
    size_categories:
  • 1K<n<10K

XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models

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.

Dataset Structure

The dataset contains:

  • 250 safe prompts across 10 categories:
    • Homonyms
    • Figurative Language
    • Safe Targets
    • Safe Contexts
    • Definitions
    • Real Discrimination, Nonsense Group
    • Nonsense Discrimination, Real Group
    • Historical Events
    • Privacy (Public)
    • Privacy (Fictional)
  • 200 unsafe prompts as direct contrasts to the safe prompts

Each prompt is a single English sentence in question format.

Data Source

Hand-crafted by the paper authors with assistance from online dictionaries and GPT-4 for generating relevant examples of homonyms and figurative language.

Limitations

The test suite is limited to:

  • English language only
  • Single-turn conversations
  • Simple question formats
  • Specific prompt types selected by authors

Considerations for Use

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.

Additional Information

README history 4 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2025-02-12Update README.mdf600c991.9 KB
    Loading...
  2. 2025-02-12Update README.mdc99e229124 B
    Loading...
  3. 2025-02-12Upload xstest_prompts.csv3f8937e30 B
    Loading...
  4. 2025-02-11initial commita19c35530 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2025-02-13[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
cc-by-4.0

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("Paul/XSTest")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Paul/XSTest", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/Paul/XSTest
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration