Multilingual Safety Alignment via Self-Distillation

Ruiyang Qin, Qingzhuo Wang, Dongrui Liu, Qiang Li, Zhihua Wei, Wen ShenNeurIPS 2026

TL;DR

Ask an LLM how to build a pipe bomb in English, and it politely refuses; ask the exact same question in Swahili or Javanese, and it might hand you a step-by-step recipe. This paper introduces Multilingual Self-Distillation (MSD), a clever trick where an LLM acts as its own teacher—reasoning safely in English to teach itself how to refuse harmful prompts in low-resource languages. Best of all, it requires zero expensive ground-truth response data and keeps the model's general intelligence intact.

What Problem Does This Paper Address?

Modern LLMs suffer from a glaring blind spot: multilingual safety misalignment. Because safety alignment happens overwhelmingly in high-resource languages like English, models develop strong guardrails there, while their defenses in low-resource languages remain paper-thin.

Fixing this usually requires Supervised Fine-Tuning (SFT) or Preference Optimization (like DPO). Both demand massive datasets of high-quality safe (and unsafe) responses across dozens of languages. Generating or translating nuanced safety responses for low-resource languages is expensive, slow, and prone to translation errors. Meanwhile, cheaper "training-free" fixes (like tweaking internal model activations) tend to generalize poorly and degrade the model's everyday reasoning abilities. How do we transfer an LLM's existing English street smarts to other languages without paying a fortune for response data?

Methods

The authors propose Multilingual Self-Distillation (MSD), where both a "Teacher" and a "Student" are instantiated from the exact same base LLM, differing only in the context they receive.

Workflow of the MSD framework

Here is how the setup works:

  • The Student gets only the raw query in a target low-resource language (e.g., Javanese).
  • The Teacher (kept frozen during training) gets privileged information: the low-resource query, its English translation, and a Chain-of-Thought (CoT) prompt instructing it to analyze safety in English before responding in the target language.
Figure 3: The teacher prompt template used in the MSD framework.

MSD minimizes the reverse Kullback-Leibler (KL) divergence between the Student's and Teacher's token probability distributions. It supports both off-policy (training on sequences sampled from the Teacher) and on-policy (training on the Student's own rollouts) strategies.

Standard distillation treats every word equally, which wastes effort on filler words. To fix this, the authors introduce Dual-Perspective Safety Weighting (DPSW). DPSW dynamically scales the penalty on each token by multiplying two metrics:

  1. Teacher's Perspective: Uses normalized top-$K$ entropy to measure confidence. Models tend to have high confidence (low entropy) when issuing safety refusals, flagging safety-critical words like "cannot".
  2. Student's Perspective: Measures how much the Student disagrees with the Teacher's top token choice—capturing the exact moments the Student is tempted to go off the rails.

Datasets

No new benchmarks are introduced; instead, the authors test cross-dataset and cross-lingual generalization across established suites spanning 10 languages (only 4—English, Chinese, Arabic, and Bengali—are seen during training):

  • Training: Multilingual queries only (no responses!) from XSafety.
  • Safety Evaluation: MultiJail and PKU-SafeRLHF, which feature much harder jailbreaks than XSafety, testing true generalization.
  • General Utility: MMMLU (multitask knowledge) and MGSM (multilingual grade-school math).

Key Insights and Ideas

  • Zero-Response Alignment ($0 Data Cost):** Generating paired preference data for baselines like DPO cost ~$1,200 in GPT-4o API calls, and SFT cost ~$650. Because MSD only needs translated input queries and generates its own supervision internally, response data generation costs **$0.
  • Handing the Teacher Ground-Truth Answers Backfires: In an ablation where the Teacher was fed actual ground-truth refusal responses instead of reasoning via CoT, LLaMA-3-8B-Instruct's MMMLU score crashed from 48.17 to 18.58. Spoon-feeding answers induces shortcut learning rather than genuine capability transfer.
  • Keep the Teacher Frozen: While prior self-distillation works recommend slowly updating the Teacher via an Exponential Moving Average (EMA) of the Student, doing so here caused both safety and general intelligence to collapse. Mixing the unaligned Student's weights into the Teacher corrupts the very English safeguards you are trying to transfer.
  • English Isn't the Only Anchor: Swapping English for Chinese as the high-resource reasoning language on Qwen-3-8B worked nearly as well, proving you can anchor alignment to whatever dominant language a model knows best.

Key Results

Across four models (Qwen-2.5-7B, Qwen-3-8B, LLaMA-2-7B, and LLaMA-3-8B), both on-policy and off-policy MSD consistently beat SFT, six preference optimization variants, representation engineering, and distillation baselines.

  • Massive Drops in Attack Success Rate (ASR): On LLaMA-3-8B-Instruct, average MultiJail ASR plummeted from 21.21% (raw model) to 2.03% (On-Policy MSD), and PKU-SafeRLHF ASR dropped from 15.82% to 1.22% (Off-Policy MSD).
  • Zero-Shot Language Generalization: On Swahili—a low-resource language never seen during training—LLaMA-3-8B's MultiJail ASR dropped from a vulnerable 69.52% down to 4.13%.
  • Capabilities Preserved (and Even Boosted): Unlike SFT, which tanked LLaMA-3-8B's MMMLU accuracy from 48.17% to 17.65%, On-Policy MSD maintained it at 48.16% while nudging MGSM math scores up from 56.04% to 58.11%. (Even when Qwen-3-8B showed a lingering 63.81% ASR on Swahili, analysis revealed 57.14% were simply garbled Swahili outputs counted as failures—its internal English reasoning was safely refusing).

Limitations and Future Work

MSD isn't magic; you can't distill water from a dry well. First, the framework assumes the base LLM already possesses strong safety alignment and Chain-of-Thought capabilities in at least one high-resource language. Second, while it eliminates the need for response data, it still relies on accurate translations of the input queries during training—poorly translated prompts could weaken the Teacher's supervision signal. Future directions were not explicitly discussed in the main text.

Summary updated

Abstract

Large language models (LLMs) exhibit severe multilingual safety misalignment: they possess strong safeguards in high-resource languages but remain highly vulnerable to jailbreak attacks in low-resource languages. Current safety alignment methods generally rely on high-quality response data for each target language, which is expensive and difficult to generate. In this paper, we propose a cross-lingual safeguard transfer framework named Multilingual Self-Distillation (**MSD**). This framework transfers an LLM's inherent safety capabilities from high-resource (*e.g.*, English) to low-resource (*e.g.*, Javanese) languages, overcoming the need for response data in any language. Our framework is flexible and can be integrated with different self-distillation strategies. Specifically, we implement two concrete methods---on-policy MSD and off-policy MSD---both of which enable effective cross-lingual safety transfer using only multilingual queries. Furthermore, we propose Dual-Perspective Safety Weighting (DPSW), a divergence measure to optimize the distillation objective. By jointly considering the perspectives of both the teacher and the student, DPSW adaptively increases the penalty weights on safety-critical tokens while reducing the weights on non-critical tokens. Extensive experiments on representative LLMs across diverse multilingual jailbreak and utility benchmarks demonstrate that our method consistently achieves superior multilingual safety performance. Notably, it generalizes effectively to more challenging datasets and unseen languages while preserving the model's general capabilities. Code is available at https://github.com/weiliang822/MSD.
BibTeX
@inproceedings{qin2026multilingual,
  author = {Ruiyang Qin and Qingzhuo Wang and Dongrui Liu and Qiang Li and Zhihua Wei and Wen Shen},
  title = {{Multilingual Safety Alignment via Self-Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cZ1cfEJsfr},
}
Figure