Distract Large Language Models for Automatic Jailbreak Attack

Zeguan Xiao, Yan Yang, Guanhua Chen, Yun Chen
3/13/2024
cs.CRcs.AIcs.CL

No official code found. Best implementation: sufenlp/AttanttionShiftJailbreak (6 stars, last commit 2024-10-01). 1 more below.

Abstract

Extensive efforts have been made before the public release of Large language models (LLMs) to align their behaviors with human values. However, even meticulously aligned LLMs remain vulnerable to malicious manipulations such as jailbreaking, leading to unintended behaviors. In this work, we propose a novel black-box jailbreak framework for automated red teaming of LLMs. We designed malicious content concealing and memory reframing with an iterative optimization algorithm to jailbreak LLMs, motivated by the research about the distractibility and over-confidence phenomenon of LLMs. Extensive experiments of jailbreaking both open-source and proprietary LLMs demonstrate the superiority of our framework in terms of effectiveness, scalability and transferability. We also evaluate the effectiveness of existing jailbreak defense methods against our attack and highlight the crucial need to develop more effective and practical defense strategies.

View on arXivView PDF

Code Implementations(2)

60Shell, PythonDec 12, 20232 years ago

Extending the Distract Large Language Models for Automatic Jailbreak Attack paper by integrating chain-of-thought prompting and implementing Fastchat support for new models

20Shell, PythonFeb 25, 20251 years ago

Similar Papers

Cite this paper

@article{xiao2024distract,
  title  = {Distract Large Language Models for Automatic Jailbreak Attack},
  author = {Zeguan Xiao and Yan Yang and Guanhua Chen and Yun Chen},
  year   = {2024},
  eprint = {2403.08424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.08424v2}
}

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/2403.08424.svg)](https://codeofpaper.com/paper/2403.08424)

Discussion