Abstract
While large language models (LLMs) exhibit remarkable capabilities across a wide range of tasks, they pose potential safety concerns, such as the "jailbreak" problem, wherein malicious instructions can manipulate LLMs to exhibit undesirable behavior. Although several preventive measures have been developed to mitigate the potential risks associated with LLMs, they have primarily focused on English data. In this study, we reveal the presence of multilingual jailbreak challenges within LLMs and consider two potential risk scenarios: unintentional and intentional. The unintentional scenario involves users querying LLMs using non-English prompts and inadvertently bypassing the safety mechanisms, while the intentional scenario concerns malicious users combining malicious instructions with multilingual prompts to deliberately attack LLMs. The experimental results reveal that in the unintentional scenario, the rate of unsafe content increases as the availability of languages decreases. Specifically, low-resource languages exhibit three times the likelihood of encountering harmful content compared to high-resource languages. To handle such a challenge, we propose a novel SELF-DEFENSE framework that automatically generates multilingual training data for safety fine-tuning.
Introduction: The Multilingual Safety Gap
Most safety training for LLMs, such as Reinforcement Learning from Human Feedback (RLHF), is heavily centered on English. However, these models are pre-trained on massive, diverse multilingual corpora. This creates a dangerous "mismatched generalization": the model has the capability to understand and generate harmful content in hundreds of languages, but it has only been constrained to refuse such content in a few.
The researchers categorize the resulting risks into two scenarios:
- Unintentional: A well-meaning user asks a question in a low-resource language (like Swahili or Bengali) and the model inadvertently provides harmful advice because it hasn't been taught to recognize that specific prompt as "unsafe."
- Intentional: A malicious actor deliberately uses translation or combines English "jailbreak" templates (like the infamous "AIM" persona) with non-English queries to force the model into prohibited behaviors.
Empirical Evaluation and the Resource Inverse Law
The researchers conducted a study across 30 languages to see how "unsafe rates" correlate with language resources. They performed a deep dive into 9 specific languages using both human-translated prompts and automated "jailbreak" attacks.
A key finding is the Resource Inverse Law: there is a direct correlation between how "low-resource" a language is and how likely it is to trigger a jailbreak. In the unintentional scenario, low-resource languages were roughly 3x more likely to produce harmful content than high-resource ones. Furthermore, translation itself acts as a weapon; simply translating a malicious instruction into a medium-resource language acts as a highly effective "jailbreak" because the safety guardrails are "thinner" there.
Mitigation: The SELF-DEFENCE Framework
To fix the gap without the massive cost of hiring native speakers for every language, the authors proposed the SELF-DEFENCE framework. Inspired by the "Self-Instruct" method, it follows a four-step pipeline:
- Seed Generation: Start with a small set of English "unsafe" and "general" examples.
- Augmentation: Use the LLM to generate a larger, diverse set of English safety-related instructions.
- Translation: Use the LLM’s own multilingual capabilities to translate these pairs into target languages.
- Fine-tuning: Fine-tune the model on this synthetic, multilingual safety dataset.
After applying the SELF-DEFENCE framework, the unsafe rate for ChatGPT in unintentional scenarios dropped from 10.19% to 3.95%. In intentional attack scenarios, the unsafe rate fell from 80.92% to 60.00%.
Discussion and Limitations
While SELF-DEFENCE is effective, there is a clear "Safety Tax"—a trade-off between safety and utility. As safety training data increases, the model's performance on general tasks (like common sense reasoning) can decline due to "over-refusal," where the model becomes over-cautious and refuses harmless queries.
Future work should focus on generating more nuanced, explanatory refusals rather than simple canned messages. Additionally, while SELF-DEFENCE works well, it still relies on the model's internal translation ability; it cannot bridge the gap for languages the model is completely ignorant of.
Summary updated