LIAR: Leveraging Inference Time Alignment (Best-of-N) to Jailbreak LLMs in Seconds

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Beetham, James, Chakraborty, Souradip, Wang, Mengdi, Huang, Furong, Bedi, Amrit Singh, Shah, Mubarak
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911037673963520
author Beetham, James
Chakraborty, Souradip
Wang, Mengdi
Huang, Furong
Bedi, Amrit Singh
Shah, Mubarak
author_facet Beetham, James
Chakraborty, Souradip
Wang, Mengdi
Huang, Furong
Bedi, Amrit Singh
Shah, Mubarak
contents Jailbreak attacks expose vulnerabilities in safety-aligned LLMs by eliciting harmful outputs through carefully crafted prompts. Existing methods rely on discrete optimization or trained adversarial generators, but are slow, compute-intensive, and often impractical. We argue that these inefficiencies stem from a mischaracterization of the problem. Instead, we frame jailbreaks as inference-time misalignment and introduce LIAR (Leveraging Inference-time misAlignment to jailbReak), a fast, black-box, best-of-$N$ sampling attack requiring no training. LIAR matches state-of-the-art success rates while reducing perplexity by $10\times$ and Time-to-Attack from hours to seconds. We also introduce a theoretical "safety net against jailbreaks" metric to quantify safety alignment strength and derive suboptimality bounds. Our work offers a simple yet effective tool for evaluating LLM robustness and advancing alignment research.
format Preprint
id arxiv_https___arxiv_org_abs_2412_05232
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LIAR: Leveraging Inference Time Alignment (Best-of-N) to Jailbreak LLMs in Seconds
Beetham, James
Chakraborty, Souradip
Wang, Mengdi
Huang, Furong
Bedi, Amrit Singh
Shah, Mubarak
Computation and Language
Jailbreak attacks expose vulnerabilities in safety-aligned LLMs by eliciting harmful outputs through carefully crafted prompts. Existing methods rely on discrete optimization or trained adversarial generators, but are slow, compute-intensive, and often impractical. We argue that these inefficiencies stem from a mischaracterization of the problem. Instead, we frame jailbreaks as inference-time misalignment and introduce LIAR (Leveraging Inference-time misAlignment to jailbReak), a fast, black-box, best-of-$N$ sampling attack requiring no training. LIAR matches state-of-the-art success rates while reducing perplexity by $10\times$ and Time-to-Attack from hours to seconds. We also introduce a theoretical "safety net against jailbreaks" metric to quantify safety alignment strength and derive suboptimality bounds. Our work offers a simple yet effective tool for evaluating LLM robustness and advancing alignment research.
title LIAR: Leveraging Inference Time Alignment (Best-of-N) to Jailbreak LLMs in Seconds
topic Computation and Language
url https://arxiv.org/abs/2412.05232