Skip to content

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

License

Notifications You must be signed in to change notification settings

DAMO-NLP-SG/multilingual-safety-for-LLMs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multilingual Jailbreak Challenges in Large Language Models

📄 Paper • 🤗 Dataset

This repo contains the data for our paper "Multilingual Jailbreak Challenges in Large Language Models" in ICLR 2024.

Annotation Statistics

We collected a total of 315 English unsafe prompts and annotated them into nine non-English languages. The languages were categorized based on resource availability, as shown below:

High-resource languages: Chinese (zh), Italian (it), Vietnamese (vi)

Medium-resource languages: Arabic (ar), Korean (ko), Thai (th)

Low-resource languages: Bengali (bn), Swahili (sw), Javanese (jv)

Introduction

We identify the presence of multilingual jailbreak challenges within LLMs and propose to study them under two potential 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 attack LLMs deliberately.

Dataset

We carefully gather English harmful queries and manually translate them by native speakers into 9 non-English languages, ranging from high-resource to low-resource. This leads us to the creation of the first multilingual jailbreak dataset called MultiJail. The prompt in this dataset can directly serve for the unintentional scenario, while we also simulate intentional scenario by combining the prompt with an English malicious instruction.

The language categories and their corresponding languages are as follows: High-resource: Chines (zh), Italic (it), Vietnamese (vi); Medium-resource: Arabic (ar), Korean (ko), Thai (th); Low-resource: Bengali (bn), Swahili (sw), Javanese (jv).

The malicious instruction used in this work is AIM.

Result

Self-Defence

To handle such a challenge in the multilingual context, we propose a novel Self-Defence 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.

Ethics Statement

Our research investigates the safety challenges of LLMs in multilingual settings. We are aware of the potential misuse of our findings and emphasize that our research is solely for academic purposes and ethical use. Misuse or harm resulting from the information in this paper is strongly discouraged. To address the identified risks and vulnerabilities, we commit to open-sourcing the data used in our study. This openness aims to facilitate vulnerability identification, encourage discussions, and foster collaborative efforts to enhance LLM safety in multilingual contexts. Furthermore, we have developed the SELF-DEFENSE framework to address multilingual jailbreak challenges in LLMs. This framework automatically generates multilingual safety training data to mitigate risks associated with unintentional and intentional jailbreak scenarios. Overall, our work not only highlights multilingual jailbreak challenges in LLMs but also paves the way for future research, collaboration, and innovation to enhance their safety.

Citation

@inproceedings{
      deng2024multilingual,
      title={Multilingual Jailbreak Challenges in Large Language Models},
      author={Yue Deng and Wenxuan Zhang and Sinno Jialin Pan and Lidong Bing},
      booktitle={The Twelfth International Conference on Learning Representations},
      year={2024},
      url={https://openreview.net/forum?id=vESNKdEMGp}
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published