misc 0 0 0

ToxicityPrompts/PolyGuardPrompts

published by @ToxicityPrompts

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
6.1K
Last 30 days
829
Likes
6
Size
50.4 MB
Created on HF
2025-02-18
Age
1 years ago

Description

PolyGuard: A Multilingual Safety Moderation Tool for 17 Languages

Abstract: Truly multilingual safety moderation efforts for Large Language Models (LLMs) have been hindered by a narrow focus on a small set of languages (e.g., English, Chinese) as well as a limited scope of safety definition, resulting in significant gaps in moderation capabilities. To bridge these gaps, we release PolyGuard, a new state-of-the-art multilingual safety model for safeguarding LLM generations, and… See the full description on the dataset page: https://huggingface.co/datasets/ToxicityPrompts/PolyGuardPrompts.

Tags

language:arlanguage:zhlanguage:cslanguage:nllanguage:enlanguage:frlanguage:delanguage:hilanguage:thlanguage:itlanguage:jalanguage:kolanguage:pllanguage:ptlanguage:rulanguage:eslanguage:svlicense:cc-by-4.0size_categories:10K<n<100Kformat:parquetmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2504.04377region:ussafetymultilingual

README current version from Hugging Face


dataset_info:
features:

  • name: prompt
    dtype: string
  • name: response
    dtype: string
  • name: adversarial
    dtype: bool
  • name: prompt_harm_label
    dtype: string
  • name: response_refusal_agreement
    dtype: float64
  • name: response_refusal_label
    dtype: string
  • name: response_harm_label
    dtype: string
  • name: subcategory
    dtype: string
  • name: prompt_harm_agreement
    dtype: float64
  • name: response_harm_agreement
    dtype: float64
  • name: id
    dtype: int64
  • name: language
    dtype: string
  • name: prompt_label
    dtype: string
  • name: prompt_categories
    dtype: string
  • name: response_label
    dtype: string
  • name: response_categories
    dtype: string
    splits:
  • name: test
    num_bytes: 93846872
    num_examples: 29325
    download_size: 52852473
    dataset_size: 93846872
    configs:
  • config_name: default
    data_files:
    • split: test
      path: data/test-*
      task_categories:
  • text2text-generation
    language:
  • ar
  • zh
  • cs
  • nl
  • en
  • fr
  • de
  • hi
  • th
  • it
  • ja
  • ko
  • pl
  • pt
  • ru
  • es
  • sv
    tags:
  • safety
  • multilingual
    size_categories:
  • 10K<n<100K
    license: cc-by-4.0

PolyGuard: A Multilingual Safety Moderation Tool for 17 Languages

Abstract: Truly multilingual safety moderation efforts for Large Language Models (LLMs) have been hindered by a narrow focus on a small set of languages (e.g., English, Chinese) as well as a limited scope of safety definition, resulting in significant gaps in moderation capabilities. To bridge these gaps, we release PolyGuard, a new state-of-the-art multilingual safety model for safeguarding LLM generations, and the corresponding training and evaluation datasets. PolyGuard is trained on PolyGuardMix, the largest multilingual safety training corpus to date containing 1.91M samples across 17 languages (e.g., Chinese, Czech, English, Hindi). We also introduce PolyGuardPrompts, a high quality multilingual benchmark with 29K samples for the evaluation of safety guardrails. Created by combining naturally occurring multilingual human-LLM interactions and human-verified machine translations of an English-only safety dataset (WildGuardMix; Han et al., 2024), our datasets contain prompt-output pairs with labels of prompt harmfulness, response harmfulness, and response refusal. Through extensive evaluations across multiple safety and toxicity benchmarks, we demonstrate that PolyGuard outperforms existing state-of-the-art open-weight and commercial safety classifiers by 5.5%. Our contributions advance efforts toward safer multilingual LLMs for all global users.

Languages

The data supports 17 languages and are reported in the table below.

language code language name
ar Arabic
cs Czech
de German
en English
es Spanish
hi Hindi
it Italian
ja Japanese
ko Korean
nl Dutch
pl Polish
pt Portuguese
ru Russian
sv Swedish
zh Chinese
th Thai

Data Fields

  • prompt: user prompt input by user
  • response: model's response to the user prompt
  • prompt_harm_label: if the prompt is harmful
  • response_refusal_label: if the model refuses the user's request
  • response_harm_label: if the response is harmful
  • prompt_safety_categories: list of violated safety categories by harmful prompt
  • response_safety_categories: list of violated safety categories by harmful response
  • metadata: language and source of data sample

Citation

@misc{kumar2025polyguardmultilingualsafetymoderation,
      title={PolyGuard: A Multilingual Safety Moderation Tool for 17 Languages}, 
      author={Priyanshu Kumar and Devansh Jain and Akhila Yerukola and Liwei Jiang and Himanshu Beniwal and Thomas Hartvigsen and Maarten Sap},
      year={2025},
      eprint={2504.04377},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2504.04377}, 
}

README history 5 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-06-23Update README.mdc5b466a4.3 KB
    Loading...
  2. 2025-04-18Update README.md03e2aab4.3 KB
    Loading...
  3. 2025-04-18Update README.mdc9e20e73.9 KB
    Loading...
  4. 2025-02-18Upload datasetde2d7fa942 B
    Loading...
  5. 2025-02-18initial commit89749440 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-04-09[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · misc

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