Multilingual Safety Alignment Via Sparse Weight Editing

Jiaming Liang, Zhaoxin Wang, Handing Wang

Abstract

Large Language Models (LLMs) exhibit significant safety disparities across languages. While high-resource languages (HRLs) like English benefit from robust safety guardrails, low-resource languages (LRLs) often bypass these protections, creating a critical security vulnerability. Traditional alignment methods like Multilingual Supervised Fine-Tuning (SFT) or Reinforcement Learning from Human Feedback (RLHF) are computationally expensive and rely on scarce multilingual safety data. To address this, researchers introduce Sparse Weight Editing (SWE), a novel, training-free alignment framework. By formulating cross-lingual alignment as a constrained linear transformation, SWE maps harmful LRL representations to robust HRL safety subspaces while preserving general utility.

The Multilingual Safety Gap

Despite massive investments in aligning LLMs to refuse harmful prompts in English, these guardrails frequently fail when models are queried in Low-Resource Languages (LRLs) such as Bengali, Swahili, or Indonesian. Malicious actors can exploit this disparity by simply translating harmful prompts into an LRL to bypass safety filters.

The standard solutions—multilingual SFT and RLHF—are bottlenecked by the sheer lack of high-quality safety datasets for most of the world's languages, coupled with the high computational cost of iterative retraining. This paper investigates a critical question: Can we transfer the safety representations of English to other languages without retraining the model?

Methodology: Sparse Weight Editing (SWE)

The authors propose Sparse Weight Editing (SWE), a mathematically elegant, training-free framework built on three core pillars:

  1. Safety Neuron Identification: Safety mechanisms within LLMs are not uniformly distributed; they are highly localized. The researchers identified a sparse subset of "safety neurons" (comprising less than 1% of the model) that activate in response to harmful content. While English prompts reliably trigger this "safety subspace," LRL prompts often activate misaligned or orthogonal neurons.
  2. Constrained Linear Transformation: Rather than relying on gradient descent, SWE treats alignment as a geometric problem. The method calculates a weight perturbation ($\Delta W$) that maps the "harmful" internal representations of an LRL directly to the "safe" activation patterns observed in English.
  3. Null-Space Projection: To ensure the model retains its general reasoning capabilities, the weight edits are constrained to the "null space" of harmless data. This means the transformation exclusively alters how the model processes harmful prompts, leaving benign prompts entirely unaffected.

Unlike traditional methods, SWE utilizes a closed-form solution. This single-pass matrix calculation is highly efficient and requires only a small number of "anchor" samples, eliminating the need for extensive training.

Datasets and Benchmarks

To validate SWE, the researchers utilized a comprehensive suite of datasets:

  • Probing/Alignment Data: Harmful samples were sourced from HarmfulQA, CatHarmfulQA, and LLM-LAT, while harmless samples were drawn from NaturalReasoning.
  • MULTI-STRONGREJECT: A novel benchmark introduced in this paper, created by translating the StrongREJECT dataset into seven diverse languages (Chinese, Vietnamese, Japanese, Thai, Indonesian, Bengali, and Hebrew).
  • MULTIJAIL: An additional multilingual jailbreak benchmark for robust safety validation.
  • Utility Benchmarks: MGSM (Multilingual Grade School Math) and M-MMLU (Multilingual Massive Multitask Language Understanding) were used to verify that safety improvements did not degrade general intelligence.

Key Findings and Results

Extensive experiments were conducted across the Llama-3 and Qwen-2.5 model families (ranging from 0.5B to 7B parameters) in 8 languages.

  • Significant Safety Gains: The SWE method drastically improved safety. On Llama-3.2-1B, the Attack Success Rate (ASR) was reduced by an average of 27.33% across the tested languages.
  • English as a Universal Anchor: The study proves that English safety neurons can serve as a functional "universal" target for other languages, successfully reorienting the internal representations of LRLs toward a safe anchor.
  • Synergy with Existing Methods: When combined with existing alignment techniques like MPO, SWE acted as a highly effective "safety plug-in," achieving the lowest unsafe-response counts recorded in the study.
  • Preserved Utility: Crucially, performance on math (MGSM) and general knowledge (M-MMLU) benchmarks remained stable. The null-space projection successfully prevented the model from losing its general capabilities.

Limitations and Future Directions

While SWE presents a major leap forward in efficient alignment, the authors note a few limitations. The current framework primarily targets specific layers or neuron subsets; extending this to multi-layer, hierarchical safety subspaces could yield even stronger protections. Additionally, while the method is robust, it requires manual hyperparameter tuning (e.g., rank and regularization strength). Automating these parameters would make SWE a true "plug-and-play" solution. Finally, future work could replace machine-translated probing data with native-speaker data to further reduce noise and improve precision.

Summary updated

BibTeX
@inproceedings{liang2026multilingual,
  author = {Jiaming Liang and Zhaoxin Wang and Handing Wang},
  title = {{Multilingual Safety Alignment Via Sparse Weight Editing}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=tlPhEl24fM},
}
Figure