Introduction
Training Large Language Models (LLMs) to solve complex multi-step reasoning tasks, such as mathematics and logic, typically relies on Reinforcement Learning with Verifiable Rewards (RLVR). In this paradigm, models receive a sparse binary reward (e.g., +1 for correct, 0 for incorrect) only upon reaching a final answer. This sparsity creates a significant credit assignment problem: if a 20-step reasoning chain fails, the model cannot distinguish whether the error occurred at the second step or the nineteenth. While Process Reward Models (PRMs) offer a solution by providing step-level feedback, they are prohibitively expensive to develop, requiring extensive human-labeled datasets.
TreeRPO (Tree Relative Policy Optimization) addresses this challenge by automatically generating dense, step-level signals through tree-based exploration, eliminating the need for human-labeled process rewards.
Methodology: Tree-Based Exploration and Reward Propagation
TreeRPO extends the Group Relative Policy Optimization (GRPO) framework by introducing a structured tree-sampling approach. Instead of generating a single linear reasoning path, the model explores an $N$-ary tree of possible continuations at each reasoning step.
The core innovations include:
- Tree Sampling and Bottom-Up Propagation: The model generates multiple branches from each intermediate node. Rewards are only verified at the leaf nodes (final answers). These binary rewards are then propagated backward; a parent node's reward is calculated as the expected value (average) of its children's rewards. This provides a continuous estimate of a step's potential to lead to a correct solution.
- Continuous Advantage Computation: To handle the continuous expectations generated by tree sampling (unlike the binary rewards in standard GRPO), TreeRPO introduces a normalization factor ($\sigma = \mu(1-\mu)$). This stabilizes training by preventing over-optimization on minor reward differences.
- Data Pruning: To optimize computational efficiency, the algorithm filters out "uninformative" groups where all sampled branches lead to the same outcome, focusing the learning signal on critical decision points.
Experimental Results
The authors evaluated TreeRPO using the Qwen-2.5-Math series (1.5B and 7B parameters) across four rigorous benchmarks: MATH-500, OlympiadBench, MinervaMath, and AIME24.
Accuracy and Efficiency
The results demonstrate that TreeRPO consistently outperforms the standard GRPO baseline. For the Qwen-2.5-Math-1.5B model, average Pass@1 accuracy across benchmarks improved significantly, jumping from 19.0% to 35.5%, with an absolute gain of 2.9% over the GRPO baseline.
Beyond raw accuracy, TreeRPO yields substantial efficiency gains. By providing clearer signals on which reasoning steps are productive, the model learns to be more concise. Experimental data shows an 18.1% reduction in average response length compared to GRPO. This suggests that TreeRPO helps the model avoid "rambling" and focus on the most direct path to a solution, making it both more capable and less computationally expensive during inference.
Conclusion and Future Work
TreeRPO successfully bridges the gap between simple outcome-based reinforcement learning and data-intensive process-based methods. By allowing the model to act as its own critic through tree exploration, it achieves superior reasoning performance and token efficiency.
Future research directions include optimizing the computational overhead of tree sampling through improved KV caching and moving from fixed-length token segments to semantic, logic-based step segmentation. Additionally, scaling these findings to larger models remains a key area for investigation.
Summary updated