Introduction
Training Large Language Models (LLMs) to solve complex mathematical problems requires more than just final-answer verification; it necessitates a granular evaluation of the reasoning process. Process Reward Models (PRMs) have emerged as a solution, providing feedback on individual reasoning steps. However, the primary bottleneck for PRMs is the high cost of obtaining step-level labels. Traditional automated methods rely on computationally intensive Monte Carlo simulations, which generate numerous potential completions for every intermediate step to estimate its success probability (Q-value).
In this work, we present SCOPE (Step COmpression for Process Estimation), a novel framework that shifts the process annotation paradigm from simulation to compression. By leveraging a prefix-tree structure and code-based normalization, SCOPE reduces computational costs by approximately 95% while simultaneously improving the performance of the resulting reward models.
The Computational Bottleneck in Process Reward Modeling
To train an effective PRM, one must estimate the Q-value of each intermediate step: the probability that a specific step leads to a correct final solution. Existing automated methods, such as Math-shepherd, utilize a "sample-and-simulate" approach. For every step in a solution, they generate $M$ potential completions. If there are $N$ solutions with $K$ steps each, the complexity reaches $O(NMK)$. This approach is inherently wasteful, as the vast majority of simulated completions are discarded after a single Q-value is calculated.
SCOPE addresses this inefficiency by introducing a "sample-and-compress" pipeline. Instead of generating new simulations for every step, it organizes a large pool of existing solutions into a structured format where redundant reasoning paths are merged, reducing the complexity to a linear $O(N)$.
The SCOPE Framework: Sample-and-Compress
The SCOPE pipeline consists of four primary stages designed to transform diverse natural language reasoning into a unified, evaluable structure:
- Code Translation: Natural language reasoning steps are often semantically identical but syntactically diverse. SCOPE utilizes a specialized Code-LLM to translate these steps into executable Python code, providing a more rigid logical framework for comparison.
- AST Normalization: To identify mathematical equivalence (e.g., recognizing that
x = a + bis functionally identical tox = b + a), SCOPE employs Abstract Syntax Tree (AST) normalization. This process renames variables to canonical forms and reorders operations to ensure structural equivalence across different solutions. - Step Compression (Trie Construction): The normalized code blocks are merged into a prefix tree (Trie). If multiple solutions share the same initial mathematical steps, those steps are represented by a single path in the tree. This allows the model to treat the entire solution space as a collective graph rather than isolated strings.
- Efficient Labeling: Q-values are derived directly from the tree structure. A node's value is calculated as the ratio of paths passing through that node that eventually reach a correct leaf node. This eliminates the need for redundant Monte Carlo simulations.
Experimental Setup and Results
Datasets and Benchmarks
The authors constructed a large-scale PRM training dataset using the SCOPE pipeline, resulting in 196K samples with 1.4M step-level labels derived from the UltraInteract dataset. The framework was evaluated across a diverse battery of benchmarks, including GSM8K, MATH, MinervaMath, GaoKao2023En, OlympiadBench, and CollegeMath. Additionally, ProcessBench was used to measure the model's ability to identify specific reasoning errors.
Performance and Efficiency
SCOPE demonstrates significant improvements in both efficiency and accuracy:
- Computational Efficiency: In a 100-problem sample, SCOPE required only 0.6 GPU hours for processing, compared to 11.4 hours for the Math-shepherd baseline—a nearly 20x speedup.
- Reward Model Accuracy: Using a Best-of-8 inference strategy, SCOPE achieved an average accuracy of 64.9%, outperforming Math-shepherd (60.0%) and even surpassing models trained on high-quality manual annotations (63.0%).
- Error Detection: On ProcessBench, SCOPE achieved a 54.4 F1 score, nearing the performance of models trained on expensive, human-labeled data (56.5 F1).
Discussion and Key Insights
The success of SCOPE highlights several critical insights for automated reasoning research. First, code acts as a universal language for math; by translating fuzzy natural language into code, the framework can leverage AST normalization to identify mathematical equivalencies that surface-level text matching would miss. Second, the study found that "Step Skipping" (removing non-calculative steps like comments) actually degraded performance, suggesting that logical connective tissue is vital for reward model training.
Finally, the researchers observed that Hard Estimation (binary success labels) slightly outperformed Soft Estimation (continuous Q-values). This suggests that in complex mathematical domains, continuous labels may introduce noise that outweighs the benefit of their granularity.
Conclusion and Future Work
SCOPE provides a highly efficient and effective framework for automated process annotation, slashing the cost of PRM training while improving model quality. While the current implementation relies on the reliability of the Code-LLM for translation and is optimized for arithmetic-heavy problems, future work will focus on broadening the framework's applicability to more abstract mathematical fields and improving the robustness of the translation process.
Summary updated