Abstract
Recent advances in reinforcement learning (RL) have significantly enhanced the agentic capabilities of large language models (LLMs). In long-term and multi-turn agent tasks, existing approaches driven solely by outcome rewards often suffer from the problem of sparse supervision. To address the challenge, we propose Tree-based Group Relative Policy Optimization (Tree-GRPO), a grouped agent RL method based on tree search, where each tree node represents the complete agent interaction step. By sharing common prefixes, the tree search sampling increases the number of rollouts achievable within a fixed budget of tokens or tool calls. Moreover, we find that the tree-structured trajectory naturally allows the construction of step-wise process supervised signals even using only the outcome reward. Based on this, Tree-GRPO estimates the grouped relative advantages both on intra-tree and inter-tree levels. Through theoretical analysis, we demonstrate that the objective of intra-tree level group relative policy optimization is equivalent to that of step-level direct preference learning. Experiments across 11 datasets and 3 types of QA tasks demonstrate the superiority of the proposed tree-based RL over the chain-based RL method.
Introduction
Training Large Language Model (LLM) agents for multi-turn reasoning and tool-use tasks typically relies on outcome-based rewards. For instance, an agent might be rewarded only if it reaches the correct final answer after a sequence of ten steps. This approach introduces two primary bottlenecks: sparse supervision and prohibitive rollout costs. In long-horizon tasks, a single failure at an early step can render the entire trajectory unsuccessful, yet the model receives no specific feedback on which step was erroneous. Furthermore, standard "chain-based" sampling—where multiple independent trajectories are generated for each prompt—is extremely expensive in terms of token consumption and API calls.
To overcome these limitations, we introduce Tree-GRPO, a reinforcement learning framework that utilizes tree-structured sampling to improve both efficiency and supervision granularity.
Methodology: Agent Step-level Tree Search
The core innovation of Tree-GRPO is the shift from independent chains to an Agent Step-level Tree Search. In this paradigm, each node in the tree represents a complete "ReAct" step, comprising a Thought ($\tau$), an Action ($\alpha$), and an Observation ($o$).
Prefix Sharing and Efficiency
By sharing common prefixes, Tree-GRPO allows the model to explore multiple potential paths from the same state without re-generating the preceding tokens. This structural redundancy, which is a drawback in chain-based methods, becomes a source of efficiency here. The model can obtain significantly more samples for the same token or tool-call budget.
Hierarchical Advantage Estimation
Tree-GRPO leverages the tree structure to derive process-level signals from simple outcome rewards. It calculates advantages at two levels:
- Intra-tree Advantage: By comparing sibling branches at a specific node, the model identifies which local decisions lead to better outcomes. This effectively provides "process supervision for free," as it isolates the impact of individual steps.
- Inter-tree Advantage: To maintain global stability, the model also compares results across different trees, providing a stable baseline that prevents model collapse.
The authors mathematically prove that the intra-tree optimization objective is functionally equivalent to performing step-level Direct Preference Optimization (DPO) within an online RL setting.
Experimental Results
The researchers evaluated Tree-GRPO across 11 benchmarks, including Multi-Hop QA (e.g., HotpotQA), Single-Hop QA (e.g., TriviaQA), and Web-Agent tasks (e.g., GAIA).
Key Findings
- Efficiency Gains: Tree-GRPO achieved higher accuracy while using only 25% of the rollout budget (tokens and tool calls) required by chain-based baselines.
- Performance Boost: The method showed a 69% relative improvement for the Qwen2.5-1.5B model on Multi-Hop QA tasks. It was particularly effective for smaller models (under 7B parameters) that typically struggle with complex agentic behaviors.
- Zero-Shot Agentic Behavior: Remarkably, Tree-GRPO enabled "base" models (those without instruction fine-tuning) to adopt multi-turn interaction paradigms without any prior Supervised Fine-Tuning (SFT).
- Exploration Stability: Combining intra-tree and inter-tree advantages proved crucial; training on step-level signals alone was unstable, but the hybrid approach provided the necessary global context.
Conclusion and Future Work
Tree-GRPO addresses the critical challenges of sparse supervision and high computational costs in LLM agent training. By transforming outcome rewards into fine-grained process signals through tree search, it enables more efficient and effective reinforcement learning. While performance on highly complex web-navigation tasks like BrowseComp remains a challenge due to data limitations, the framework provides a robust foundation for future developments. Potential next steps include integrating reflective reasoning and allowing agents to backtrack during inference when they encounter sub-optimal paths.
Summary updated