From Expected Harmfulness to Likelihood: A Probabilistic Reformulation of Jailbreaking LLM Agents
Juanyang Xu, Zheng Wang, Xingyu Zhao, Siddartha Khastgir, Andi Zhang
Key points
From the paper's conclusion- We establish a precise connection between these two approaches through a probabilistic reformulation.
Abstract
When the harmfulness of an LLM agent's output can be quantified, a natural jailbreaking objective is to maximize expected harmfulness over admissible input modifications. An alternative approach constructs or selects harmful target outputs and modifies the input to increase their likelihood. We establish a precise connection between these two approaches through a probabilistic reformulation. Specifically, we show that the gradient of the logarithm of expected harmfulness with respect to the input equals the expected input gradient of the model's log-likelihood under a harmfulness reweighted output distribution. This identity provides a unified interpretation of expected harmfulness and target likelihood optimization. Building on this connection, we propose OPUR, a sampling distribution designed to generate highly harmful target outputs and use the resulting samples to guide likelihood-based input optimization. Experiments demonstrate the effectiveness of the resulting method in jailbreaking LLM agents.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ECHO: Replacing the Compliance Proxy with Response Harmfulness in Optimization-Based Jailbreak AttackarXiv · 2026
- Characterizing When Language Models Take Harmful Actions to Protect Their Assigned GoalsarXiv · 2026
- Refusal Is Not Robustness: Measuring Harmful Reachability in Autoregressive Language ModelsarXiv · 2026
- Pair-Aware Optimization: Coordinating Exploration and Refinement for Jailbreaking LLM AgentsarXiv · 2026
- Bait: Mitigating Harmful Agentic Reinforcement Learning via Probing Reward FunctionarXiv · 2026
- Diagnose Before You Refine: Multi-Dimensional Judge Feedback for Query-Efficient Jailbreak AttacksarXiv · 2026