Process Reward Models (PRMs): Mathematical Foundations, Step-Level Credit Assignment, and Inference-Time Search in Large Language Models
In complex multi-step reasoning tasks such as mathematics, formal logic, and software verification, standard autoregressive language models frequently exhibit compounding logical drift. While a model may produce fluent chain-of-thought derivations, an error introduced early in the chain typically invalidates all downstream deductions. Evaluating these reasoning trajectories has traditionally relied on Outcome-Supervised Reward Models (ORMs), which assign a scalar reward solely based on the final terminal answer.
However, outcome supervision suffers from severe credit assignment ambiguity. An ORM provides identical negative feedback to a solution with a minor arithmetic slip on the final line and a solution built on invalid premises from the first step. Conversely, ORMs award full positive feedback to reasoning paths that arrive at the correct final answer through flawed logic or fortuitous cancellations.
Process Reward Models (PRMs), introduced in foundational work by Lightman et al. (2023) and extended by Wang et al. (2024), resolve this bottleneck by evaluating and supervising every intermediate reasoning step. By providing dense, step-level verification signals, PRMs enable fine-grained credit assignment, effective early pruning, and structured test-time search algorithms such as beam search and Monte Carlo Tree Search (MCTS).
1. Mathematical Formulation of Process Supervision
Let a reasoning problem be denoted by , and let a complete reasoning trajectory be segmented into an ordered sequence of discrete reasoning steps:
where each step represents a coherent subsequence of tokens delimited by a special delimiter (such as newline tokens \n\n or explicit step markers).
Step-Level Verification Objective
A Process Reward Model parameterized by weights evaluates the validity of each step conditioned on the problem statement and the preceding trajectory prefix :
where:
- denotes the contextual hidden representation extracted at the terminal token of step .
- is a classification projection vector.
- is the standard logistic sigmoid function.
- represents the predicted probability that step represents mathematically and logically sound progress toward solving .

