TreeRPO: Tree Relative Policy Optimization

Zhicheng Yang, Zhijiang Guo, Yinya Huang, Xiaodan Liang, Yiwei Wang +1 more
6/5/2025
cs.LGcs.AI

Official code: yangzhch6/TreeRPO (6 stars, MIT, last commit 2025-11-03).

Abstract

Large Language Models (LLMs) have shown remarkable reasoning capabilities through Reinforcement Learning with Verifiable Rewards (RLVR) methods. However, a key limitation of existing approaches is that rewards defined at the full trajectory level provide insufficient guidance for optimizing the intermediate steps of a reasoning process. To address this, we introduce \textbf{\name}, a novel method that estimates the mathematical expectations of rewards at various reasoning steps using tree sampling. Unlike prior methods that rely on a separate step reward model, \name directly estimates these rewards through this sampling process. Building on the group-relative reward training mechanism of GRPO, \name innovatively computes rewards based on step-level groups generated during tree sampling. This advancement allows \name to produce fine-grained and dense reward signals, significantly enhancing the learning process and overall performance of LLMs. Experimental results demonstrate that our \name algorithm substantially improves the average Pass@1 accuracy of Qwen-2.5-Math on test benchmarks, increasing it from 19.0\% to 35.5\%. Furthermore, \name significantly outperforms GRPO by 2.9\% in performance while simultaneously reducing the average response length by 18.1\%, showcasing its effectiveness and efficiency. Our code will be available at \href{https://github.com/yangzhch6/TreeRPO}{https://github.com/yangzhch6/TreeRPO}.

View on arXivView PDF

Code Implementations(1)

yangzhch6/TreeRPOOfficial100%
MIT

The official implemention of "TreeRPO: Tree Relative Policy Optimization"

61Shell, PythonMay 31, 202511 months agoMIT

Similar Papers

Cite this paper

@article{yang2025treerpo,
  title  = {TreeRPO: Tree Relative Policy Optimization},
  author = {Zhicheng Yang and Zhijiang Guo and Yinya Huang and Xiaodan Liang and Yiwei Wang and Jing Tang},
  year   = {2025},
  eprint = {2506.05183},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05183v2}
}

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/2506.05183.svg)](https://codeofpaper.com/paper/2506.05183)

Discussion