AI
9 min read

Process Reward Models (PRMs): Mathematical Foundations, Step-Level Credit Assignment, and Inference-Time Search in Large Language Models

Process Reward Models (PRMs) evaluate every intermediate reasoning step to resolve credit assignment ambiguity, enabling effective early pruning and structured test-time search algorithms like MCTS for improved LLM reasoning accuracy.

Diagram comparing Outcome-Supervised Reward Models with limited feedback against Process Reward Models providing dense step-level verification signals for chain-of-thought reasoning.
Diagram comparing Outcome-Supervised Reward Models with limited feedback against Process Reward Models providing dense step-level verification signals for chain-of-thought reasoning.

Process Reward Models (PRMs) address the credit assignment ambiguity in Large Language Models by evaluating and supervising every intermediate reasoning step rather than just the final answer. This approach resolves logical drift by providing dense, step-level verification signals that enable fine-grained credit assignment and support structured inference-time search algorithms. Consequently, PRMs significantly improve performance on complex multi-step reasoning tasks such as mathematics and formal logic compared to traditional Outcome-Supervised Reward 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 x∈Xx \in \mathcal{X}, and let a complete reasoning trajectory τ\tau be segmented into an ordered sequence of KK discrete reasoning steps:

τ=(s1,s2,…,sK)\tau = (s_1, s_2, \dots, s_K)

where each step sk=(tk,1,tk,2,…,tk,Lk)s_k = (t_{k,1}, t_{k,2}, \dots, t_{k,L_k}) 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 θ\theta evaluates the validity of each step sks_k conditioned on the problem statement xx and the preceding trajectory prefix s<k=(s1,…,sk−1)s_{<k} = (s_1, \dots, s_{k-1}):

rk=pθ(valid∣x,s1,s2,…,sk)=σ(W⊤hθ(x,s1:k))r_k = p_\theta(\text{valid} \mid x, s_1, s_2, \dots, s_k) = \sigma(W^\top h_\theta(x, s_{1:k}))

where:

  • hθ(x,s1:k)∈Rdh_\theta(x, s_{1:k}) \in \mathbb{R}^d denotes the contextual hidden representation extracted at the terminal token of step sks_k.
  • W∈RdW \in \mathbb{R}^d is a classification projection vector.
  • σ(z)=11+e−z\sigma(z) = \frac{1}{1 + e^{-z}} is the standard logistic sigmoid function.
  • rk∈[0,1]r_k \in [0, 1] represents the predicted probability that step sks_k represents mathematically and logically sound progress toward solving xx.
Process Supervision vs Outcome Supervision Architecture

Trajectory-Level Score Aggregation

To score a complete candidate trajectory τ\tau during inference or reranking, intermediate step probabilities must be aggregated into a global trajectory score R(τ)R(\tau). Common aggregation formulations include:

  1. Product of Step Probabilities (Joint Validity):

Assuming conditional independence of step correctness given prefix context: Rprod(τ)=∏k=1KrkR_{\text{prod}}(\tau) = \prod_{k=1}^K r_k In log-space, this corresponds to an unnormalized sum: log⁡Rprod(τ)=∑k=1Klog⁡rk\log R_{\text{prod}}(\tau) = \sum_{k=1}^K \log r_k

  1. Minimum Step Probability (Weakest-Link Criterion):

A reasoning chain is strictly as valid as its most flawed deduction: Rmin(τ)=min⁡1≤k≤KrkR_{\text{min}}(\tau) = \min_{1 \le k \le K} r_k This conservative metric guarantees that any trajectory containing an invalid step (rk≈0r_k \approx 0) receives a low overall score, regardless of the quality of surrounding steps.

  1. Length-Normalized Geometric Mean:

To prevent systemic penalties on longer, detailed proofs: Rgeom(τ)=(∏k=1Krk)1/K=exp⁡(1K∑k=1Klog⁡rk)R_{\text{geom}}(\tau) = \left( \prod_{k=1}^K r_k \right)^{1/K} = \exp\left( \frac{1}{K} \sum_{k=1}^K \log r_k \right)

