How I Align Your Model: Template-Expanded Multilingual Safety TrainingHow I Aligned Your Model: Scaling Up Multilingual Safety Training with Templates
The authors propose a templated multilingual safety data pipeline and release MSafeTemp (44/60 languages), arguing that English evaluation misses safety gaps exposed by translation and localization variants.
- Safety alignment data is English-centric, and low-resource languages lack multilingual and culturally authentic safety training and evaluation data; the authors argue that English refusal rates cannot represent a model's safety in other languages and cultures.
- Abstract English harmful seed prompts into safety templates with typed slots, then after translation fill them respectively with generic harmful entities (TR), benign entities (OR minimal pairs), and local entities from each language's cultural cards (PH), with LLM reviewers from a different family than the generative model overseeing throughout, producing the MSafeTemp corpus for evaluation and SFT+DPO training.
- The authors report: Olmo-3.1-32B on HarmBench has English ASR 0.0% and translation arm 13.7%; localized variants can reach failures that translation variants cannot reach (Jaccard of behaviors broken by the two arms is only 0.40–0.45); MSafeTemp training lowers Apertus-8B-IT's HarmBench ASR from 10.3% to 1.4%, but SFT raises over-refusal, which DPO partially recovers.
- Limitations listed by the authors: conclusions rely on automatic LLM review; full ablation of reviewer models, larger-scale human evaluation, re-annotation of localized samples, RL training methods, and extension to multi-turn attacks are all future work; the human study has only 15 submissions, 11 languages, and a benign-label acceptance rate of only 65.3%.
- Evaluated models
- Qwen3.5-27BGPT-OSS-20BGemma-4-31B-ITOlmo-3.1-32B-InstructLlama-3.3-70B-InstructApertus-8B-Instruct-2509Apertus-70B-Instruct-2509Apertus-v1.5-8B-ITOlmo-3-7BLlama-3.1-8B
- Benchmarks
- MSafeTemp(HarmBench track、WildGuardMix track)HarmBenchWildGuardMixOR-BenchXSTestJailbreakBenchFORTRESSCyberSecEvalMultiJailAyaRTPolyToxMMLUGSM8KIFEvalBBH
- Metrics
- ASRover-refusal (OR)MMLUGSM8K
The researchers propose a scalable template-based data augmentation pipeline for generating large-scale multilingual refusal and benign corpora, and release MSafeTemp, a validated safety alignment and evaluation corpus covering 60 languages. The pipeline extracts safety templates from harmful prompts, translates them, and fills slots with culturally authentic entities, covering both harmful and benign content. The authors show that evaluating only in English misjudges multilingual safety: on several models, attacks that fail in English succeed after translation, and culturally localized variants expose further failures that translation alone cannot reveal. The authors also confirm that augmenting safety training data with templates improves the diversity and quality of alignment, leading to improved safety performance beyond English.
Paper analysis
What problem does this paper attempt to solve?
Addressing the scarcity of multilingual safety data: the authors argue that English alignment and evaluation cannot cover low-resource languages and culture-specific harms.
Core problem: safety alignment and evaluation are English-centric, multilingual and culturally authentic harmful/benign data is lacking, and users of low-resource languages are the least protected.
- Problem scenario: the authors state that a request that is reliably refused in English, after being translated and adapted to the target culture (local extremist groups, historical events, specific community slurs), may be complied with by the same model even though the harmful intent is unchanged.
- Shortcomings of existing data (per the paper): (1) recruiting native speakers for sensitive annotation is expensive and slow; (2) human red teaming is high quality but cannot scale to cover low-resource languages; (3) machine translation does not produce locally specific context; (4) scaling generation or translation of harmful content with LLMs is blocked by the generative models' own refusals.
- Core observation: the authors argue that safety should not be viewed only as a general capability axis, but as a combination of three axes: model, language, and culture; cross-lingual transfer and English alignment diminish on low-resource and culturally specific harms, because the latter depend on breadth of knowledge rather than knowledge transfer.
- What the paper proposes: a templated augmentation pipeline—abstracting harmful prompts into safety templates with typed slots, then translating and filling them—and on that basis releases the MSafeTemp corpus (WildGuardMix training track in 44 languages, HarmBench evaluation track in 60 languages), answering three research questions: RQ1 whether the safety capabilities of existing open-source models generalize beyond English; RQ2 whether the template pipeline can scale to generate culturally grounded variants with little human involvement; RQ3 whether training on this data can narrow the multilingual safety gap without raising over-refusal.
- Positioning: this is not an attack or defense paper but a data/benchmark work: the victim systems are the open-source models being evaluated, the "attacks" are the pipeline-generated translation (TR), localization (PH), and jailbreak-wrapped (JB) variants, and success is measured by unsafe compliance as judged by GPT-OSS-Safeguard-120B.
What related research exists?
Related work is divided into four groups: multilingual safety and red teaming, over-refusal and helpfulness, synthetic alignment data and model review, and culturally adapted datasets.
Multilingual safety and red teaming
- Yong et al. (2023), Deng et al. (2024), Shen et al. (2024), Wang et al. (2024)—find that safety learned mainly from English does not transfer reliably: requests that are refused may yield harmful answers after translation, especially in low-resource languages.
- HarmBench (Mazeika et al., 2024) and WildGuardMix (Han et al., 2024)—make red teaming reproducible; Aya (Aakanksha et al., 2024) expands human language coverage. This paper directly uses HarmBench's 200 behaviors and WildGuardMix's 2,500 harmful prompts as seeds.
- IndoSafety (Azmi et al., 2025), SEA-SafeguardBench (Tasawong et al., 2026), UbuntuGuard (Abdullahi et al., 2026)—locally grounded benchmarks for Indonesian, Southeast Asian, and African languages; the survey by Yong et al. (2025) confirms the language gap. The paper notes that these works focus on specific regions or safety categories, whereas this paper instead scales a controlled cultural layer across 60 languages.
Safety and helpfulness (over-refusal)
- XSTest (Röttger et al., 2024) and OR-Bench (Cui et al., 2024)—measure over-refusal; RealToxicityPrompts, ToxiGen, PolygloToxicityPrompts (Gehman et al., 2020; Hartvigsen et al., 2022; Jain et al., 2024)—measure multilingual toxicity generation.
- LinguaSafe (Ning et al., 2025)—evaluates multilingual oversensitivity, and this paper borrows its harm taxonomy; MORBench (Pan et al., 2025)—selects borderline benign prompts but does not include low-resource languages. The paper notes that neither provides controlled harmful/benign variants derived from the same template, whereas this paper's paired control measures both outcomes on shared linguistic and cultural content.
Synthetic alignment data and model review
- Self-Instruct (Wang et al., 2023), LLM-as-a-judge (Zheng et al., 2023)—use LLMs to synthesize instructions and judge outputs; Llama Guard (Inan et al., 2023), RLHF (Ouyang et al., 2022), DPO (Rafailov et al., 2023), Constitutional AI (Bai et al., 2022)—safety classifiers and feedback alignment.
- PolyGuard (Kumar et al., 2025) and CultureGuard (Joshi et al., 2025)—scale multilingual moderation data, including cultural adaptation; RefusEU (Krasnodebska et al., 2026)—shows that English-only refusal alignment transfers unevenly. The paper states that it instead generates paired training and evaluation data and requires harmful intent to survive translation and localization; because model review may err systematically, this paper separates generation from review.
Baselines and comparison setup: training experiments compare against two public checkpoints on MultiJail (Deng et al., 2024)—MPO (Zhao et al., 2025) and RefusEU (Krasnodebska et al., 2026), both trained from Llama-3.1-8B-Instruct (Table 53); over-refusal comparisons use XSTest, JailbreakBench, FORTRESS, CyberSecEval (Table 52). Authors' positioning: this paper is the first data pipeline that, at the scale of 60 languages, simultaneously provides culturally grounded harmful variants and benign minimal pairs, with generation separated from review (this is the authors' own stated contribution positioning).
How does the paper address this problem?
Decompose harmful prompts into "harmless template + slot filling", generate along three arms TR/OR/PH, gate with two-stage LLM review, then use for evaluation and SFT+DPO.
Overall approach: extract the "harm-bearing words" from harmful prompts into typed slots, so that the template itself is harmless and can be translated and rewritten by safety models, then fill in generic harmful entities, benign entities, and local cultural entities separately in the target language. The method's artifacts are the MSafeTemp corpus and its generation pipeline (Figure 1, Figure 2).
Design requirements and seeds
- Four requirements: R1 harm fidelity (variants preserve the seed's harmful intent); R2 language correctness (translations are fluent and natural); R3 cultural authenticity (use local entities rather than only translating English entities); R4 over-refusal control (each harmful template is paired with a benign minimal pair).
- Two seed sources: 200 standard behaviors from HarmBench (removing the contextual and copyright categories, used only for held-out evaluation); 2,500 harmful prompts from WildGuardMix wildguardtrain, of which 2,000 and all their descendants are used for training and 500 for held-out testing, with splits by seed to guarantee no leakage.
- Models used: Gemma-4-31B-IT for generation; GPT-OSS-120B for pipeline review; GPT-OSS-Safeguard-120B for classification and response review; cultural cards generated by Gemma-4-31B-IT and verified by Gemini Flash 3.6. Generation and review do not use models from the same family.
Template extraction and translation
- Extraction: the model identifies the words or phrases that make the prompt harmful and replaces them with placeholders named by type/intent (e.g., illicit_substance); placeholder values are required to be short (1–3 words) and narrow, and prompts whose harm cannot be expressed this way are discarded at the review stage; failures are retried at most twice.
- First review: checks whether the template is self-consistent, the placeholders are clear, the harm is preserved, and the unmodified text is faithful to the seed.
- Translation: only the text around the placeholders is translated, and tag names remain in English; a second review checks semantic preservation, slot completeness, and target-language consistency; on failure only the flagged segments are patched, for at most three rounds. English skips translation but still goes through both reviews.
- Rewriting: each template generates two more reviewed paraphrases, so each seed × language has 3 templates.
Three augmentation branches
- TR (harmful variants): for the translated main template and the two paraphrases, 5 sets of fill-ins are proposed each, for at most 15 variants per type × language; a final review checks harmfulness, language, coherence, and preservation of the original framing.
- OR (benign minimal pairs): fill in benign entities, with sentence structure consistent with the harmful version but the intent being an ordinary request; split into DIRECT (can be fully answered safely; over-refusal is measured only here) and BOUNDED (the helpful answer must retain transferable harmful details; used only as training data).
- PH (cultural localization): generate cultural cards for each language (local groups, organizations, events, concepts, institutions, with 19–68 entities per language, median 37); the fit review first determines the slot role, and entities must match the slot type, be semantically coherent, have appropriate severity, and not reverse the victim/perpetrator roles; the generator may inflect and rewrite around the entity, and the result goes through the same review as TR.
Review and training
- Review design: each review issues boolean judgments against a set of independent criteria, aggregated by code into a pass gate; grammar is constrained at generation time rather than reviewed (early LLM grammar checks had many false positives and were removed). Sampling temperatures by stage: 0.2–0.9 for creative stages, 0 for review stages (Table 7).
- Training procedure: first SFT for one epoch (MSafeTemp refusals/benign responses + Dolci general instruction data, with loss computed only on assistant tokens), then on-policy DPO using the model's own samples; the same data is applied separately to base and instruction-tuned checkpoints, to answer when response data should enter the training pipeline.
- Success criteria: ASR is the proportion of harmful prompts judged to be unsafely complied with; OR is the proportion of benign DIRECT pairs that are refused; both are judged by GPT-OSS-Safeguard-120B on greedily decoded responses.
What experiments did the paper conduct?
8 open-source models evaluated on 60 languages: the translation arm's ASR is at most 14.2%, and localization exposes failures that translation misses; MSafeTemp training reduces ASR to 0.5–3.3%.
Experimental Setup
- Models under test (evaluation panel, 8): Qwen3.5-27B, GPT-OSS-20B, Gemma-4-31B-IT, Olmo-3.1-32B-Instruct, Llama-3.3-70B-Instruct, Apertus-8B/70B-Instruct-2509, Apertus-v1.5-8B-IT (Table 2). Training experiments additionally use the base and IT checkpoints of Apertus-8B-2509, Apertus-v1.5-8B, Llama-3.1-8B, Olmo-3-7B (Table 3).
- Benchmarks: MSafeTemp dual track—HarmBench track (200 seeds, 60 languages, 216,486 entries, evaluation only) and WildGuard track (2,500 seeds, 44 languages, 500-seed held-out test); additionally HB-JB (PyRIT jailbreak wrappers, 300 entries per language).
- Metrics: ASR (proportion of unsafe compliance) and OR (proportion of benign DIRECT pairs refused), both lower is better; capability measured with MMLU, GSM8K, etc.
- Judge: GPT-OSS-Safeguard-120B judges greedy responses; the authors note that GPT-OSS-20B is in the same family as the judge, so its scores may have same-family bias (App. A.1).
- Scale: HarmBench track 213,475 prompts per model, WildGuard test track 362,100 per model (App. D.2, E).
- Statistics: paired tests use Wilcoxon and sign tests (Holm correction), confidence intervals use bootstrap resampling by seed family (2,000 iterations, App. F.4).
Main Results
According to Table 2 (%, lower is better; Orig. is English seeds, TR/PH are the translated/localized arm means, OR is over-refusal):
Swipe horizontally to read the table
Model HB Orig. HB TR HB PH HB OR WG TR WG OR HB-JB ASR Qwen3.5-27B 0.5 0.4 0.1 3.5 0.3 17.0 < 0.1 GPT-OSS-20B 0.0 0.4 0.3 31.8 0.5 45.1 0.2 Gemma-4-31B-IT 6.5 4.2 2.5 3.2 3.2 7.5 2.0 Olmo-3.1-32B-Instruct 0.0 13.7 11.9 4.6 10.7 6.1 16.6 Llama-3.3-70B-Instruct 13.0 5.3 2.6 7.7 5.6 12.8 10.3 Apertus-8B-Instruct-2509 8.5 10.1 12.2 10.2 10.5 12.2 31.8 Apertus-70B-Instruct-2509 8.5 13.0 6.0 5.3 14.2 7.5 30.9 Apertus-v1.5-8B-IT 0.0 1.9 1.8 25.1 2.8 29.6 24.6 - Authors' interpretation (RQ1): English evaluation gives an incomplete and even misleading picture—Olmo and the two Apertus models are more easily broken after translation in almost every language on both tracks (Olmo on HarmBench from 0% to 13.7%), Gemma only on WildGuard, while Llama is most vulnerable in English; safety does not generalize uniformly beyond English.
- Safety/over-refusal trade-off: GPT-OSS-20B has near-zero ASR across arms but refuses 32–45% of benign pairs; only Qwen3.5-27B has both low ASR and low over-refusal on HarmBench.
- WildGuard track: translated variants break Olmo, Gemma, and the two Apertus models 2.4–4.4 times as often as English seeds (range reported by the authors).
Localization (PH) vs. Translation (TR)
- Paired tests (App. F.1, Table 41): PH lowers ASR for most models (5 of 7 models on HarmBench, 6 of 7 on WildGuard), but raises it for Apertus-8B (HarmBench +2.25 pp) and Olmo instruct (+5.40 pp); the direction depends on the model (Figure 3 shows Apertus-8B rises in all 8 languages shown, while most languages fall for other models).
- Fixed-wording ablation (App. F.2, Table 42): under the same entities, paraphrasing or not affects ASR by less than about 1 percentage point; cultural filling and generic filling break at similar frequency, but the behaviors broken by the two arms overlap by less than half (Jaccard 0.45 and 0.40), and about 45% of failures appearing in only one arm are reached only by local entities. The authors state that localization changes "which requests succeed" rather than "how many succeed."
- Authors' positioning: PH is used to broaden coverage rather than as a stronger attack; translation preserves English entities, and only typed slots can accept real local groups, institutions, and events.
Jailbreak Wrappers and Template Analysis
- HB-JB (App. F.3, Table 43/44): under 10 PyRIT wrappers, the average single-attempt ASR is +18.0 pp higher than PH for Apertus-8B and +11.2 pp higher for Llama-3.1-8B, with no clear gain for Olmo-3-7B and Qwen3.5-9B; cumulative success rate rises with the number of attempts (64.8% for Apertus-8B at k=10), but the authors note this reflects the attacker getting more attempts, not greater single-attempt effectiveness.
- Main template vs. paraphrase (Table 32/24): on WildGuard, paraphrase is easier to break for all 7 models (up to +3.69 pp, Apertus-70B); on HarmBench it is not (paraphrase lower for 6/7 models). The authors explain that HarmBench seeds are single-sentence direct requests, so paraphrase is only a restatement, whereas WildGuard seeds are adversarial scaffolding, and paraphrase changes the framing.
- Role of filling (Table 33/25): templates where only some fillings are broken produce 60–92% (WildGuard) and 83–100% (HarmBench) unsafe responses; evaluating only the first filling misses about half of broken templates (Apertus-70B: 12.3% vs. 29.9%).
Training Experiments (RQ3)
- Setup (Table 3): base/IT checkpoints of 4 models, MSafeTemp SFT for one epoch + on-policy DPO; evaluation includes AyaRT, PolyTox, HB/WG ASR and OR, OR-Bench, MMLU, GSM8K.
- Results: SFT consistently lowers multilingual ASR—Apertus-8B-IT HB ASR 10.3→3.0, 1.4 after +DPO; Olmo-3-7B-IT 21.5→4.3→2.9; Llama-3.1-8B-IT 15.9→1.7→2.0. The cost is capability: MMLU drops little, GSM8K drops more (e.g., Apertus-8B-IT 63.3→50.3→51.4), and the authors state the difference may come from the quality of the general instruction mix.
- Over-refusal: SFT raises over-refusal (Olmo-3-7B-IT WG OR 3.1→20.2), DPO brings it back down (→13.7); after DPO, Apertus over-refusal is lower than the original IT model, while Olmo and Llama remain above the original level on at least one benchmark. The authors also report that about 20% of OR-Bench samples were judged by the judge to actually be harmful, so the best value on this benchmark is above 0%.
- Unseen-language generalization (App. G.3, Table 54): training covers only 44 languages, and ASR on 16 held-out languages drops to close to that of seen languages (e.g., Apertus-8B: seen 1.1%, held-out 2.3%); the authors state this points to cross-lingual transfer rather than memorizing the training languages.
Other Ablations and Analyses
- Independent judge re-check (App. F.5): a 5,000-entry subsample re-judged with Llama-Guard-4-12B and Llama-3.3-70B shows high over-refusal agreement (κ=0.90) and moderate ASR agreement (κ=0.40/0.46), with Safeguard being stricter; the direction of the main effects holds under independent judges.
- Entity diversity (App. B): the harmful slots contain 2.8 million+ distinct entities, and no entity accounts for more than 1% of harmful fillings in any language; the diversity difference between high- and low-resource languages is not statistically significant (stemmed D/F, p=0.18/0.55).
- Human validation (App. C): 15 submissions, 11 languages, 600 judgments; naturalness 4.43/5, cultural fit 4.46/5; HARMFUL labels endorsed 91.0%, BENIGN only 65.3%—the authors note that some softened or fabricated benign controls are still read as harmful, so over-refusal on benign pairs may overestimate true over-refusal.
- Negative results: HB-JB wrappers give no clear gain for Olmo and Qwen; paraphrase does not raise ASR on HarmBench; GPT-OSS-20B's low ASR comes at the cost of the panel's highest over-refusal.
What are some points that can be further explored?
The authors list five limitations: reliance on review, scale of human verification, label inheritance, training method, and single-turn templates; all are future work.
Limitations and future directions noted by the authors
- Reliance on automatic review (§7): the pipeline relies on LLM review; two reviewers from another family maintained the main result directions on a 5,000-item subsample, but a full ablation of reviewer models is future work.
- Scale of human validation (§7): multicultural quality conclusions likewise come from LLM-as-a-judge; the interim human study (App. C) covers only some languages, with one to two respondents per language, and larger-scale human evaluation is future work.
- Label inheritance (§7): harm labels are assigned to English seeds and inherited by all descendants; localized entities (e.g., extremist organizations, regional slurs) may make variants more severe than the inherited label, and re-annotating localized samples is future work.
- Training methods (§7): the training ablation covers only SFT+DPO, and RL-based methods are future work; the authors also believe the small capability drop from SFT stems from its aggressive training and stronger weight edits.
- Single-turn fixed templates (§7): prompts are all single-turn and follow fixed templates; extending to multi-turn and iterative attacks (e.g., using localized variants as seeds for an automatic iterative attacker) is the next step.
Scope of experiments
- Models tested: the evaluation panel has 8 open-source/open-weight models (Table 2), and the training ablation covers Apertus-8B-2509, Apertus-v1.5-8B, Llama-3.1-8B, Olmo-3-7B and their checkpoints (§6); closed-source commercial models are not included.
- Languages and data: the training track has 44 languages and the evaluation track 60 languages, of which 16 are held-out evaluation-only languages; the PH arm covers 43/44 (WildGuard) and 58/60 (HarmBench) languages (Table 4).
- Review and judgment: the main reviewer is GPT-OSS-Safeguard-120B; independent re-check covers only a 5,000-item subsample with two reviewer models (App. F.5); the paper notes that GPT-OSS-20B is from the same family as the reviewer, so its scores should be compared with caution (App. A.1).
- Human study: 15 submissions, 11 languages, 600 judgments, with only 1–2 respondents per language; the authors note that the aggregate statistics are descriptive, not independent observations (App. C.4).
- Not reported in the paper: total query/generation cost for training and evaluation; in the HB-JB evaluation, about 40% of Apertus-70B responses hit the token limit and were scored as-is (Table 45 note).
Summarize the main content of the paper
The templated pipeline produces the MSafeTemp corpus in 60 languages; the authors state that English evaluation misses the gaps exposed by translation and localization, and that training on this data can narrow the gaps.
A multilingual safety data and evaluation work: the authors propose a templated augmentation pipeline that abstracts English harmful seeds into harmless templates with typed slots, and after translation fills them along three branches—generic harmful (TR), benign minimal pairs (OR), and cultural-card local entities (PH)—with LLM review from a different family than the generator checking each stage, producing MSafeTemp (WildGuard training track in 44 languages, about 1.84 million entries; HarmBench evaluation track in 60 languages, about 217,000 entries; Table 1).
- Problem to solve: safety alignment data is English-centric, and low-resource languages lack culturally authentic harmful/benign data; the authors state that English refusal rates cannot represent model behavior in other languages and cultures.
- Evaluation findings (RQ1): on 8 open-source models, Olmo-3.1-32B's HarmBench ASR rises from 0.0% in English to 13.7% on the translation arm, and Apertus-70B reaches 14.2% on the WildGuard translation arm; Llama-3.3-70B is instead most vulnerable in English (13.0%); GPT-OSS-20B has near-zero ASR but 31.8–45.1% over-refusal (Table 2).
- Increment from localization: PH and TR share seeds, templates, languages, and review, differing only in local entities; when wording is fixed the two arms' break frequencies are close, but the overlap of broken behaviors is less than half (Jaccard 0.40–0.45), and about 45% of single-arm failures are reached only by local entities (App. F.2).
- Training effect (RQ3): MSafeTemp SFT+DPO reduces Apertus-8B-IT's HarmBench ASR from 10.3% to 1.4% and Olmo-3-7B-IT's from 21.5% to 2.9% (Table 3); SFT raises over-refusal, and DPO partially recovers it; ASR on 16 untrained languages drops to near that of seen languages, which the authors describe as cross-lingual transfer.
- Authors' conclusion: safety does not generalize uniformly beyond English, and the direction of the gap depends on the model; multilingual safety work should evaluate language, culture, safety, and helpfulness together, and cannot treat English refusal rates as a sufficient condition.
- Main limitations (per the authors): conclusions rely on automatic review, human verification covers only 15 submissions with a 65.3% acceptance rate for benign labels, harm labels are inherited from English seeds, and only SFT+DPO and single-turn template prompts are tested.