evaluate gated 0 0

walledai/XSTest

published by @walledai

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
108.3K
Last 30 days
7.6K
Likes
30
Size
22 KB
Created on HF
2024-07-03
Age
2 years ago

Description

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

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

Data: xstest_prompts_v2

About

Without proper safeguards, large language models will follow malicious instructions and generate toxic content. This motivates safety efforts such as red-teaming and large-scale feedback learning, which aim to make models both helpful and… See the full description on the dataset page: https://huggingface.co/datasets/walledai/XSTest.

Tags

language:enlicense:cc-by-4.0size_categories:n<1Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2308.01263region:us

README current version from Hugging Face


language:

  • en
    license: cc-by-4.0
    task_categories:
  • text2text-generation
    pretty_name: exaggerated safety
    dataset_info:
    features:
    • name: prompt
      dtype: string
    • name: focus
      dtype: string
    • name: type
      dtype: string
    • name: note
      dtype: string
    • name: label
      dtype: string
      splits:
    • name: test
      num_bytes: 43841
      num_examples: 450
      download_size: 16964
      dataset_size: 43841
      configs:
  • config_name: default
    data_files:
    • split: test
      path: data/train-*

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

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

Data: xstest_prompts_v2

About

Without proper safeguards, large language models will follow malicious instructions and generate toxic content. This motivates safety efforts such as red-teaming and large-scale feedback learning, which aim to make models both helpful and harmless. However, there is a tension between these two objectives, since harmlessness requires models to refuse to comply with unsafe prompts, and thus not be helpful.

Recent anecdotal evidence suggests that some models may have struck a poor balance, so that even clearly safe prompts are refused if they use similar language to unsafe prompts or mention sensitive topics. With XSTest, authors introduce a new test suite to identify such eXaggerated Safety behaviours in a structured and systematic way.

XSTest comprises:

  • 250 safe prompts across ten prompt types that well-calibrated models should not refuse to comply with.
  • 200 unsafe prompts as contrasts that, for most LLM applications, should be refused.

The test suite highlights systematic failure modes in state-of-the-art language models as well as more general challenges in building safer language models.

XSTest is joint work between Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, and Dirk Hovy.

For more details on XSTest, please refer to arxiv preprint.

License

  • Test Prompts: Creative Commons Attribution 4.0 International license.
  • Model Completions: Subject to the original licenses specified by Meta, Mistral, and OpenAI.

Citation

If you use XSTest in your research, please cite the paper:

@article{rottger2023xstest,
  title={Xstest: A test suite for identifying exaggerated safety behaviours in large language models},
  author={R{\"o}ttger, Paul and Kirk, Hannah Rose and Vidgen, Bertie and Attanasio, Giuseppe and Bianchi, Federico and Hovy, Dirk},
  journal={arXiv preprint arXiv:2308.01263},
  year={2023}
}

README history 6 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. 2024-07-04Update README.mdf1d71312.7 KB
    Loading...
  2. 2024-07-04Update README.md3c3794c2.7 KB
    Loading...
  3. 2024-07-03Upload dataset0c871102.7 KB
    Loading...
  4. 2024-07-03Update README.md6fd1b502.7 KB
    Loading...
  5. 2024-07-03Upload dataset0d06dc1369 B
    Loading...
  6. 2024-07-03initial commitde3df9c0 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.

Used in recipes 2 of 18 curated recipes reference this dataset

Concrete workflows from the community craft-knowledge survey that call for this corpus. Each links to the full recipe with parameters, tools, expected output, and known failure modes.

Community discussions 1 thread · 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. 2024-07-05[bot] Conversion to Parquetclosed1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
cc-by-4.0

Repository

Download the dataset

Gated dataset. You need to accept the author's terms on Hugging Face before downloading. Visit the repository, click Agree and access repository, then log in locally with huggingface-cli login and use one of the snippets below.

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("walledai/XSTest")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="walledai/XSTest", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/walledai/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