In empirical benchmarks on the MATH dataset by Lightman et al. (2023) and Wang et al. (2024), both RprodR_{\text{prod}} and RminR_{\text{min}} 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 yk∈{0,1}y_k \in \{0, 1\} (or continuous soft targets yk∈[0,1]y_k \in [0, 1]) to each step sks_k. 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:

  1. 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.
  2. 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:

LBCE(θ)=−1∣D∣∑(x,τ)∈D∑k=1Kτ[yklog⁡rk+(1−yk)log⁡(1−rk)]\mathcal{L}_{\text{BCE}}(\theta) = - \frac{1}{|\mathcal{D}|} \sum_{(x, \tau) \in \mathcal{D}} \sum_{k=1}^{K_\tau} \left[ y_k \log r_k + (1 - y_k) \log (1 - r_k) \right]

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 xx, ground-truth target y∗y^*, and an intermediate reasoning prefix s1:ks_{1:k}, a completion policy πcomp\pi_{\text{comp}} generates NN stochastic rollouts to completion:

τ^(i)=(s1,…,sk,s^k+1(i),…,s^Mi(i)),i∈{1,…,N}\hat{\tau}^{(i)} = (s_1, \dots, s_k, \hat{s}_{k+1}^{(i)}, \dots, \hat{s}_{M_i}^{(i)}), \quad i \in \{1, \dots, N\}

The state value V(s1,…,sk)V(s_1, \dots, s_k) is approximated as the empirical success rate of these rollouts:

V(s1:k)=1N∑i=1NI(ExtractAnswer(τ^(i))=y∗)V(s_{1:k}) = \frac{1}{N} \sum_{i=1}^N \mathbb{I}\left( \text{ExtractAnswer}(\hat{\tau}^{(i)}) = y^* \right)

Target labels for step sks_k are then assigned by evaluating the transition in state value:

yk={1if V(s1:k)≥γpos or V(s1:k)−V(s1:k−1)≥00if V(s1:k)=0 and V(s1:k−1)>0y_k = \begin{cases} 1 & \text{if } V(s_{1:k}) \ge \gamma_{\text{pos}} \text{ or } V(s_{1:k}) - V(s_{1:k-1}) \ge 0 \\ 0 & \text{if } V(s_{1:k}) = 0 \text{ and } V(s_{1:k-1}) > 0 \end{cases}

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.89

1. Best-of-N (BoN) Reranking

In Best-of-N sampling, the base policy πθ\pi_\theta generates NN independent, complete reasoning trajectories {τ1,τ2,…,τN}\{\tau_1, \tau_2, \dots, \tau_N\}. The PRM evaluates each step in each trajectory, and the optimal trajectory τ∗\tau^* is selected:

τ∗=arg⁡max⁡τ∈{τ1,…,τN}R(τ)\tau^* = \arg\max_{\tau \in \{\tau_1, \dots, \tau_N\}} R(\tau)

When combined with self-consistency voting (Wang et al., 2022), trajectories are clustered by their final answer aa, and the winning answer maximizes the aggregate PRM weight:

a∗=arg⁡max⁡a∈A∑i=1NI(Answer(τi)=a)⋅R(τi)a^* = \arg\max_{a \in \mathcal{A}} \sum_{i=1}^N \mathbb{I}(\text{Answer}(\tau_i) = a) \cdot R(\tau_i)

Rather than generating full trajectories blindly, step-level beam search actively prunes erroneous paths at intermediate stages:

  1. At step kk, given a beam of BB active partial trajectories {s1:k−1(b)}b=1B\{s_{1:k-1}^{(b)}\}_{b=1}^B, the generator samples MM candidate continuations for each prefix.
  2. The PRM scores all B×MB \times M candidate steps: rk(b,m)=pθ(valid∣x,s1:k−1(b),sk(b,m))r_k^{(b, m)} = p_\theta(\text{valid} \mid x, s_{1:k-1}^{(b)}, s_{k}^{(b, m)}).
  3. Candidates with rk<τthresholdr_k < \tau_{\text{threshold}} are discarded immediately.
  4. The remaining candidate paths are ranked by cumulative score ∏j=1krj\prod_{j=1}^k r_j, retaining the top BB paths for step k+1k+1.

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 Sk=(x,s1,…,sk)S_k = (x, s_1, \dots, s_k) forms a tree node. The PRM serves as both:

  • Heuristic Evaluation Function: Providing intermediate node values Q(Sk)Q(S_k) without requiring expensive full rollouts to terminal tokens.
  • Prior Policy Modulator: Scaling action selection probabilities P(Sk,sk+1)P(S_k, s_{k+1}) within Upper Confidence Bounds for Trees (PUCT):

ak+1=arg⁡max⁡s[Q(Sk,s)+cpuctP(Sk,s)∑bN(Sk,b)1+N(Sk,s)]a_{k+1} = \arg\max_{s} \left[ Q(S_k, s) + c_{\text{puct}} P(S_k, s) \frac{\sqrt{\sum_{b} N(S_k, b)}}{1 + N(S_k, s)} \right]


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 yy. PRMs evaluate per-step validity probabilities rk∈[0,1]r_k \in [0, 1] 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-NN). 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:

  1. 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.

  1. Verifier Goodharting and Reward Exploitation:

