The Language Barrier: Dissecting Safety Challenges of LLMs in Multilingual Contexts

Lingfeng Shen, Weiting Tan, Sihao Chen, Yunmo Chen, Jingyu Zhang, Haoran Xu, Boyuan Zheng, Philipp Koehn, Daniel Khashabi

Abstract

As the influence of large language models (LLMs) spans across global communities, their safety challenges in multilingual settings become paramount for alignment research. This paper examines the variations in safety challenges faced by LLMs across different languages and discusses approaches to alleviating such concerns. By comparing how state-of-the-art LLMs respond to the same set of malicious prompts written in higher- vs. lower-resource languages, we observe that (1) LLMs tend to generate unsafe responses much more often when a malicious prompt is written in a lower-resource language, and (2) LLMs tend to generate more irrelevant responses to malicious prompts in lower-resource languages. To understand where the discrepancy can be attributed, we study the effect of instruction tuning with reinforcement learning from human feedback (RLHF) or supervised finetuning (SFT) on the HH-RLHF dataset. Surprisingly, while training with high-resource languages improves model alignment, training in lower-resource languages yields minimal improvement. This suggests that the bottleneck of cross-lingual alignment is rooted in the pretraining stage. Our findings highlight the challenges in cross-lingual LLM safety, and we hope they inform future research in this direction.

Introduction: The Multilingual Safety Gap

AI safety research has historically been English-centric, relying on techniques like Reinforcement Learning from Human Feedback (RLHF) to ensure models refuse harmful requests. However, this paper identifies a significant "safety gap" across the linguistic spectrum. When prompted in low-resource languages, models often bypass these safety guardrails, revealing that alignment is frequently language-specific rather than value-based.

The authors categorize these failures into two specific challenges:

  1. The Harmfulness Curse: Models are significantly more likely to generate prohibited or dangerous content when prompted in low-resource languages.
  2. The Relevance Curse (Not Following): Models struggle to comprehend instructions in these languages, often producing gibberish or simply repeating the malicious prompt without recognizing its intent.
The safety gap in LLMs: Malicious prompts in low-resource languages like Hausa often bypass safety filters or fail to follow instructions.

Methodology

The researchers utilized a translation-based jailbreaking framework, translating known malicious English prompts into various high-resource (e.g., French, Chinese) and low-resource (e.g., Kamba, Maori) languages using the NLLB-1.3B model.

To investigate potential solutions, they tested two primary alignment strategies:

  • Multilingual Supervised Fine-Tuning (xSFT): Training on a mix of helpful/harmless examples translated into multiple languages.
  • Multilingual RLHF (xRLHF): Training a reward model to recognize safe vs. unsafe responses across languages.

These strategies were tested on LLaMA-2 and compared against official safety-tuned versions to determine which training stage most effectively addresses the safety gap.

Key Results

The study reveals a stark disparity in safety performance between linguistic groups. While high-resource languages show robust safety alignment, low-resource languages remain vulnerable.

Comparison of harmfulness and instruction-following rates across high- and low-resource languages.
  • GPT-4 Vulnerability: In high-resource languages, GPT-4 maintained a harmful response rate of only 1%. In low-resource languages, this rate jumped to 35%.
  • Instruction Failure: GPT-4 followed instructions nearly 100% of the time in high-resource settings but dropped to 80% in low-resource settings.
  • Alignment Diminishing Returns: While RLHF reduced harmfulness by 45% in high-resource languages, it only achieved a ~20% reduction in low-resource ones.

Insights and Discussion

The authors conclude that the "Harmfulness Curse" is rooted in the pre-training bottleneck. If a model lacks sufficient conceptual representation of a language during its initial pre-training phase, it cannot effectively map safety concepts onto that language during later alignment stages.

Furthermore, there is a paradoxical "dark side" to instruction following: as models improve their ability to understand low-resource languages (resolving the Relevance Curse), they may become more dangerous because they can finally understand and fulfill malicious prompts that they previously ignored due to incomprehension.

Conclusion

To move beyond translation-based alignment, the AI community must focus on curating higher-quality, diverse pre-training corpora. Ensuring that safety "knowledge" transfers effectively from high-resource to low-resource languages is critical for building truly global and safe AI systems.

Summary updated

BibTeX
@inproceedings{shen2024language,
  author = {Lingfeng Shen and Weiting Tan and Sihao Chen and Yunmo Chen and Jingyu Zhang and Haoran Xu and Boyuan Zheng and Philipp Koehn and Daniel Khashabi},
  title = {{The Language Barrier: Dissecting Safety Challenges of LLMs in Multilingual Contexts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=lrnvSk8XaU},
}
Figure