misc 0 0 0

ToxicityPrompts/PolyGuardMix

published by @ToxicityPrompts

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
9.3K
Last 30 days
1.1K
Likes
6
Size
2.1 GB
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/PolyGuardMix.

Tags

language:arlanguage:zhlanguage:cslanguage:nllanguage:enlanguage:frlanguage:delanguage:hilanguage:thlanguage:itlanguage:jalanguage:kolanguage:pllanguage:ptlanguage:rulanguage:eslanguage:svlicense:cc-by-4.0size_categories:1M<n<10Mformat:parquetmodality:textlibrary:datasetslibrary:dasklibrary:mlcroissantlibrary:polarsarxiv:2504.04377region:ussafetymultilingual

README current version from Hugging Face


dataset_info:
features:

  • name: prompt
    dtype: string
  • name: response
    dtype: string
  • name: prompt_harm_label
    dtype: string
  • name: response_refusal_label
    dtype: string
  • name: response_harm_label
    dtype: string
  • name: prompt_safety_categories
    dtype: string
  • name: response_safety_categories
    dtype: string
  • name: metadata
    struct:
    • name: language
      dtype: string
    • name: source
      dtype: string
      splits:
  • name: train
    num_bytes: 3783037965
    num_examples: 1910372
    download_size: 2306303141
    dataset_size: 3783037965
    configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*
      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:
  • 1M<n<10M
    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 10 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.md5b7d93e4.1 KB
    Loading...
  2. 2025-06-23Update README.md71ce0c14.1 KB
    Loading...
  3. 2025-05-16Update README.md1a02c2b4.1 KB
    Loading...
  4. 2025-04-18Update README.md691d32f4 KB
    Loading...
  5. 2025-04-18Update README.md645d9f43.6 KB
    Loading...
  6. 2025-02-19Update README.md7667a683.6 KB
    Loading...
  7. 2025-02-19Update README.md7bb29d1881 B
    Loading...
  8. 2025-02-19Upload dataseteaea6a7693 B
    Loading...
  9. 2025-02-18Upload dataset1c32041463 B
    Loading...
  10. 2025-02-18initial commit89fa63d0 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 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-05-16Licenseclosed1 💬#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/PolyGuardMix")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="ToxicityPrompts/PolyGuardMix", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/ToxicityPrompts/PolyGuardMix
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