English

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

Computation and Language 2025-07-08 v3

Abstract

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-NN sampling attack requiring no training. LIAR matches state-of-the-art success rates while reducing perplexity by 10×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.

Keywords

Cite

@article{arxiv.2412.05232,
  title  = {LIAR: Leveraging Inference Time Alignment (Best-of-N) to Jailbreak LLMs in Seconds},
  author = {James Beetham and Souradip Chakraborty and Mengdi Wang and Furong Huang and Amrit Singh Bedi and Mubarak Shah},
  journal= {arXiv preprint arXiv:2412.05232},
  year   = {2025}
}