Skip to main content
QUICK REVIEW

[Paper Review] Multilingual Jailbreak Challenges in Large Language Models

Yue Deng, Wenxuan Zhang|arXiv (Cornell University)|Oct 10, 2023
Topic ModelingComputer Science15 citations
TL;DR

The paper reveals multilingual jailbreak vulnerabilities in LLMs, introduces MultiJail, and proposes Self-Defence to generate multilingual safety data and reduce unsafe outputs across languages.

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. In this study, we reveal the presence of multilingual jailbreak challenges within LLMs and consider two potential risky 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 about three times the likelihood of encountering harmful content compared to high-resource languages, with both ChatGPT and GPT-4. In the intentional scenario, multilingual prompts can exacerbate the negative impact of malicious instructions, with astonishingly high rates of unsafe output: 80.92\% for ChatGPT and 40.71\% for GPT-4. To handle such a challenge in the multilingual context, we propose a novel extsc{Self-Defense} framework that automatically generates multilingual training data for safety fine-tuning. Experimental results show that ChatGPT fine-tuned with such data can achieve a substantial reduction in unsafe content generation. Data is available at \url{https://github.com/DAMO-NLP-SG/multilingual-safety-for-LLMs}.

Motivation & Objective

  • Identify and characterize multilingual jailbreak risks in LLMs under unintentional and intentional scenarios.
  • Create and release the first multilingual jailbreak dataset MultiJail.
  • Analyze language-resource effects and translation-based attacks on safety in multilingual settings.
  • Propose and evaluate a self-generated multilingual safety data augmentation framework (Self-Defence) to improve safety without human annotation.

Proposed method

  • Curate a multilingual unsafe prompt dataset covering 30 languages by translating English prompts.
  • Evaluate safety of ChatGPT and GPT-4 across languages using human and GPT-4 evaluators.
  • Construct and analyze MultiJail with 3150 samples across 10 languages.
  • Simulate unintentional and intentional jailbreak scenarios including multilingual adaptive attacks.
  • Develop Self-Defence to generate multilingual safety data via LLMs and translate to multiple languages for fine-tuning.
  • Assess trade-offs between safeness and usefulness after safety fine-tuning.

Experimental results

Research questions

  • RQ1How prevalent are unsafe outputs when prompting LLMs in non-English languages (unintentional scenario)?
  • RQ2How do multilingual prompts interact with English malicious instructions to enable jailbreaking (intentional scenario)?
  • RQ3Can a self-generated, multilingual safety data augmentation strategy improve safety without human annotation (Self-Defence)?
  • RQ4What is the trade-off between safety and model usefulness after multilingual safety fine-tuning?

Key findings

  • Unsafe content increases as language resources decrease (e.g., Bengali: 28.25% for ChatGPT in unintentional scenario).
  • Unintentional multilingual unsafe rate: ChatGPT avg 10.19%, GPT-4 avg 5.96%.
  • Intentional multilingual attacks yield high unsafe rates: ChatGPT 80.92%, GPT-4 40.71% (averaged).
  • Multilingual adaptive attacks achieve substantial unsafe rates: ChatGPT 44.76%, GPT-4 27.30%.
  • Self-Defence reduces unsafe rates: unintentional from 10.19% to 3.95%; intentional from 80.92% to 60.00% for ChatGPT.
  • Self-Defence introduces a safeness-usability trade-off, improving safety but potentially reducing overall usefulness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.