Skip to main content
QUICK REVIEW

[Paper Review] A Cross-Language Investigation into Jailbreak Attacks in Large Language Models

Jie Li, Yi Liu|arXiv (Cornell University)|Jan 30, 2024
Hate Speech and Cyberbullying DetectionComputer Science7 citations
TL;DR

The paper constructs a semantic-preserving multilingual jailbreak dataset and evaluates multilingual jailbreak defenses across open-source and commercial LLMs, revealing a strong mitigation effect from fine-tuning (96.2% attack reduction).

ABSTRACT

Large Language Models (LLMs) have become increasingly popular for their advanced text generation capabilities across various domains. However, like any software, they face security challenges, including the risk of 'jailbreak' attacks that manipulate LLMs to produce prohibited content. A particularly underexplored area is the Multilingual Jailbreak attack, where malicious questions are translated into various languages to evade safety filters. Currently, there is a lack of comprehensive empirical studies addressing this specific threat. To address this research gap, we conducted an extensive empirical study on Multilingual Jailbreak attacks. We developed a novel semantic-preserving algorithm to create a multilingual jailbreak dataset and conducted an exhaustive evaluation on both widely-used open-source and commercial LLMs, including GPT-4 and LLaMa. Additionally, we performed interpretability analysis to uncover patterns in Multilingual Jailbreak attacks and implemented a fine-tuning mitigation method. Our findings reveal that our mitigation strategy significantly enhances model defense, reducing the attack success rate by 96.2%. This study provides valuable insights into understanding and mitigating Multilingual Jailbreak attacks.

Motivation & Objective

  • Address the lack of a multilingual jailbreak benchmark and evaluation across diverse LLMs.
  • Develop an automated semantic-preserving multilingual dataset for jailbreak prompts in nine languages.
  • Analyze interpretability patterns of multilingual jailbreak responses.
  • Propose and evaluate a mitigation strategy to defend LLMs against multilingual jailbreaks.

Proposed method

  • Develop a novel semantic-preserving algorithm to automatically generate multilingual jailbreak data in nine languages.
  • Translate English malicious questions using Microsoft Translate and filter translations with a similarity-based algorithm.
  • Evaluate jailbreak success rates across multiple LLMs and languages using seven templates and eight forbidden scenarios.
  • Apply interpretability techniques, including attention visualization and representation analysis, to understand multilingual jailbreak behavior.
  • Implement a security fine-tuning mitigation (LoRA) on Vicuna-7B-v1.5 and measure attack-rate reduction.
Figure 1. Example of jailbreak prompt with jailbreak template and malicious question and Jailbreak prompt with malicious question only. These Jailbreak prompts are adopted in our experiments.
Figure 1. Example of jailbreak prompt with jailbreak template and malicious question and Jailbreak prompt with malicious question only. These Jailbreak prompts are adopted in our experiments.

Experimental results

Research questions

  • RQ1RQ1: How effective are multilingual LLM jailbreaks across different LLMs and languages?
  • RQ2RQ2: What variations exist in defense mechanisms of LLMs against jailbreak attempts in different languages?
  • RQ3RQ3: What strategies can mitigate multilingual LLM jailbreaks?

Key findings

  • The multilingual dataset comprises 365 valid multilingual question combinations across nine languages.
  • Higher-parameter LLaMA variants show improved evasion defenses in both intentional and unintentional scenarios.
  • GPT-4 outperforms GPT-3.5 in intentional evasion, but defense improvements in unintentional cases are not as pronounced.
  • A fine-tuning approach (LoRA) on Vicuna-7B-v1.5 significantly reduces attack success by 96.2% without harming model performance.
Figure 2. Example of multilingual LLM jailbreak. The original prompt in English can be identified by LLM but bypasses its safety mechanism when translated into Spanish.
Figure 2. Example of multilingual LLM jailbreak. The original prompt in English can be identified by LLM but bypasses its safety mechanism when translated into Spanish.

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.