Adaptive Prompt Embedding Optimization for LLM Jailbreaking
Miles Q. Li, Benjamin C. M. Fung, Boyang Li, Radin Hamidi Rad, and Ebrahim Bagheri

TL;DR
This paper introduces PEO, a novel white-box jailbreak method that directly optimizes prompt embeddings, maintaining prompt semantics while effectively bypassing aligned LLMs' safety measures.
Contribution
PEO is the first approach to optimize original prompt embeddings directly, preserving prompt appearance and improving attack success over existing methods.
Findings
PEO maintains prompt semantics after optimization.
PEO outperforms existing white-box attack methods.
Quantitative analysis confirms responses stay on topic.
Abstract
Existing white-box jailbreak attacks against aligned LLMs typically append discrete adversarial suffixes to the user prompt, which visibly alters the prompt and operates in a combinatorial token space. Prior work has avoided directly optimizing the embeddings of the original prompt tokens, presumably because perturbing them risks destroying the prompt's semantic content. We propose Prompt Embedding Optimization (PEO), a multi-round white-box jailbreak that directly optimizes the embeddings of the original prompt tokens without appending any adversarial tokens, and show that the concern is unfounded: the optimized embeddings remain close enough to their originals that the visible prompt string is preserved exactly after nearest-token projection, and quantitative analysis shows the model's responses stay on topic for the large majority of prompts. PEO combines continuous embedding-space…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
