Tree Search for LLM Agent Reinforcement Learning

Yuxiang Ji, Ziyu Ma, Yong Wang, Guanhua Chen, Xiangxiang Chu, Liaoni Wu

Reinforcement Learning (RL) has become the secret sauce for turning Large Language Models (LLMs) into reasoning powerhouses. However, when moving from single-turn math problems to multi-turn "agents" that must use tools and browse the web, standard RL hits a wall.

A new paper introduces Tree-based Group Relative Policy Optimization (Tree-GRPO), a method that fundamentally changes how we sample and supervise agentic trajectories to make RL more efficient and effective.

TL;DR

Tree-GRPO replaces independent, wasteful "chain-based" rollouts with a tree-structured sampling strategy where nodes represent complete agent steps. This approach reduces the computational budget by sharing prefixes and transforms sparse outcome rewards into dense, step-level supervision signals, leading to massive performance gains (up to 69% relative improvement) for small models.

The Challenge: Budget Bottlenecks and Sparse Supervision

Training LLM agents with RL faces two primary hurdles:

  1. The Budget Bottleneck: Agents are expensive. A single task might require thousands of tokens and dozens of high-priced tool calls (like search APIs). Existing methods sample multiple independent trajectories for every prompt, which is incredibly redundant since many trajectories start with the exact same initial steps.
  2. Sparse Supervision: Most RL relies on "outcome rewards"—a single score at the very end of a long chain of actions. If an agent fails after ten steps, was the mistake at step two or step nine? This "credit assignment" problem makes learning unstable and slow.
Comparison of chain-based and tree-based sampling strategies.

Tree-GRPO Methodology

The authors propose Tree-GRPO to address these inefficiencies. The core innovation lies in how the "rollouts" (the agent's attempts) are structured:

  • Agent Step-level Nodes: Unlike previous tree-search methods that branch at the token or sentence level, Tree-GRPO branches at the complete agent step level (a Thought-Action-Observation tuple). This matches the natural rhythm of agentic behavior.
  • Initialize-then-Expand: The algorithm starts by generating a few independent chains. It then randomly selects intermediate nodes and "branches" out from them to explore alternative paths.
  • Dual-Level Advantages: To update the model, Tree-GRPO calculates rewards at two levels:
  • Intra-tree: It compares sibling branches within the same tree. If one branch leads to success and another to failure, the model learns a preference for the successful step.
  • Inter-tree: It compares across different trees to maintain global stability.
Evolution from chain-based and token-level rollouts to Agent step-level Tree Search.

Key Insights and Findings

The researchers evaluated Tree-GRPO across 11 benchmarks categorized into Multi-Hop QA, Single-Hop QA, and Web-Agent QA. The results highlight several major advantages:

  • The "Free" Process Signal: The most elegant finding is that a tree structure naturally creates "process supervision" even if you only have an outcome reward. By comparing sibling branches that share a prefix, you are implicitly performing step-level Direct Preference Optimization (DPO). The authors provide a mathematical proof showing these two objectives are structurally equivalent.
  • Massive Efficiency Gains: Because branches share prefixes, the method can generate ~1.5x more samples for the same token/tool-call budget compared to standard chain-based sampling. Remarkably, Tree-GRPO using only one-quarter of the rollout budget often outperformed chain-based RL using a full budget.
  • Small Model "Unlock": Small models often struggle to even start using tools correctly in a multi-turn setting. Tree-GRPO successfully enabled base models to adopt multi-turn interaction paradigms without any prior Supervised Fine-Tuning (SFT). For example, Qwen2.5-1.5B saw a 69% relative improvement on multi-hop QA tasks.
  • Anti-Shortcut Behavior: Standard RL often encourages agents to find "shortcuts" to the answer. Tree-GRPO, by providing denser signals, actually encourages agents to engage in longer, more thorough exploration and more tool calls, which is essential for complex reasoning.

Limitations and Future Work

Like all RL, Tree-GRPO is only as good as its reward function; if the automated grader is flawed, the model will learn the wrong behaviors. Furthermore, while Tree-GRPO improved performance on complex web-agent tasks (like GAIA), absolute scores remain low due to the limited availability of high-quality training data for these environments. Future directions may include integrating reflective reasoning—allowing the agent to look back and correct itself—and more sophisticated exploration strategies into the tree-search process.

Summary updated

BibTeX
@inproceedings{ji2026tree,
  author = {Yuxiang Ji and Ziyu Ma and Yong Wang and Guanhua Chen and Xiangxiang Chu and Liaoni Wu},
  title = {{Tree Search for LLM Agent Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ZpQwAFhU13},
}
Figure