TL;DR
Training multi-turn LLM agents with reinforcement learning (RL) is notoriously unstable due to context mismatches and poor credit assignment over long horizons. This paper introduces Reverse-Turn Policy Optimization (RTPO), a framework that stabilizes training by updating turn-level sub-policies in reverse chronological order using on-policy sibling rollouts. RTPO significantly boosts accuracy and tool-use efficiency across complex mathematical reasoning and deep-search benchmarks.
What Problem Does This Paper Address?
Large Language Models are increasingly deployed in multi-turn agentic workflows (such as Tool-Integrated Reasoning), where they must iteratively reason, call external tools, receive environment feedback, and adapt across multiple turns. However, training these agents using standard trajectory-level RL algorithms (like PPO or GRPO) is highly unstable, often leading to severe performance degradation as the number of turns increases.
The authors identify three tightly coupled sources of this instability, all originating from treating multi-turn interactions as a single "flattened" trajectory:
- Rollout-Training Context Mismatch: During rollout, models often use truncated or summarized contexts to manage token limits. During training, standard pipelines recompute token probabilities using the full concatenated history, biasing the importance-sampling ratio.
- Weak Turn-Level Credit Assignment: Under sparse terminal rewards (e.g., a single success/failure signal at the very end), a single trajectory-level advantage is applied uniformly across all turns. This obscures whether a specific turn's tool call was brilliant or catastrophic.
- Long-Horizon Policy Drift: In asynchronous training, shorter trajectories finish and update the policy first. Longer trajectories, generated under an older policy version, become off-policy by the time they are optimized, causing standard token-level clipping mechanisms to fail.
The interplay of these three training instabilities is illustrated in Figure 1.
Methods
To resolve these issues, the authors propose Reverse-Turn Policy Optimization (RTPO). Instead of optimizing the entire flattened trajectory at once, RTPO decomposes the episode into a turn-boundary Markov Decision Process (MDP) and optimizes each turn's sub-policy independently in temporal reverse order (backward induction).
The key components of the RTPO pipeline (shown in Figure 2) include:
- Sparse Reverse Trees: For a given turn $k$, the environment is forked from an initial "trunk" trajectory to generate $G-1$ sibling rollouts. This creates a state-matched local baseline to isolate the exact causal impact of that turn's action, eliminating upstream state bias.
- On-Policy Continuation: To eliminate policy drift, downstream turns ($k+1$ to $K-1$) are re-generated on-policy using the already-updated downstream models. This ensures the trajectory-level importance sampling weight remains exactly 1 for downstream steps, avoiding variance explosion.
- Selective Gradient Updates: Gradients are only calculated and applied to the output tokens of the current turn being optimized; prefix and downstream tokens are masked out to maintain causal consistency.
Datasets
The authors evaluated RTPO across 12 distinct experiments spanning mathematical reasoning, knowledge-intensive question answering, and stateful tool manipulation:
- Mathematical Reasoning: Trained on the MATH dataset and evaluated zero-shot on GSM8K, MATH-500, AMC23, AIME24, AIME25, and OE-Math.
- Knowledge Reasoning / Deep Search: Trained on a hard-search dataset from SimpleDeepSearcher and WebSailor, and evaluated on HotpotQA, 2WikiMultiHopQA, GAIA, WebWalkerQA, Humanity's Last Exam (HLE), and XBench.
- Stateful Tool-Agent Evaluation: Evaluated on the $\tau^3$-Airline environment, which simulates interacting with a live airline database.
Key Insights and Ideas
- The Power of Backward Induction: Optimizing from the final turn backward ensures that when an early turn is being trained, it faces a stationary, already-optimized downstream policy. This effectively reduces complex multi-turn RL into a series of stable, single-step learning problems.
- Bidirectional Tool-Use Adaptation: Interestingly, RTPO does not just blindly encourage or suppress tool usage. In math tasks, it teaches the model to internalize reasoning and use tools less (collapsing redundant verifications into precise calls). In search tasks, it teaches the model to use tools more aggressively to gather external evidence.
- Structural vs. Empirical Alignment: While standard baselines eventually try to self-correct context mismatches over long training runs via noisy, bootstrapped alignment, RTPO enforces context consistency structurally from step one, saving valuable optimization budget.
Key Results
RTPO achieved state-of-the-art performance across all major benchmarks, using Qwen3-8B as a backbone:
- Overall Accuracy: RTPO outperformed the trajectory-level baseline (GRPO) by 21.50% and the turn-level baseline (SeeUPO) by 10.76% on average across eight tool-use benchmarks.
- Hard Math Tasks: On the highly challenging AIME24 benchmark, RTPO achieved a 33.33% Pass@1 accuracy, vastly outperforming SeeUPO (20.00%) and GRPO (10.00%), while requiring significantly fewer Python tool calls (4 calls vs. 12 for GRPO and 17 for Vanilla).
- Deep Search Tasks: Reached 64.89 F1 on HotpotQA, outperforming SeeUPO (54.27) and GRPO (53.39), driven by its ability to learn sustained, multi-hop web search strategies.
Limitations and Future Work
- Dependence on Trunk Quality: RTPO anchors its reverse-turn forks on an initial "trunk" trajectory. If the trunk agent makes a catastrophic mistake in an early turn, later turns are forced to explore low-value states where recovery might be impossible. The authors suggest multi-trunk sampling or retroactive trunk selection as future fixes.
- Computational Overhead: Because RTPO requires sequential turn-by-turn optimization phases and on-policy re-generation of sibling trajectories, it increases wall-clock training time and GPU-hour costs (roughly 1.41× relative to GRPO).
- Token Under-utilization: Gradients are only applied to the current turn's tokens, meaning downstream tokens generated during sibling rollouts are discarded rather than used for learning. Future work could explore auxiliary language-modeling losses to improve token efficiency.
Summary updated