Tree-based Dialogue Reinforced Policy Optimization for Red-Teaming Attacks
Ruohao Guo, Afshin Oroojlooy, Roshan Sridhar, Miguel Ballesteros, Alan Ritter, Dan Roth
TL;DR
This work reframes multi-turn red-teaming of LLMs as a goal-directed sequential decision-making problem and introduces DialTree-RPO, an on-policy reinforcement learning framework augmented with dialogue tree rollout, pruning, and adaptive masking. The method combines a two-stage training regime (SFT followed by RL with a GRPO-based objective) and a bespoke reward function derived from a safety guardrail to efficiently discover diverse, long-horizon attack strategies. Empirical results across 10 target models show DialTree-RPO achieves an average attack success rate around 85% and outperforms existing baselines by roughly 25–27 percentage points, with strong transferability to larger models. These findings highlight substantial vulnerabilities of current LLMs in multi-turn settings and demonstrate a scalable, automated approach for stress-testing safety, with implications for defense and broader multi-turn strategic reasoning tasks.
Abstract
Despite recent rapid progress in AI safety, current large language models remain vulnerable to adversarial attacks in multi-turn interaction settings, where attackers strategically adapt their prompts across conversation turns and pose a more critical yet realistic challenge. Existing approaches that discover safety vulnerabilities either rely on manual red-teaming with human experts or employ automated methods using pre-defined templates and human-curated attack data, with most focusing on single-turn attacks. However, these methods did not explore the vast space of possible multi-turn attacks, failing to consider novel attack trajectories that emerge from complex dialogue dynamics and strategic conversation planning. This gap is particularly critical given recent findings that LLMs exhibit significantly higher vulnerability to multi-turn attacks compared to single-turn attacks. We propose DialTree-RPO, an on-policy reinforcement learning framework integrated with tree search that autonomously discovers diverse multi-turn attack strategies by treating the dialogue as a sequential decision-making problem, enabling systematic exploration without manually curated data. Through extensive experiments, our approach not only achieves more than 25.9% higher ASR across 10 target models compared to previous state-of-the-art approaches, but also effectively uncovers new attack strategies by learning optimal dialogue policies that maximize attack success across multiple turns.
