TL;DR
While Large Language Models (LLMs) are increasingly "safety-aligned" in English, they remain vulnerable to harmful prompts in other languages. This paper demonstrates that low-resource languages can act as a natural "jailbreak," bypassing safety filters, and proposes SELF-DEFENSE, a framework that uses the LLM itself to generate multilingual safety training data to close this gap.
Introduction
Safety alignment—the process of ensuring an LLM refuses to generate harmful, illegal, or biased content—is currently very English-centric. Most safety training relies on techniques like Reinforcement Learning from Human Feedback (RLHF) using predominantly English datasets.
However, LLMs are inherently multilingual due to their massive pre-training corpora. This creates a dangerous mismatch: the model has the capability to understand and generate harmful content in many languages, but its safety guardrails are primarily tuned for English. The authors investigate how this discrepancy leads to "multilingual jailbreaks," where a model that refuses a harmful request in English might happily comply if asked the same thing in Swahili or Javanese.
Risk Scenarios and Datasets
The researchers explored two primary risk scenarios:
- Unintentional Scenario: A benign user asks a harmful question in their native (non-English) language, and the model inadvertently bypasses its safety mechanisms.
- Intentional Scenario: A malicious actor deliberately combines a known English jailbreak instruction with a harmful query translated into another language to maximize the attack's success.
To evaluate these risks, the authors introduced MultiJail, the first manually-created multilingual jailbreak dataset. It consists of 315 harmful queries translated by native speakers into 9 non-English languages, categorized by resource availability:
- High-Resource (HRL): Chinese, Italian, Vietnamese.
- Medium-Resource (MRL): Arabic, Korean, Thai.
- Low-Resource (LRL): Bengali, Swahili, Javanese.
Key Findings
The study reveals a clear inverse relationship between language resources and safety. The less data available for a language during pre-training, the more likely the model is to bypass its safety training.
- Vulnerability: In the unintentional scenario, low-resource languages were about three times more likely to trigger unsafe content than high-resource languages in both ChatGPT and GPT-4.
- Attack Success: In the intentional scenario, using non-English prompts significantly boosted the effectiveness of standard jailbreak techniques. ChatGPT exhibited an alarming 80.92% unsafe rate across non-English languages, while GPT-4's unsafe rate jumped from ~28% (English) to over 40% (multilingual average).
These results suggest that the model's reasoning and knowledge are cross-lingual, but its safety filters are not. Safety appears to be a "surface" behavior often tied to specific linguistic patterns rather than a deeply learned property.
The SELF-DEFENSE Framework
To address this vulnerability without relying on expensive human translators, the authors introduced SELF-DEFENSE, an automated pipeline:
- Seed Generation: Start with a small set of English "safe" and "unsafe" examples.
- Augmentation: Use the LLM to generate a larger, diverse set of similar English examples.
- Translation: Use the LLM’s own multilingual capabilities to translate these examples into various target languages.
- Fine-tuning: Fine-tune the model on this synthetic, multilingual safety dataset.
Fine-tuning ChatGPT with the SELF-DEFENSE framework proved highly effective. It reduced the unintentional unsafe rate from 10.19% to 3.95%, and the intentional unsafe rate dropped from 80.92% to 60.00%.
Limitations and Future Work
While SELF-DEFENSE significantly improves multilingual safety, it introduces a safety-utility trade-off, where increasing the model's refusal rate for harmful queries can slightly decrease its performance on general tasks. Additionally, the framework relies on the model's ability to translate its own training data, which may suffer in quality for extremely low-resource languages. Finally, as malicious users continuously develop new ways to bypass filters, ongoing automated red-teaming remains essential.
Summary updated