Multilingual Safety Signals Are Multi-Layered: Filtering Safety-Degrading Data for Safer LLMs
Organizations: School of Computer Science and Engineering, Beihang University · Zhongguancun Laboratory · Hangzhou Innovation Institute, Beihang University · Qingdao Research Institute, Beihang University
Abstract
Preserving safety alignment during large language models fine-tuning is critical, however, recent studies have demonstrated that even benign fine-tuning data may contain safety-degrading samples that silently undermine safety alignment. Existing approaches typically identify such samples using representations from a single safety-sensitive layer. While this assumption has shown effectiveness in monolingual settings, its validity for multilingual models remains unclear due to potential cross-lingual differences in representation patterns. Through a cross-lingual analysis, we show that sensitive layers are only partially shared across languages, with safety-relevant signals often distributed across multiple layers. Motivated by these observations, we propose MMSAFE, a multi-layer framework for multilingual safety-degrading data identification that captures both shared and language-specific safety signals. Extensive experiments across multiple models, languages, and safety benchmarks demonstrate that MMSAFE reduces the average harmful-response ratio by 60% compared with random filtering and achieves stronger average performance than the strongest single-layer baseline, demonstrating the effectiveness of multi-layer modeling for robust multilingual safety alignment.
Figures & tables
| Layer | Main focus | Representative concepts |
|---|---|---|
| 3 | Lexical / local semantic cues | Spoofing; lying; spying |
| 7 | Concrete harmful scenarios | Hoaxes; crimes; dangerous activities; bomb/gun making |
| 11 | Harmful intent and deception | Fraud; illicit requests; dangerous instructions; hiding evidence |
| 15 | Broad safety-policy violations | Illegal activities; abuse/hate; evasion; conspiracy theories |
| Method | Aya Dataset | Nemotron-SG | Avg. | ||||||||||
| LinguaSafe | XSafety | MultiJail | LinguaSafe | XSafety | MultiJail | ||||||||
| #Harm | H/R | #Harm | H/R | #Harm | H/R | #Harm | H/R | #Harm | H/R | #Harm | H/R | H/R | |
| LLaMA3-8B-Instruct | |||||||||||||
| Random | 4,901 | 100.0% | 1,810 | 100.0% | 719 | 100.0% | 2,148 | 100.0% | 548 | 100.0% | 794 | 100.0% | 100.0% |
| SEAL | 2,786 | 56.8% | 1,192 | 65.9% | 240 | 33.4% | 4,134 | 192.5% | 1,363 | 248.7% | 324 | 40.8% | 106.4% |
| Bi-Anchor | 3,179 | 64.9% | 1,378 | 76.1% | 521 | 72.5% | 3,185 | 148.3% | 391 | 71.4% | 439 | 55.3% | 81.4% |
| Model | FT Data | MATH | Code | XNLI | MLQA |
|---|---|---|---|---|---|
| Qwen3-8B | Base | 90.4 | 52.5 | 71.09 | 61.41 |
| Aya Dataset | 90.5 | 51.5 | 74.51 | 64.83 | |
| Nemotron-SG | 89.6 | 52.0 | 72.32 | 62.32 | |
| Qwen3-32B | Base | 92.2 | 60.7 | 70.95 | 62.94 |
| Aya Dataset | 91.7 | 59.9 | 72.56 | 65.25 | |
| Nemotron-SG | 91.1 | 60.1 | 72.15 | 63.86 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Dataset | Languages | Size / Coverage |
|---|---|---|---|
| Candidate fine-tuning data | Aya Dataset | 65 | 204K samples |
| Candidate fine-tuning data | Nemotron-SG | 12 | 200K safe-labeled samples |
| Sensitive layer discovery | OR-Bench | 18 † | 1K hard queries translated into multiple languages |
| Sensitive layer discovery | PolyGuardMix | 17 | 1.91M samples |
| Safe-unsafe centroid construction | PolyGuardMix | 17 | 1.91M samples |
| Safe-unsafe centroid construction | Nemotron-SG Val. | 12 | 10K validation samples |
| Model | Shared layer | Language-specific layers |
|---|---|---|
| Qwen3-8B | 19 | Arabic: 27, 17; Czech: 28, 14; German: 14, 24; English: 14, 13; Spanish: 14, 17; French: 26, 14; Hindi: 17, 24; Italian: 13, 20; Japanese: 24, 21; Korean: 29, 27; Dutch: 13, 24; Thai: 22, 5; Chinese: 15, 22; Portuguese: 29, 17; Russian: 28, 29; Polish: 24, 17; Swedish: 24, 29. |
| LLaMA3-8B-Instruct | 9 | Arabic: 10, 0; Czech: 13, 2; German: 29, 23; English: 10, 14; Spanish: 13, 11; French: 28, 11; Hindi: 0, 2; Italian: 2, 3; Japanese: 10, 0; Korean: 10, 0; Dutch: 13, 10; Thai: 13, 10; Chinese: 10, 0; Portuguese: 13, 11; Russian: 10, 13; Polish: 2, 10; Swedish: 2, 1. |
| LLaMA3.1-8B-Instruct | 8 | Arabic: 10, 2; Czech: 28, 2; German: 4, 19; English: 2, 15; Spanish: 15, 10; French: 15, 10; Hindi: 20, 2; Italian: 15, 2; Japanese: 12, 14; Korean: 12, 14; Dutch: 18, 19; Thai: 10, 9; Chinese: 10, 15; Portuguese: 15, 10; Russian: 20, 2; Polish: 2, 15; Swedish: 2, 4. |
| Qwen3-32B | 42 | Arabic: 52, 51; Czech: 51, 55; German: 44, 37; English: 44, 40; Spanish: 52, 56; French: 44, 58; Hindi: 57, 54; Italian: 51, 52; Japanese: 20, 40; Korean: 59, 50; Dutch: 61, 45; Thai: 52, 51; Chinese: 44, 46; Portuguese: 52, 59; Serbian: 1, 56; Russian: 54, 41; Polish: 54, 56; Swedish: 56, 54. |
| Model | LG-3 | GPT-4 | T-LG | Human |
|---|---|---|---|---|
| Qwen3-8B | 532 | 518 | 535 | 528 |
| Qwen3-32B | 504 | 496 | 509 | 481 |
| LLaMA3-8B | 445 | 430 | 441 | 432 |
| LLaMA3.1-8B | 391 | 387 | 388 | 385 |
| Model | |||
|---|---|---|---|
| Qwen3-8B | 4891 | 4576 | 4673 |
| LLaMA3.1-8B | 3894 | 3746 | 3937 |
| LLaMA3-8B | 4810 | 4881 | 5031 |
LLM Safety
Large language model (LLM) safety studies how to prevent harmful, unreliable, or misaligned behavior while preserving useful responses.
See all 442 papers