MSafeTemp: Template-based Multilingual Safety Data
Content warning: this dataset contains harmful prompts, including jailbreak-wrapped prompts, in 60 languages.
MSafeTemp is the dataset of "How I Aligned Your Model: Scaling Up Multilingual Safety Training with Templates" by Max Neuwinger, Hanna Yukhymenko and Imanol Schlag.
English harmful seed prompts are turned into safe templates with typed slots, the templates are translated, and the slots are filled again in every language. Each template yields three kinds of prompts:
- TR (
category = harmful): translated harmful variants, filled with harmful entities. - PH (
category = posthoc): culturally localized harmful variants, filled with local groups, institutions, events and concepts from a per-language cultural card. - OR (
category = benign): benign minimal pairs that keep the wording but use a safe fill, for measuring over-refusal.
Every generation step is checked by an LLM judge, and only judge-approved prompts are kept. The pipeline, training and evaluation code are in the GitHub repository.
Configurations
| Config | Seeds | Split | Rows | Languages | Use |
|---|---|---|---|---|---|
wildguard |
WildGuardMix, 2,000 source prompts | train |
1,551,799 | 44 | safety training |
wildguard |
WildGuardMix, 500 source prompts | test |
368,820 | 44 | evaluation |
harmbench |
HarmBench, 200 behaviors | test |
251,886 | 60 | evaluation |
Train and test are split by source seed, so no descendant of a test seed appears in train.
from datasets import load_dataset
train = load_dataset("swiss-ai/MSafeTemp", "wildguard", split="train")
hb = load_dataset("swiss-ai/MSafeTemp", "harmbench", split="test")
Fields
| Field | Description |
|---|---|
id, group_id |
row id; rows derived from the same seed and language share a group_id |
language |
language name, e.g. german, swiss_german, yoruba |
text |
the prompt |
template |
the template with typed slots the prompt was filled from |
category |
harmful (TR), posthoc (PH) or benign (OR) |
class_type |
harmful or benign |
branch |
main (main template), paraphrase (paraphrased template), contextual (localized rephrasing around a local entity), pyrit_wrapped (jailbreak-wrapped prompt) |
paraphrase_index, variant_index |
template paraphrase and fill variant |
benign_class |
type of benign pair, e.g. direct, bounded |
recipe |
slot fills of localized (PH) variants, as JSON |
prefixes, suffixes |
attack affixes added to the prompt |
source |
seed dataset (wildguard or harmbench) |
original_prompt, original_id, original_index |
WildGuardMix seed (wildguard only) |
wg_subcategory, wg_harm_label, wg_adversarial |
WildGuardMix labels of the seed (wildguard only) |
ls_primary, ls_high_level, ls_labels, ls_non_consensual_sexual |
LinguaSafe taxonomy labels of the seed (wildguard only) |
behavior, hb_id, hb_category |
HarmBench behavior of the seed (harmbench only) |
Intended use
MSafeTemp is released to train and evaluate safer multilingual models: refusal training on harmful prompts, over-refusal control on benign pairs, and evaluation of attack success across languages and cultures. Do not use it to build systems that produce harmful content.
License
Released under the Apache 2.0 license. The seed prompts come from WildGuardMix and HarmBench; please also follow their terms.
Citation
@misc{neuwinger2026ialignedmodelscaling,
title={How I Aligned Your Model: Scaling Up Multilingual Safety Training with Templates},
author={Max Neuwinger and Hanna Yukhymenko and Imanol Schlag},
year={2026},
eprint={2610.40516},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2610.40516},
}