SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.13662 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
HowieHwong/ObscurePrompt canonical 3 of 4
FunctionStatusWhere it lives
check_keywords_in_res Ran HowieHwong/ObscurePrompt/compute_res.py
pointer only (licence: NONE) · get_code("592e2a2589ee49a9")
check_keywords_in_res_ensemble Ran HowieHwong/ObscurePrompt/compute_res.py
pointer only (licence: NONE) · get_code("53d5359a3fe29564")
get_combinations Ran HowieHwong/ObscurePrompt/compute_res.py
pointer only (licence: NONE) · get_code("b00f44b4cdd4ac43")
get_res Not yet run HowieHwong/ObscurePrompt/preprocess/obscure_generation.py
pointer only (licence: NONE) · get_code("df3495a55bdcd3cd")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2406.13662")
get_code_for_paper("2406.13662")
have("2406.13662")

Connect an agent — have() is free.