TL;DR
This paper tackles the growing vulnerability of large language models (LLMs) to "jailbreak" attacks, where malicious prompts elicit harmful outputs. The authors introduce novel automated methods, Multilingual GCG and Multilingual AutoDAN, to generate these attack prompts across many languages, revealing that LLMs are significantly more susceptible to multilingual jailbreaks than previously understood.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly used across diverse linguistic and cultural contexts. While these models undergo extensive alignment to ensure safe and helpful behavior, they remain susceptible to "jailbreak" attacks. These attacks involve crafting specific prompts that trick the LLM into bypassing its safety guardrails and generating undesirable content, such as misinformation or harmful instructions. Previous research has primarily focused on English jailbreaks. However, as LLMs become more multilingual, the threat of multilingual jailbreaks, which could evade content moderation and challenge alignment efforts, grows. This paper addresses the critical gap in understanding and automating multilingual jailbreak prompt generation, aiming to uncover LLM vulnerabilities across various languages and inform the development of more robust, globally applicable AI systems.
Methods
The paper introduces two main automated approaches for generating multilingual jailbreak prompts, building upon existing English-based methods:
- Multilingual GCG (Generative Adversarial Suffix Optimization): This method extends the GCG algorithm. Instead of just English, it generates adversarial suffixes for prompts in multiple languages. A key innovation is a graph-based attack method. This approach constructs a graph where nodes represent goal-target language pairs. The system traverses this graph, systematically generating and evaluating multilingual jailbreak suffixes. This allows for the exploitation of cross-lingual transferability of suffixes and aims to increase attack success rates.
- Multilingual AutoDAN (Automated Jailbreak Prompt Generation): This method adapts the AutoDAN framework, which uses genetic algorithms for prompt optimization. The multilingual version incorporates multilingual goals and targets. Two variants are explored: one that samples from a larger set of languages (CSW17) and another that focuses on languages known to be better supported by specific LLMs (CSW5). A second approach, ML-AutoDAN (language), uses multilingual reference prompts and a genetic algorithm to search for effective prompts in specific languages.
Datasets
The experiments utilize a dataset of 520 harmful behaviors, each defined by a goal and a target completion, originally introduced by Zou et al. (2023). These goals and targets are translated into 17 different languages, including Chinese, Italian, Vietnamese, Korean, and Javanese. These languages are categorized by resource level: high-resource (Chinese, Italian, Vietnamese), medium-resource (Korean), and low-resource (Javanese).
Key Insights and Ideas
- Multilingual Jailbreaks are Highly Effective: The study reveals that LLMs are significantly more vulnerable to multilingual jailbreak prompts than previously assumed, with aggregated attack success rates (ASRs) dramatically increasing compared to baseline English-only attacks.
- Cross-Lingual Suffix Transferability is Powerful: Adversarial suffixes generated in English can be effectively reused across different languages, boosting attack success rates even when the goal prompt is in a non-English language.
- Language-Specific Vulnerabilities Exist: While cross-lingual transfer is strong, the effectiveness of certain suffixes can vary depending on the language pair, suggesting that LLMs have language-specific weaknesses. For instance, some models show lower transferability to Chinese due to linguistic divergence.
- Aggregation is Key: Combining results from multiple language prompts (the "Aggregation" method) consistently leads to the highest attack success rates, highlighting the benefit of a broad multilingual attack strategy.
- Graph-Based Exploration Enhances Attacks: The novel graph-based approach for Multilingual GCG systematically explores language pairs and significantly boosts ASRs, demonstrating the value of structured, automated exploration.
- Model Capabilities Matter for Multilingual Attacks: The success of ML-AutoDAN (CSW5) shows that tailoring language selection to an LLM's known multilingual capabilities can improve attack efficacy.
Key Results
- Multilingual GCG: The Aggregation method for Multilingual GCG achieved significantly higher ASRs across models. For Mistral-7B, ASRs increased from a baseline of 61.9% to 95.6% with aggregation. For Llama-3.1-8B, it rose from 31.9% to 85.0%, and for Qwen2.5-7B, from 38.5% to 86.5%. The graph-based method further improved ASRs, reaching up to 95.7% for Mistral-7B.
- Multilingual AutoDAN: Mistral-7B consistently showed the highest ASRs, with ML-AutoDAN (CSW5) reaching 99.4%. Llama-3.1-8B showed marked improvement from baseline AutoDAN (88.5%) to ML-AutoDAN (CSW5) (95.2%). Qwen2.5-7B's highest ASR (93.8%) was achieved with ML-AutoDAN (Portuguese), suggesting language-specific vulnerabilities.
Limitations and Future Work
- Single Model Focus: The study primarily focuses on generating prompts for a single LLM at a time and does not extensively evaluate the transferability of these generated prompts across different LLM architectures.
- Text-Only LLMs: The research is limited to text-based LLMs. Extending automated multilingual jailbreak prompt generation to multimodal LLMs (which handle text, images, audio, etc.) is a promising future direction.
- Further Statistical Analysis: The authors acknowledge that while their primary metric (attack success rate) is largely deterministic under fixed decoding settings, additional statistical analysis, particularly for the graph-based attack method, could provide further insights.
- Understanding Language-Specific Variability: The paper suggests that future work should investigate why certain languages (like Portuguese for Qwen2.5) show higher vulnerability, potentially due to differences in pretraining corpora and alignment data.
Summary updated