Tree Search for LLM Agent Reinforcement Learning

Yuxiang Ji, Ziyu Ma, Yong Wang, Guanhua Chen, Xiangxiang Chu +1 more
9/25/2025
cs.LGcs.AI

No official code found. Best implementation: AMAP-ML/Tree-GRPO (405 stars, Apache-2.0, last commit 2026-01-26).

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.

View on arXivView PDF

Code Implementations(1)

AMAP-ML/Tree-GRPOCommunity74%
Apache-2.0

[ICLR 2026] Tree Search for LLM Agent Reinforcement Learning

40541Shell, PythonSep 25, 20258 months agoApache-2.0
agentlarge-language-modelllmreinforcement-learningtree

Similar Papers

Cite this paper

@article{ji2025tree,
  title  = {Tree Search for LLM Agent Reinforcement Learning},
  author = {Yuxiang Ji and Ziyu Ma and Yong Wang and Guanhua Chen and Xiangxiang Chu and Liaoni Wu},
  year   = {2025},
  eprint = {2509.21240},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.21240v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.21240.svg)](https://codeofpaper.com/paper/2509.21240)

Discussion