Multilingual Safety Alignment Via Sparse Weight Editing
Organizations: School of Artificial Intelligence, Xidian University.
Abstract
Large Language Models (LLMs) exhibit significant safety disparities across languages, with low-resource languages (LRLs) often bypassing safety guardrails established for high-resource languages (HRLs) like English. Existing solutions, such as multilingual supervised fine-tuning (SFT) or Reinforcement Learning from Human Feedback (RLHF), are computationally expensive and dependent on scarce multilingual safety data. In this work, we propose a novel, training-free alignment framework based on Sparse Weight Editing. Identifying that safety capabilities are localized within a sparse set of safety neurons, we formulate the cross-lingual alignment problem as a constrained linear transformation. We derive a closed-form solution to optimally map the harmful representations of LRLs to the robust safety subspaces of HRLs, while preserving general utility via a null-space projection constraint. Extensive experiments across 8 languages and multiple model families (Llama-3, Qwen-2.5) demonstrate that our method substantially reduces Attack Success Rate (ASR) in LRLs with negligible impact on general reasoning capabilities, all achieved with a single, data-efficient calculation.
Figures & tables
| Models | Method | Safety | Utility | |||||||
| ASR (#unsafe / 313) | MGSM | M-MMLU | ||||||||
| En | Zh | Vi | Ja | Bn | He | |||||
| Llama-3.2-1B | None | 6/313 | 61/313 | 31/313 | 149/313 | 179/313 | 109/313 | - | 18.58 | 26.54 |
| Our | 0/313 -6 | 27/313 -34 | 4/313 -27 | 81/313 -68 | 144/313 -35 | 115/313 +6 | -27.33 | 18.36 | 27.22 | |
| MPO | 0/313 -6 | 22/313 -39 | 9/313 -22 | 78/313 -71 | 152/313 -27 | 135/313 +26 | -23.15 | 19.64 | 25.96 | |
| MPO+Our | 0/313 -6 | 22/313 -39 | 0/313 -31 | 66/313 -83 | 96/313 -83 | 109/313 -0 | -40.33 | 19.45 | 26.58 | |
| Method | ASR | MGSM | M-MMLU |
| None | 28.27 | 18.58 | 26.54 |
| Other | 14.93 | 17.71 | 27.14 |
| MPO | 19.52 | 19.64 | 25.96 |
| MPO + Other | 12.53 | 19.53 | 26.54 |
| Choice / Models | Llama-3.2-1B | ||
| UtilityAnchor | |||
| Regular | |||
| ASR | 17.53 | 68.57 | 17.25 |
| MGSM | 18.36 | 0.11 | 11.02 |
| M-MMLU | 27.22 | 24.21 | 26.02 |
| Rank | ASR (%) | MGSM (%) | M-MMLU (%) |
| 4 | 15.42 | 18.33 | 27.19 |
| 8 | 15.54 | 17.96 | 27.19 |
| 16 | 15.34 | 18.18 | 27.18 |
| 32 | 17.53 | 18.36 | 27.22 |
| 64 | 14.90 | 18.29 | 27.22 |
| 128 | 14.98 | 18.11 | 27.19 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Subset | Source datasets | Description |
| Harmful ( ) | HarmfulQA, CatHarmfulQA, LLM-LAT | Queries spanning diverse malicious and unsafe intents |
| Harmless ( ) | NaturalReasoning | Benign queries used as control samples |
| Models | Method | Safety | ||||||||
| ASR (#unsafe / 313) | ||||||||||
| En | Zh | Vi | Ja | Th | Id | Bn | He | |||
| Llama-3.2-1B | None | 6/313 | 61/313 | 31/313 | 149/313 | 69/313 | 104/313 | 179/313 | 109/313 | - |
| Our | 0/313 -6 | 27/313 -34 | 4/313 -27 | 81/313 -68 | 30/313 -39 | 38/313 -66 | 144/313 -35 | 115/313 +6 | -33.625 | |
| MPO | 0/313 -6 | 22/313 -39 | 9/313 -22 | 78/313 -71 | 23/313 -46 | 70/313 -34 | 152/313 -27 | 135/313 +26 | -23.15 | |
| MPO+Our | 0/313 -6 | 22/313 -39 | 0/313 -31 | 66/313 -83 | 10/313 -59 | 22/313 -82 | 96/313 -83 | 109/313 -0 | -47.875 | |
LLM Safety Alignment
Large language model safety alignment trains and evaluates systems to follow human policies while resisting harmful requests and misuse.
See all 341 papers