Abstract
Enhancing the reasoning capabilities of Large Language Models (LLMs) requires robust feedback mechanisms. Traditional approaches rely on Outcome Reward Models (ORMs) or Process Reward Models (PRMs), both of which possess inherent limitations regarding credit assignment and evaluation myopia. We introduce the Hierarchical Reward Model (HRM), which bridges these gaps by evaluating both individual steps and consecutive sequences. By incorporating Hierarchical Node Compression (HNC) and Logarithmic KL Regularization, HRM achieves superior stability and generalization. Our results show that HRM effectively identifies self-corrections and resists performance degradation during Best-of-N sampling, outperforming standard PRMs on benchmarks such as PRM800K and MATH500.
Introduction
Complex reasoning tasks, particularly in mathematics, necessitate precise feedback during the generation process. Current paradigms utilize either ORMs, which evaluate only the final answer, or PRMs, which score every individual step. ORMs often fail to pinpoint specific errors in a long reasoning chain, while PRMs tend to be myopic, penalizing models for intermediate errors even when they are subsequently corrected. Furthermore, PRMs are vulnerable to "reward hacking," where models learn to exploit the reward signal without genuine logical improvement.
Methodology
To address these issues, we propose the Hierarchical Reward Model (HRM). Unlike standard PRMs that evaluate a single step $s_i$ in isolation, HRM is trained on a dataset comprising both individual steps and merged consecutive steps ($s_i + s_{i+1}$). This hierarchical approach allows the model to capture "local coherence," enabling it to recognize and reward valid self-correction trajectories.
Data Augmentation and Stability
We employ Hierarchical Node Compression (HNC) to mitigate data scarcity. Using Monte Carlo Tree Search (MCTS) to generate reasoning paths, HNC randomly merges parent and child nodes, increasing training data diversity and making the model less sensitive to arbitrary step boundaries. Additionally, we implement Logarithmic KL Regularization during self-training. This stabilizes the loss landscape compared to standard KL divergence, preventing model drift while maintaining reasoning performance.
Experimental Results
We evaluated HRM against ORM and PRM baselines using the PRM800K dataset and the MATH500 benchmark.
Stability at Scale
A critical finding is HRM's stability during Best-of-N sampling. While standard PRMs often exhibit performance degradation as $N$ increases—due to the model finding "shortcuts" to high rewards—HRM maintains high accuracy. As shown in the performance data, HRM accuracy improves and stabilizes as $N$ grows, whereas PRM performance significantly declines.
Generalization and Out-of-Distribution Performance
HRM consistently outperforms PRM across various base models, including DeepSeek-Math-7B and Qwen2.5 variants. On the MATH500 benchmark, HRM achieved 73.6% accuracy compared to the standard PRM's 68.8%. It also demonstrated robustness on simpler arithmetic tasks like GSM8K (92.6% vs 91.8%), confirming its effectiveness across different levels of mathematical complexity.
Conclusion and Limitations
The Hierarchical Reward Model represents a significant step toward more reliable LLM reasoning by valuing coherence and self-correction. However, challenges remain. Merging more than two consecutive steps increases labeling complexity exponentially. Additionally, the initial data generation via MCTS is computationally intensive, requiring approximately 2,457 A100 GPU-hours. Future work will explore dynamic "chunking" of reasoning steps to further refine the hierarchical evaluation process.
Summary updated