TreeRL: LLM Reinforcement Learning with On-Policy Tree Search

  • 2025-06-13 16:52:37
  • Zhenyu Hou, Ziniu Hu, Yujiang Li, Rui Lu, Jie Tang, Yuxiao Dong
  • 0

Abstract

Reinforcement learning (RL) with tree search has demonstrated superiorperformance in traditional reasoning tasks. Compared to conventionalindependent chain sampling strategies with outcome supervision, tree searchenables better exploration of the reasoning space and provides dense, on-policyprocess rewards during RL training but remains under-explored in On-Policy LLMRL. We propose TreeRL, a reinforcement learning framework that directlyincorporates on-policy tree search for RL training. Our approach includesintermediate supervision and eliminates the need for a separate reward modeltraining. Existing approaches typically train a separate process reward model,which can suffer from distribution mismatch and reward hacking. We alsointroduce a cost-effective tree search approach that achieves higher searchefficiency under the same generation token budget by strategically branchingfrom high-uncertainty intermediate steps rather than using random branching.Experiments on challenging math and code reasoning benchmarks demonstrate thatTreeRL achieves superior performance compared to traditional ChainRL,highlighting the potential of tree search for LLM. TreeRL is open-sourced athttps://github.com/THUDM/TreeRL.

 

Quick Read (beta)

loading the full paper ...