Pair-Aware Optimization: Coordinating Exploration and Refinement for Jailbreaking LLM Agents
Juanyang Xu, Zheng Wang, Xingyu Zhao, Siddartha Khastgir, Andi Zhang
Key points
From the paper's conclusion- We further investigate agent jailbreaking from a more general stochastic-generation perspective, where the same adversarial input can induce diverse reasoning trajectories and actions that a single greedy output cannot capture.
Abstract
Large Language Model (LLM) agents are vulnerable to adversarial inputs that induce attacker-specified malicious behaviors, commonly referred to as jailbreaking. Existing optimization-based jailbreak attacks primarily employ first-order (FO) methods that leverage gradient information or zeroth-order (ZO) methods that rely on function-value feedback. However, their complementarity and optimization ordering remain underexplored. We systematically investigate four strategies: pure ZO, pure FO, ZO->FO, and FO->ZO, and develop a ZO-FO framework that explores adversarial prefixes through ZO optimization and refines their corresponding suffixes through FO optimization. To coordinate the two processes, we introduce Pair-aware optimization, which retains multiple prefix candidates, conditionally refines their suffixes and selects among the resulting prefix-suffix pairs. We further investigate agent jailbreaking from a more general stochastic-generation perspective, where the same adversarial input can induce diverse reasoning trajectories and actions that a single greedy output cannot capture. Accordingly, we adopt consistent stochastic decoding during both optimization and evaluation. Experiments across malicious-instruction and malicious-environment benchmarks demonstrate that hybrid optimization improves attack effectiveness over single-optimizer methods, while optimization order substantially influences performance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Survey on the Optimization of Large Language Model-based AgentsACM Computing Surveys · 2026
- Budgeted Attack Scheduling for LLM Red-Teaming: The Roles of Static Priors, Semantic Guidance, and Online FeedbackarXiv · 2026
- From Expected Harmfulness to Likelihood: A Probabilistic Reformulation of Jailbreaking LLM AgentsarXiv · 2026
- Beyond Attack Success Rate: Cost-Aware Metric for Evaluating Iterative LLM JailbreaksarXiv · 2026
- JailBound: FOL-Guided Jailbreak Evaluation for Exploring LLM Behavioral BoundariesarXiv · 2026
- Diagnose Before You Refine: Multi-Dimensional Judge Feedback for Query-Efficient Jailbreak AttacksarXiv · 2026