Introduction
As Large Language Models (LLMs) like GPT-4o and Llama 3 become more integrated into our daily lives, ensuring they don't generate harmful content is a top priority. However, current safety training has a significant blind spot: while models are often "aligned" to be safe in individual languages, they can be surprisingly easy to trick when multiple languages are mixed within a single query. This phenomenon, termed "Multilingual Blending," reveals a critical gap in current "monolingual" safety alignment strategies.
The Problem: Monolingual Safety in a Multilingual World
Most current safety alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF), focus on single-language scenarios, primarily English. However, LLMs are inherently multilingual, trained on massive corpora spanning hundreds of languages. This creates a discrepancy between the models' powerful cross-language generalization and their relatively narrow safety training. In real-world scenarios, multilingual speakers often engage in "code-switching," and this linguistic complexity can be exploited to evade ethical safeguards.
Methodology: Multilingual Blending (MB)
The researchers introduced a scheme called Multilingual Blending to evaluate this vulnerability. The process involves three main steps:
- Mixed-language Query Generation: A malicious English prompt is tokenized, and each token is randomly translated into one of several target languages (e.g., Chinese, Japanese, German).
- Semantic Verification: To ensure the prompt remains coherent, it is back-translated into English and checked for semantic similarity against the original.
- Safety Evaluation: The model is prompted to respond in the same mixture of languages. The response is then back-translated and evaluated for toxicity using tools like the Perspective API.
Key Findings
The study tested 120 explicit malicious questions across various safety datasets (MultiJail, AdvBench, jailbreakHub) against 55 languages.
The "Confusion" Factor and Complexity
Mixed-language prompts significantly increase the model's uncertainty. Uncertainty scores (measured by Shannon entropy) for mixed-language responses were roughly double those of single-language ones. This suggests that linguistic complexity "distracts" the safety alignment mechanism. Interestingly, there is a "sweet spot" for complexity; bypass rates typically peak when around four languages are mixed. Too few languages are easily caught, while too many can garble the prompt beyond the model's understanding.
Vulnerability Across Models
The quantitative findings are a wake-up call for AI safety researchers. For GPT-4o, the bypass rate for English malicious queries was 0%, but under Multilingual Blending, it soared to over 40%.
Other models showed similar vulnerabilities:
- GPT-3.5: Bypass rates reached 67.23%.
- Open-Source Models: Mixtral-8x7B and Qwen-1.5-72B saw bypass rates jump from ~3% in English to over 36-42%.
- Llama 3: Showed more resilience (14% bypass), often by defaulting to English responses, which effectively "reset" the safety context.
Conclusion and Future Work
The research highlights that safety alignment is weakest where data is scarcest, particularly in low-resource languages. Furthermore, mixing languages from different morphological types or families is more effective at bypassing safety than mixing closely related languages.
As LLMs become more capable and global, safety evaluations must move beyond single-language testing to embrace the blended reality of human communication. Future work must focus on developing safety alignment strategies that are as robustly multilingual as the models themselves.
Summary updated