VERA: Variational Inference Framework for Jailbreaking Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lochab, Anamika, Yan, Lu, Pynadath, Patrick, Zhang, Xiangyu, Zhang, Ruqi
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913175217111040
author Lochab, Anamika
Yan, Lu
Pynadath, Patrick
Zhang, Xiangyu
Zhang, Ruqi
author_facet Lochab, Anamika
Yan, Lu
Pynadath, Patrick
Zhang, Xiangyu
Zhang, Ruqi
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_22666
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle VERA: Variational Inference Framework for Jailbreaking Large Language Models
Lochab, Anamika
Yan, Lu
Pynadath, Patrick
Zhang, Xiangyu
Zhang, Ruqi
Cryptography and Security
Computation and Language
Machine Learning
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.
title VERA: Variational Inference Framework for Jailbreaking Large Language Models
topic Cryptography and Security
Computation and Language
Machine Learning
url https://arxiv.org/abs/2506.22666