Introduction
Large Language Models (LLMs) like GPT-4o and Llama3 have demonstrated remarkable multilingual capabilities, often outperforming specialized translation tools. However, their safety alignment—the process of ensuring they do not generate harmful, biased, or illegal content—has not kept pace with their linguistic breadth. Current safety training, primarily driven by Reinforcement Learning from Human Feedback (RLHF), is largely conducted in single-language settings, with a heavy bias toward English.
This research, conducted by a team from the University of Alberta and the University of Tokyo, identifies a critical vulnerability in this "narrow" safety alignment. By introducing Multilingual Blending (MB), the researchers demonstrate that mixing multiple languages within a single malicious query can effectively "confuse" an LLM's safety guardrails, leading to successful jailbreaks even in state-of-the-art models.
The Vulnerability of Single-Language Safety
The fundamental issue lies in the discrepancy between an LLM's broad multilingual training data and its narrow safety alignment data. While a model might recognize a "bad word" or a harmful intent in English, Chinese, or German individually, it often fails to synthesize these patterns when they are interleaved.
As shown in the figure above, GPT-4o correctly identifies and refuses a harmful request regarding coordinated inauthentic behavior when presented in English, Chinese, German, or Japanese separately. However, when the same request is "blended" using a mixture of these four languages, the model's safety mechanism fails, and it provides a detailed, unsafe response.
Methodology: The Multilingual Blending Workflow
The researchers developed a systematic approach to exploit this vulnerability, consisting of two primary phases: mixed-language query generation and mixed-language response instruction.
1. Mixed-language Query Generation
The process begins with a malicious prompt in English. This prompt is tokenized, and each token is randomly translated into one of several target languages. To ensure that the resulting "linguistic cocktail" still carries the original malicious intent, the authors employ a semantic similarity check. They use an embedding model to compare the original English prompt with a "back-translated" version of the mixture. Only prompts that maintain high semantic fidelity are used in the attack.
2. Mixed-language Response Instruction
To further tax the model's alignment, the attack includes a system prompt or instruction forcing the LLM to respond in the same mixed-language style. This forces the model to engage deeply with the complex linguistic pattern during the generation process, which the researchers hypothesize consumes the cognitive resources typically used for safety filtering.
Experimental Setup and Datasets
The study evaluated the MB technique using 120 malicious samples across six domains: Harmful Instruction, Hate Speech, Explicit Content, Misinformation, Sensitive Information, and Malware. These samples were sourced from established benchmarks like MultiJail, AdvBench, and jailbreakHub.
The experiments spanned 55 different languages, categorized by resource level (High to Extremely-Low), morphology (Isolating, Fusional, Agglutinative), and language family (Germanic, Romance, Slavic, etc.). Safety was evaluated by back-translating the LLM's responses into English and using the Perspective API to detect toxic content.
Key Findings and Results
The results reveal a significant gap in current LLM safety. While GPT-4o had a 0% bypass rate for English-only malicious queries, the MB technique achieved a bypass rate of up to 31.09%. GPT-3.5 proved even more susceptible, with bypass rates soaring to a peak of 67.23%. Open-source models like Llama3-70B and Mixtral-8x7B also showed vulnerabilities, with Mixtral reaching a bypass rate of 42.37% under specific conditions.
The "Confusion" Rationale
The researchers used Shannon entropy to measure the model's uncertainty. They found that LLMs exhibit significantly higher uncertainty when processing mixed-language prompts. This suggests that the complexity of the input expands the "search space" for the next token to a point where the model's learned "refusal" patterns are no longer triggered.
The Sweet Spot of Complexity
Interestingly, the bypass rate typically peaks when mixing approximately four languages. Using too few languages makes the malicious intent too obvious for the safety filter, while using too many can introduce enough noise to obscure the intent from the model itself, leading to a "failed" jailbreak.
Conclusion and Future Directions
The "Multilingual Blending" attack exposes a major blind spot in current AI safety research. It demonstrates that safety alignment does not automatically generalize across the linguistic combinations that a polyglot model is capable of processing. The authors advocate for a shift toward "multilingual-aware" safety training, incorporating mixed-language scenarios directly into the RLHF process to close this "polyglot loophole."
Summary updated