Trajectory-Level Score Aggregation
To score a complete candidate trajectory during inference or reranking, intermediate step probabilities must be aggregated into a global trajectory score . Common aggregation formulations include:
- Product of Step Probabilities (Joint Validity):
Assuming conditional independence of step correctness given prefix context: In log-space, this corresponds to an unnormalized sum:
- Minimum Step Probability (Weakest-Link Criterion):
A reasoning chain is strictly as valid as its most flawed deduction: This conservative metric guarantees that any trajectory containing an invalid step () receives a low overall score, regardless of the quality of surrounding steps.
- Length-Normalized Geometric Mean:
To prevent systemic penalties on longer, detailed proofs:
In empirical benchmarks on the MATH dataset by Lightman et al. (2023) and Wang et al. (2024), both and consistently outperform ORM scalar outputs and majority voting baselines.
2. Supervised Training Paradigms: Active Human Labels vs. Monte Carlo Rollouts
Training a PRM requires assigning target labels (or continuous soft targets ) to each step . Two dominant training paradigms have emerged.
Paradigm A: Human Active Learning (PRM800K)
In the human-supervised regime (Lightman et al., 2023), human annotators inspect model-generated step sequences and label each step as positive (+1), negative (-1), or neutral (0).
To optimize labeling efficiency, annotations follow two core rules:
- Early Termination: Annotators label steps sequentially and terminate inspection at the first incorrect step. All steps prior to the first error are labeled positive, the first erroneous step is labeled negative, and subsequent steps are left unlabelled.
- Active Learning Selection: Rather than sampling trajectories uniformly, trajectories are sampled from the generator policy, and solutions where the current PRM exhibits high predictive uncertainty or where candidate trajectories diverge are prioritized for human review.
The PRM is trained using binary cross-entropy loss over all annotated step boundaries:
Paradigm B: Automated Monte Carlo Estimation (Math-Shepherd)
Because expert human step annotation is expensive and difficult to scale, Wang et al. (2024) introduced Math-Shepherd, an automated framework that estimates step validity using Monte Carlo rollouts without human intervention.
Given problem , ground-truth target , and an intermediate reasoning prefix , a completion policy generates stochastic rollouts to completion:
The state value is approximated as the empirical success rate of these rollouts:
Target labels for step are then assigned by evaluating the transition in state value:
This automated formulation allows the construction of massive step-level datasets (such as hundreds of thousands of reasoning chains) with zero human annotation overhead while providing comparable verification fidelity.
3. Inference-Time Search Algorithms Guided by PRMs
PRMs can be deployed across several inference-time search strategies, converting raw test-time compute into substantial reasoning gains as characterized by Snell et al. (2024).
[ Root: Input Problem x ]
│
┌───────────────────────┼───────────────────────┐
▼ ▼ ▼
[ Step 1a ] [ Step 1b ] [ Step 1c ]
r₁ = 0.98 r₁ = 0.95 r₁ = 0.12 (Pruned)
│ │
┌────┴────┐ ┌────┴────┐
▼ ▼ ▼ ▼
[ Step 2a ] [ Step 2b ] [ Step 2c ] [ Step 2d ]
r₂ = 0.96 r₂ = 0.05 r₂ = 0.92 r₂ = 0.891. Best-of-N (BoN) Reranking
In Best-of-N sampling, the base policy generates independent, complete reasoning trajectories . The PRM evaluates each step in each trajectory, and the optimal trajectory is selected:
When combined with self-consistency voting (Wang et al., 2022), trajectories are clustered by their final answer , and the winning answer maximizes the aggregate PRM weight:
2. Step-Level Beam Search
Rather than generating full trajectories blindly, step-level beam search actively prunes erroneous paths at intermediate stages:
- At step , given a beam of active partial trajectories , the generator samples candidate continuations for each prefix.
- The PRM scores all candidate steps: .
- Candidates with are discarded immediately.
- The remaining candidate paths are ranked by cumulative score , retaining the top paths for step .
Step-level pruning prevents the model from wasting computational tokens expanding trajectories that have already committed irreversible algebraic or logical errors.
3. Monte Carlo Tree Search (MCTS)
In full tree search frameworks, each state forms a tree node. The PRM serves as both:
- Heuristic Evaluation Function: Providing intermediate node values without requiring expensive full rollouts to terminal tokens.
- Prior Policy Modulator: Scaling action selection probabilities within Upper Confidence Bounds for Trees (PUCT):
4. Key Architectural Trade-Offs: PRMs vs. ORMs
The operational differences between process and outcome supervision govern how each is deployed in production systems:
- Supervision Target: ORMs evaluate a single scalar label on terminal token sequences . PRMs evaluate per-step validity probabilities across all intermediate steps.
- Credit Assignment: ORM feedback is diffuse, failing to isolate specific logical errors. PRM feedback is localized, directly identifying the exact step where reasoning failed.
- False-Positive Robustness: ORMs are vulnerable to accidental correct answers and guessing. PRMs penalize invalid intermediate logic regardless of final answer alignment.
- Search Capabilities: ORMs support only trajectory-level search (such as Best-of-). PRMs enable dynamic step-level guidance (such as beam search, early stopping, lookahead search, and MCTS).
- Data Construction Cost: ORMs require only binary outcome labels, which can be extracted automatically via execution or answer matching. PRMs require fine-grained step labels obtained through human active learning or multi-branch Monte Carlo rollouts.
- Inference Compute Overhead: ORMs require a single evaluation pass per complete response. PRMs require scoring evaluations across every reasoning boundary, necessitating efficient prefix caching and batched forward passes.
5. Failure Modes and Methodological Challenges
Despite significant empirical gains, process verification faces several operational bottlenecks:
- Step Delimitation and Granularity:
Reasoning steps vary in semantic complexity. Overly fine granularity (token or sub-clause level) increases scoring compute and noise, while overly coarse granularity (multi-paragraph blocks) re-introduces credit assignment ambiguity. Standard systems rely on double newlines or LaTeX environment boundaries as heuristics.
- Verifier Goodharting and Reward Exploitation:
When searching over large candidate pools () or executing deep tree search, generator policies can exploit false-positive artifacts in the PRM. The generator discovers degenerate syntactic structures or repetitive affirmations that yield high step probabilities from the verifier despite flawed underlying mathematics (Gao et al., 2023).
- Step Context Window and Memory Overhead:
Evaluating candidate steps across reasoning stages requires either frequent KV cache swaps or redundant prefix recomputations during generation, necessitating specialized serving kernels (such as RadixAttention or Tree-KV cache sharing).
Sources
- Lightman et al. (2023): Let's Verify Step by Step
- Wang et al. (2024): Math-Shepherd: Verify and Reinforce LLMs Step-by-Step without Human Annotations
- Cobbe et al. (2021): Training Verifiers to Solve Math Word Problems
- Uesato et al. (2022): Solving Math Word Problems with Process- and Outcome-Based Feedback
- Snell et al. (2024): Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters
- Gao et al. (2023): Scaling Laws for Reward Model Overoptimization
- Wang et al. (2022): Self-Consistency Improves Chain of Thought Reasoning in Language Models



