Manuscript Offprint

arXiv:2610.40516

How I Aligned Your Model: Scaling Up Multilingual Safety Training with Templates

Max Neuwinger, Hanna Yukhymenko, Imanol Schlag

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Safety alignment for Large Language Models is heavily focused on English with limited multilingual representation, particularly damaging low-resource language performance. Related open training datasets are often limited in size or do not follow region-localized harmful topics to broaden the scope of alignment beyond cultures. We propose a scalable template-based augmentation pipeline to produce massive multilingual refusal and benign corpora, extracting safe templates from harmful prompts, translating them and then filling in the slots with culturally authentic entities, both harmful and benign. As a result, we release MSAFETEMP, a validated corpus spanning 60 languages useful for multilingual safety alignment and evaluation. 1^{1} Using the dataset, we show that English-only evaluation misjudges multilingual safety: for several models, attacks that fail in English succeed once translated, while culturally localized variants expose further failures that translation alone misses. We also confirm that augmenting safety training data through templates allows for higher diversity and quality of alignment, resulting in improved safety performance beyond English. MSAFETEMP and the respective pipeline are aimed at facilitating research and development of safer and more responsible models for less-represented cultures.

1 INTRODUCTION

As large language models become more capable, the risks of their misuse grow as well. As a result, models undergo extensive safety training and evaluation before deployment. However, existing research consistently shows that red-teaming is much more effective in non-English languages than in English, yet open multilingual safety data remains scarce. Take an English prompt that a model reliably refuses, translate it, and adapt it to the specifics of the target culture (a local extremist movement, a historical atrocity, a community-specific slur): the same model may now comply, even though the harmful intent is unchanged.

The curse of safe multilinguality. Existing safety alignment datasets are heavily English-centric, both linguistically and culturally. Collecting data beyond English faces several obstacles: (1) recruiting native speakers for such sensitive tasks is costly and slow, which is challenging at the current pace of global LLM development; (2) human red-teaming is of the highest quality, but rarely covers low-resource languages at scale; (3) machine translation does not produce the locally specific context needed to broaden the scope of the model's safety understanding; (4) scalable synthetic data generation or translation with other language models is often blocked by the generator's own refusals, since the content is harmful by design. As a result, users communicating in low-resource languages are the least protected, and these languages open an easy attack vector for misuse.

Multilingual safety can benefit from a mix of cross-lingual transfer, stronger general model capabilities, and strong English-focused alignment. However, these effects diminish in extremely low-resource settings, and even more so for culture-specific harms, which depend not on knowledge transfer but on knowledge breadth. Therefore, safety should be treated less as a general model capability axis and more as a combination of model, language, and culture axes: a request reliably

1^{1}Dataset: https://huggingface.co/datasets/swiss-ai/MSafeTemp; Code: https://github.com/swiss-ai/msafetemp. Contact email: hyukhymenko@ethz.ch refused in English can be complied with in its translated and culturally grounded variant. Measuring and closing this gap requires safety data that is multilingual and culturally authentic, not merely translated.

Figure

Figure 1: The MSAFETEMP pipeline. Original prompt goes through extraction of harmful terms, validation, translation, and a targeted judge pass of a template. Three branches then produce generic harmful variants (TR), exact-fill benign controls (OR), and culturally localized variants (PH). English (EN) follows the same path without translation.

This work. We produce such data at scale in a fully automated way by relying on language models instead of human red-teaming experts. We abstract a real harmful prompt into a template with typed slots and translate the template natively, then refill those slots along two axes. Generic fillers carry the harmful frame into every language at full coverage; a second, deliberately selective pass instead admits real local referents from a per-language cultural card. Filling the same slots with safe referents gives benign minimal pairs, which serve both to measure over-refusal and as training signal. Every variant is validated by LLM judges distinct from the generator models. Instantiating the pipeline yields MSAFETEMP. Red-teaming leading open models on it exposes multilingual safety gaps that English-only evaluation does not show, and the localized variants surface failures that the translated ones miss.

We explicitly include low-resource languages in both data production and evaluation for three reasons: (1) they are systematically underrepresented in existing safety development research; (2) they are usually addressed through simple translation without cultural adaptation; (3) prior work finds safety degradation to be most pronounced in low-resource languages (Yong et al., 2023), making them a strong probe of gaps in the cross-lingual safety generalization of aligned models.

In this work, we aim to answer three research questions:

• RQ1. Do safety capabilities of existing open models generalize well beyond English to low-resource languages and culturally-specific harms, or does cross-lingual alignment collapse outside of the English-centric setting?

• RQ2. Can a template-based pipeline scale the generation of culturally grounded harmful and benign prompt variants without extensive human involvement?

• RQ3. Does training on such data narrow the multilingual safety gap without inflating over-refusal?

Our key contributions are as follows:

• A template-based, culturally grounded multilingual safety-data pipeline that turns a small seed of English harmful prompts into fluent, harm-preserving, culturally authentic variants across 60 languages, with matched benign minimal pairs and jailbreak wrappers, each validated by a dual-stage LLM judge. We release automatically generated cultural cards for all languages, allowing other researchers to reproduce and extend the multilingual data.

• MSAFETEMP, a large-scale collection of grounded multilingual safety prompts: a provenance-tracked corpus of more than 1 million validated prompts across 44 languages, split by source seed so that no descendant of a test seed enters training. It includes a smaller culturally localized harmful subset and a benign subset, together with held-out red-teaming and over-refusal evaluation sets. Training ablations show that the dataset improves attack resistance and reduces over-refusal in multilingual settings.

• Multilingual safety evaluation revealing safety gaps that English-only evaluation misses and failures reachable only through localized entities, showing that several aligned open models struggle with out-of-distribution harmful and benign data.

References (36)