Multilingual Jailbreak Challenges in Large Language Models

Yue Deng, Wenxuan Zhang, Sinno Jialin Pan, Lidong Bing
10/1/2023

No official code found. Best implementation: DAMO-NLP-SG/multilingual-safety-for-LLMs (107 stars, MIT, last commit 2024-03-07).

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 \textsc{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}.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2024]Data for "Multilingual Jailbreak Challenges in Large Language Models"

1078Oct 7, 20232 years agoMIT
jailbreakllmmultilingualsafety

Similar Papers

Cite this paper

@article{deng2023multilingual,
  title  = {Multilingual Jailbreak Challenges in Large Language Models},
  author = {Yue Deng and Wenxuan Zhang and Sinno Jialin Pan and Lidong Bing},
  year   = {2023},
  eprint = {2310.06474},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.06474},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.06474.svg)](https://codeofpaper.com/paper/2310.06474)

Discussion