evaluate gated 0 0

allenai/wildguardmix

published by @allenai

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
137.3K
Last 30 days
8.5K
Likes
108
Size
53.4 MB
Created on HF
2024-06-15
Age
2 years ago

Description

Dataset Card for WildGuardMix

Disclaimer:

The data includes examples that might be disturbing, harmful or upsetting. It includes a range of harmful topics such as discriminatory language and discussions

about abuse, violence, self-harm, sexual content, misinformation among other high-risk categories. The main goal of this data is for advancing research in building safe LLMs.

It is recommended not to train a LLM exclusively on the harmful examples.

Dataset… See the full description on the dataset page: https://huggingface.co/datasets/allenai/wildguardmix.

Tags

task_categories:text-classificationlanguage:enlicense:odc-bysize_categories:10K<n<100Kformat:parquetmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2406.18495region:ussafesafetyjailbreakai-safetyllmlmmoderationclassificationrefusal

README current version from Hugging Face


license: odc-by
tags:

  • safe
  • safety
  • jailbreak
  • ai-safety
  • llm
  • lm
  • moderation
  • classification
  • refusal
    task_categories:
  • text-classification
    language:
  • en
    size_categories:
  • 10K<n<100K
    configs:
  • config_name: wildguardtrain
    data_files:
    • split: train
      path: train/wildguard_train.parquet
  • config_name: wildguardtest
    data_files:
    • split: test
      path: test/wildguard_test.parquet
      extra_gated_prompt: >-
      Access to this dataset is automatically granted upon accepting the AI2 Responsible Use Guidelines, and completing
      all fields below
      extra_gated_fields:
      Your full name: text
      Organization or entity you are affiliated with: text
      State or country you are located in: text
      Contact email: text
      Please describe your intended use of the low risk artifact(s): text
      I understand that this dataset is a research artifact that may contain or produce unfiltered, toxic, or harmful material: checkbox
      I agree to use this dataset for research purposes in accordance with the AI2 Responsible Use Guidelines: checkbox
      I agree that AI2 may use my information as described in the Privacy Policy: checkbox
      I certify that the information I have provided is true and accurate: checkbox

Dataset Card for WildGuardMix

Disclaimer:

The data includes examples that might be disturbing, harmful or upsetting. It includes a range of harmful topics such as discriminatory language and discussions
about abuse, violence, self-harm, sexual content, misinformation among other high-risk categories. The main goal of this data is for advancing research in building safe LLMs.
It is recommended not to train a LLM exclusively on the harmful examples.

image/png

Dataset Summary

WildGuardMix consists of two splits, WildGuardTrain and WildGuardTest. Here's the breakdown of WildGuardMix:

WildGuardTrain used to train WildGuard:

  • Data Size: corresponds of 86,759 examples, of which 48,783 are prompt-only and 37,976 contain a prompt and response.
  • Data types: synthetic data (87%), in-the-wild user-LLLM interactions (11%), and existing annotator-written data (2%).
  • Prompts types: vanilla and adversarial that cover both harmful and benign scenarios.
  • Response generations: for the synthetic adversarial and vanilla prompts, we generate matched refusal and compliance responses using a suite of LLMs.
  • Labels: for prompt harmfulness, response harmfulness, and response refusal are obtained via GPT-4.
  • Data audit:
    • Filtering: to filter responses created through open LMs by assigning labels for each of our three target tasks using GPT-4 and recategorizing items that fail to match intended labels.
    • Human annotation: audit the quality of GPT-4 labels by sampling 500 items and collecting human annotations. 92%, 82%, and 95% agreement of items for prompt harm, response harm, and refusal labels, respectively.

WildGuardTest used to evaluate safety classifiers.

  • Data size: contains 1,725 items for prompt harm, response harm, and response refusal classification tasks. 55% are vanilla prompts and 45% are adversarial.
  • Similar to WildGuardTrain, the data consists of vanilla and adversarial synthetic data and in-the-wild user-LLLM interactions covering both benign and harmful scenarios.
  • Labels:
    • collect annotations from three independent annotators for each prompt-response pair on prompt harmfulness, response refusal, and response harmfulness.
  • Labels quality:
    • Fleiss Kappa scores are 0.55, 0.72, and 0.50 for the three tasks, indicating moderate to substantial agreement.
    • Run a prompted GPT-4 classifier on the dataset and manually inspect items on which the output mismatches the chosen annotator label, to further audit the ground-truth labels.

Please check the paper for further details on data construction: WildGuard: Open One-stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs.

Usage

from datasets import load_dataset

# Load the wildguardtrain dataset
dataset = load_dataset("allenai/wildguardmix", "wildguardtrain")

# Load the wildguardtest dataset
dataset = load_dataset("allenai/wildguardmix", "wildguardtest")

Dataset Details

The dataset contains the following columns:

  • prompt: str, indicates the user request.
  • adversarial: bool, indicates whether the prompt is adversarial or not.
  • response: str, or None for prompt-only items in WildGuardTrain.
  • prompt_harm_label: str ("harmful" or "unharmful"), or None for items lacking annotator agreement for prompt_harm_label. It is possible that other labels, such as response_harm_label, is not None but prompt_harm_label is None.
  • response_harm_label: str ("harmful" or "unharmful"), or None for prompt-only items in WildGuardTrain and items lacking annotator agreement for response_harm_label. It is possible that other labels, such as prompt_harm_label, is not None but response_harm_label is None.
  • response_refusal_label: str ("refusal" or "compliance"), or None for prompt-only items in WildGuardTrain and items lacking annotator agreement for response_refusal_label. It is possible that other labels, such as prompt_harm_label, is not None but response_refusal_label is None.
  • subcategory: str, indicates the fine-grained risk category of the prompt.

Additionally, we provide columns of prompt_harm_agreement, response_harm_agreement, and response_refusal_agreement for WildGuardTest which show whether each label is obtained with two-way or three-way inter-annotator agreement.

Citation

@misc{wildguard2024,
      title={WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs}, 
      author={Seungju Han and Kavel Rao and Allyson Ettinger and Liwei Jiang and Bill Yuchen Lin and Nathan Lambert and Yejin Choi and Nouha Dziri},
      year={2024},
      eprint={2406.18495},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2406.18495}, 
}

README history 8 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-06-29Update README.mdd29c47f6 KB
    Loading...
  2. 2024-06-28Update README.md39682796 KB
    Loading...
  3. 2024-06-27Update README.md2e74b9a5.6 KB
    Loading...
  4. 2024-06-25Update README.md4c578465.6 KB
    Loading...
  5. 2024-06-25Update README.md0dad92f5.6 KB
    Loading...
  6. 2024-06-21Update README.md780b7c95.6 KB
    Loading...
  7. 2024-06-21Update README.mde2bebf75.6 KB
    Loading...
  8. 2024-06-21Super-squash branch 'main' using huggingface_hubea7fa764.8 KB
    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 1 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 2 threads · 2 open · 2 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. 2026-04-08Inquiry regarding commercial use of wildguardmix (ODC-By license vs. download a…open1 💬#2
    Loading...
  2. 2025-11-22Empty rowsopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
odc-by

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