Large language models have established chain-of-thought prompting as a standard paradigm for multi-step reasoning tasks across mathematics, formal logic, and software engineering. However, generating extended reasoning chains introduces a severe compounding error vulnerability: a single invalid deduction at an intermediate step invalidates all subsequent steps, even if the final generated tokens appear coherent.
Evaluating and guiding these reasoning trajectories requires robust reward modeling. Historically, reinforcement learning from human feedback and test-time reranking have relied on Outcome Reward Models (ORMs), which evaluate only the final generated answer. This terminal evaluation introduces a severe credit assignment problem. In contrast, Process Reward Models (PRMs) decompose the evaluation into granular, step-by-step verification, assigning correctness probabilities to individual reasoning transitions.
This technical guide examines the mathematical foundations of process reward models, formal credit assignment mechanisms, automated Monte Carlo step supervision, search-time compute scaling algorithms, and failure modes under search over-optimization.

The Credit Assignment Problem in Chain-of-Thought Reasoning
Consider a reasoning task defined by a problem input and a target solution space . A language model policy generates a reasoning trajectory composed of a sequence of discrete reasoning steps:
where each step consists of a sequence of sub-tokens delimited by step boundaries (such as newline characters or explicit step tags). The final step produces the terminal answer .
Limitations of Outcome Reward Models (ORMs)
An Outcome Reward Model is trained to predict the probability that the terminal answer matches ground-truth target , formalized as:
Under outcome supervision, training gradients or search rewards depend exclusively on the final state. This structure introduces two critical pathological failure modes:
- False Positives (Spurious Correctness): The model executes flawed or hallucinatory reasoning across steps , but arrives at the correct terminal value through compensatory errors or lucky guesses. The ORM rewards the entire trajectory , reinforcing flawed deduction patterns.
- False Negatives (Unfair Penalization): The model executes flawless logical reasoning through steps , but makes a minor arithmetic slip in step . The ORM assigns a near-zero reward to the entire trajectory, failing to credit the high-quality intermediate representations.
In complex multi-step reasoning, where trajectories can span dozens of steps, sparse terminal rewards provide poor signal-to-noise ratios for intermediate policy optimization and search guidance.
Mathematical Formulation of Process Reward Models
Process Reward Models address credit assignment by treating the reasoning sequence as a Markov Decision Process (MDP) or directed graph of reasoning states.
State Space and Step Probability
Let the state at step be the concatenation of the original input prompt and all prior reasoning steps:
A Process Reward Model evaluates the validity of transition from state to state under action . The model outputs a step-level correctness score , defined as the conditional probability that step is logically valid given the context :
where is a binary indicator denoting whether step represents a sound logical deduction.
Trajectory Aggregation Functions
To score an entire reasoning trajectory during inference-time search or sample selection, the step-level predictions must be aggregated into a scalar trajectory score . Three primary aggregation functions are standard:
- Minimum Step Score (Weakest Link):
Under the premise that a single incorrect step invalidates mathematical proof integrity, penalizes trajectories containing any low-confidence transition.
- Product of Step Scores (Joint Probability):
Under the assumption of conditional step independence, represents the joint probability that all steps in the trajectory are valid. However, this metric naturally penalizes longer reasoning chains due to probability compounding.
- Length-Normalized Product Score:
Normalizing by chain length counteracts the strict penalty on longer reasoning chains that are necessary for difficult problems.
Data Generation and Step-Level Supervision
Training PRMs requires high-quality step-level labels . Two dominant paradigms exist for constructing step-level datasets: human active learning and automated Monte Carlo rollout estimation.
Human Active Learning: The PRM800K Paradigm
In "Let's Verify Step by Step" (Lightman et al., 2023), researchers collected the PRM800K dataset comprising 800,000 step-level human annotations across 75,000 solution paths.
To maximize data efficiency, active learning was deployed:
- The generator model sampled candidate trajectories for a problem .
- An existing PRM scored the steps.
- Annotators were assigned to label steps where the PRM exhibited high predictive entropy (uncertainty) or where the trajectory first diverged from correctness.
- Steps were labeled with a tri-state classification: (correct/positive), (incorrect/negative), and (neutral/unhelpful).
Automated Monte Carlo Estimation: The Math-Shepherd Paradigm
Human step annotation is labor-intensive and difficult to scale. The Math-Shepherd framework (Wang et al., 2023) introduced an automated, label-free method for step-level value estimation using Monte Carlo rollouts, analogous to value network estimation in AlphaZero.
For an intermediate step within trajectory :
- The generator policy produces independent completion rollouts from the prefix to terminal answers .
- Each terminal answer is evaluated against the ground-truth target $y^$ using an automated deterministic verifier: $\mathbb{I}(\hat{y}^{(m)} == y^)$.
- The empirical step potential is calculated as the fraction of successful rollouts:
Step labels are assigned based on empirical potential changes. If and , the step is labeled positive (). If while , the step represents the exact point of logical failure and is labeled negative ().
PRM Loss Objective
Given a dataset of step-annotated trajectories , the PRM parameters are optimized via step-wise binary cross-entropy:
Search-Time Compute Scaling Algorithms
Inference compute can be scaled dynamically at test time by searching through reasoning candidates evaluated by PRMs.
[ Input Prompt: x ]
│
┌────────┴────────┐
Step 1a (0.98) Step 1b (0.42) [PRUNED]
│
┌──┴──┐
Step 2a Step 2b (0.12) [PRUNED]
(0.95)
│
Step 3a (0.91) ──> [ Terminal Verification: Correct ]1. Best-of- (BoN) Sampling
In Best-of- reranking, the policy generates independent end-to-end trajectories . The PRM evaluates each trajectory, and the candidate maximizing the aggregation score is selected:
Lightman et al. (2023) demonstrated that on the MATH benchmark, Best-of- scaling with a PRM consistently outperforms an ORM at every value of , achieving higher asymptotic accuracy.
2. Step-Level Beam Search and Tree Pruning
Instead of generating complete trajectories before evaluation, tree search evaluates partial paths at each step boundary.
At step :
- The top active partial trajectories are expanded by sampling candidate next steps from , yielding candidate continuations.
- The PRM scores all prefixes: .
- Any candidate with is immediately pruned.
- The top surviving prefixes based on cumulative score are retained for step .
Step-level pruning prevents the model from wasting decoding compute on downstream tokens when an early step has already failed.
3. Monte Carlo Tree Search (MCTS) with UCT
For complex combinatorial and theorem-proving problems, PRMs serve as state-value heuristics in Monte Carlo Tree Search. Selection at each decision node uses the Upper Confidence Bounds for Trees (UCT) formula:
where:
- is the mean value backpropagated from downstream rollouts and PRM evaluations.
- is the prior policy probability from the generator .
- and represent visit counts.
- balances exploitation of high-value reasoning steps with exploration of alternative logical derivations.
Compute-Optimal Inference Allocation
Research on test-time compute scaling (Snell et al., 2024; Brown et al., 2024) shows that trading test-time search compute against parameter scale follows systematic scaling laws.
Snell et al. demonstrated that for problems of moderate difficulty, applying compute-optimal test-time search (combining PRM-guided tree search with adaptive sample budgets) allows a compact base model to outperform a 14x larger pretrained model evaluated with standard greedy decoding.
However, the efficacy of PRM search depends heavily on prompt difficulty:
- Easy Problems: Single-sample greedy decoding suffices; search compute provides marginal gains.
- Medium Problems: PRM search yields exponential coverage gains per unit FLOP.
- Extreme Difficulty Problems: If the base model has near-zero probability of generating any valid intermediate transition, PRM reranking cannot recover a solution. Parameter scaling and pretraining knowledge remain essential for establishing baseline coverage.
Failure Modes, Reward Hacking, and Generative Verifiers
While PRMs mitigate the sparse reward problem, they introduce distinct challenges in production:
1. Search Over-Optimization (Goodhart's Law)
As search budgets grow large (), the search algorithm tends to exploit subtle false-positive errors in the PRM scoring function. The model selects trajectories that maximize PRM score artifacts rather than true mathematical correctness.
To measure this degradation, researchers evaluate proxy reward vs. true gold reward across increasing search budgets, observing that uncalibrated PRMs suffer performance collapse at large .
2. Discriminative vs. Generative PRMs
Standard discriminative PRMs output a single scalar logit via a linear classification head applied to the last hidden state of the step-delimiter token. This compression can discard nuanced logical subtleties.
Modern approaches increasingly utilize Generative PRMs (such as reasoning-based verifiers). Instead of outputting a scalar logit immediately, the verifier generates a critique chain-of-thought before emitting a final verification verdict:
where represents a verbalized step-by-step critique of step . Generating critique tokens allows the verifier to allocate computational FLOPs proportional to the verification complexity of each step.
Architectural Trade-Offs
Outcome Reward Models (ORMs)
- Supervision Granularity: Terminal solution only.
- Data Acquisition Cost: Low (automated final answer verification against ground truth).
- Search Compatibility: Best-of-N reranking only; cannot guide intermediate tree expansion.
- Inference FLOP Overhead: One forward pass per full candidate trajectory.
- Vulnerability: High risk of false positives via spurious reasoning paths that arrive at correct final answers.
Discriminative PRMs
- Supervision Granularity: Per reasoning step (transition level).
- Data Acquisition Cost: High (requires step-level human annotations or extensive Monte Carlo rollouts).
- Search Compatibility: Best-of-N reranking, step-level beam search, and Monte Carlo Tree Search.
- Inference FLOP Overhead: One classification forward pass per reasoning step.
- Vulnerability: Vulnerable to search over-optimization and proxy reward hacking at large sample counts.
Generative PRMs and Reasoning Verifiers
- Supervision Granularity: Per reasoning step with explicit critique chains.
- Data Acquisition Cost: Moderate to high (requires synthetic or distilled critique trajectories).
- Search Compatibility: Tree search, beam search, iterative self-correction, and backtracking.
- Inference FLOP Overhead: Variable autoregressive decoding steps per verified step.
- Vulnerability: Increased latency and token consumption per verification step.
Sources
- Let's Verify Step by Step (Lightman et al., 2023)
- Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations (Wang et al., 2023)
- Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters (Snell et al., 2024)
- Large Language Monkeys: Scaling Inference Compute with Repeated Sampling (Brown et al., 2024)
- Process Reward Models That Think (arXiv:2504.16828)



