Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings

Yue Huang, Jingyu Tang, Dongping Chen, Bingda Tang, Yao Wan +3 more
6/19/2024
cs.CL

No official code found. Best implementation: HowieHwong/ObscurePrompt (4 stars, last commit 2024-06-23).

Abstract

Recently, Large Language Models (LLMs) have garnered significant attention for their exceptional natural language processing capabilities. However, concerns about their trustworthiness remain unresolved, particularly in addressing ``jailbreaking'' attacks on aligned LLMs. Previous research predominantly relies on scenarios involving white-box LLMs or specific, fixed prompt templates, which are often impractical and lack broad applicability. In this paper, we introduce a straightforward and novel method called ObscurePrompt for jailbreaking LLMs, inspired by the observed fragile alignments in Out-of-Distribution (OOD) data. Specifically, we first formulate the decision boundary in the jailbreaking process and then explore how obscure text affects LLM's ethical decision boundary. ObscurePrompt starts with constructing a base prompt that integrates well-known jailbreaking techniques. Powerful LLMs are then utilized to obscure the original prompt through iterative transformations, aiming to bolster the attack's robustness. Comprehensive experiments show that our approach substantially improves upon previous methods in terms of attack effectiveness, maintaining efficacy against two prevalent defense mechanisms.

View on arXivView PDF

Code Implementations(1)

ObscurePrompt: Jailbreaking Large Language Models via Obscure Input

40PythonJun 15, 20242 years ago
jailbreaklarge-language-modelstrustworthy-ai

Similar Papers

Cite this paper

@article{huang2024jailbreaking,
  title  = {Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings},
  author = {Yue Huang and Jingyu Tang and Dongping Chen and Bingda Tang and Yao Wan and Lichao Sun and Philip S. Yu and Xiangliang Zhang},
  year   = {2024},
  eprint = {2406.13662},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13662v2}
}

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

Discussion