English

VERA: Variational Inference Framework for Jailbreaking Large Language Models

Cryptography and Security 2025-11-07 v2 Computation and Language Machine Learning Machine Learning

Abstract

The rise of API-only access to state-of-the-art LLMs highlights the need for effective black-box jailbreak methods to identify model vulnerabilities in real-world settings. Without a principled objective for gradient-based optimization, most existing approaches rely on genetic algorithms, which are limited by their initialization and dependence on manually curated prompt pools. Furthermore, these methods require individual optimization for each prompt, failing to provide a comprehensive characterization of model vulnerabilities. To address this gap, we introduce VERA: Variational infErence fRamework for jAilbreaking. VERA casts black-box jailbreak prompting as a variational inference problem, training a small attacker LLM to approximate the target LLM's posterior over adversarial prompts. Once trained, the attacker can generate diverse, fluent jailbreak prompts for a target query without re-optimization. Experimental results show that VERA achieves strong performance across a range of target LLMs, highlighting the value of probabilistic inference for adversarial prompt generation.

Keywords

Cite

@article{arxiv.2506.22666,
  title  = {VERA: Variational Inference Framework for Jailbreaking Large Language Models},
  author = {Anamika Lochab and Lu Yan and Patrick Pynadath and Xiangyu Zhang and Ruqi Zhang},
  journal= {arXiv preprint arXiv:2506.22666},
  year   = {2025}
}

Comments

Accepted by NeurIPS 2025

R2 v1 2026-07-01T03:37:24.656Z