When searching over large candidate pools (N>103N > 10^3) 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).

  1. Step Context Window and Memory Overhead:

Evaluating B×MB \times M candidate steps across KK 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).


Update (Oct 19, 2026)

  • Repeated sampling raises coverage, the share of problems solved by any sample, roughly log-linearly with the number of samples, which makes a reliable verifier the bottleneck (Brown et al., 2024).
  • ThinkPRM trains a generative verifier that reasons step by step before scoring and needs far fewer process labels than discriminative PRMs (Khalifa et al., 2025).

For a less mathematical introduction to the same idea, read Process Reward Models: How Step-by-Step Supervision and Search Drive LLM Reasoning.

  • Why outcome rewards are not enough: an outcome reward model scores only the final answer, so a solution can reach the right answer through flawed reasoning and still be rewarded. Uesato et al. (2022) measured this trace error, and Lightman et al. (2023) found that process supervision outperformed outcome supervision on MATH.

Sources

Frequently asked questions

How do Process Reward Models differ from Outcome-Supervised Reward Models?

Unlike ORMs which assign a single scalar reward based only on the final terminal answer, PRMs evaluate the validity of each individual reasoning step. This provides localized feedback that isolates specific logical errors, whereas ORMs suffer from diffuse feedback that cannot distinguish between a minor arithmetic slip and invalid premises.

What are the two main training paradigms for Process Reward Models?

The two dominant paradigms are Human Active Learning, exemplified by PRM800K where annotators label steps sequentially, and Automated Monte Carlo Estimation, exemplified by Math-Shepherd which uses stochastic rollouts to estimate step validity without human intervention.

How do PRMs improve inference-time search in LLMs?

PRMs enable dynamic guidance during inference by serving as heuristic evaluation functions or prior policy modulators. They facilitate algorithms like Best-of-N reranking, step-level beam search with early pruning, and Monte Carlo Tree Search (MCTS), effectively converting test-time compute into reasoning gains.

Why is credit assignment ambiguous in standard autoregressive language models?

In complex multi-step reasoning, an error introduced early in the chain typically invalidates all downstream deductions. Standard models using outcome supervision provide identical negative feedback to solutions with minor slips versus those built on invalid premises, making it difficult to identify the exact source of the reasoning failure.

AILLMMachine LearningReinforcement LearningReasoning