Search

Search papers and lessons

Process Reward Model

Level 4 · 12 min read

A process reward model scores every step of a model's reasoning instead of only the final answer, so errors are located and the whole chain can be ranked by its weakest step.

On this page

  • Colour = topic mix
  • Probability
  • Calculus
  • Linear algebra
  • Neural network basics
  • Discrete math
  • Losses & regularization
  • Sign in to see your progress

TL;DR

A process reward model (PRM) is a reward model that judges a solution one step at a time. Given a multi-step solution, it outputs, for each step, the probability that the step is correct. A solution's overall score can then be the probability that every step is correct, so a single bad step lowers the whole chain. Trained on step-level human labels, a PRM tells you where a solution went wrong, not just that it did.

Where you'll see it: best-of-N selection for math and code reasoning, where the model samples many solutions and a PRM picks the one whose reasoning holds up, and as the feedback signal for reinforcement learning on reasoning traces.

Intuition

Imagine a teacher marking a long algebra exam. One option is to mark only the final number: right or wrong. A student who made a sign error in line three and then got lucky in the last line gets full credit, and the teacher learns nothing about where the reasoning broke. The other option is to read every line and circle the first mistake. The second teacher gives less ambiguous feedback and can say exactly what to fix.

An outcome reward model (ORM) is the first teacher. It reads the whole solution and gives one score, usually from the last token. A process reward model is the second teacher. It assigns a score after each step, so the training signal is local. The reasoning is checked where it happens.

This matters for two reasons. The first is accuracy: when you sample many solutions and pick the best one, you want the one that is actually correct, not one that reaches the right answer by luck. The second is interpretability: a step-level label says which line is wrong, which a person can read and a learning algorithm can use.

The cost is that step labels are expensive. The final answer of a math problem can be checked by a program. A step cannot be checked that way without someone reading the reasoning, which is why the work on PRMs is largely about how to collect good step labels cheaply.

flowchart LR
  Q["Problem"] --> S1["Step 1"]
  S1 --> S2["Step 2"]
  S2 --> S3["Step 3"]
  S3 --> A["Final answer"]
  S1 -.-> p1["P(step 1 correct)"]
  S2 -.-> p2["P(step 2 correct)"]
  S3 -.-> p3["P(step 3 correct)"]
  p1 --> score["Solution score = product of step probabilities"]
  p2 --> score
  p3 --> score

The math

Setup

Let x\mathbf{x} be a problem and let a solution be a sequence of steps y=(y1,…,yK)\mathbf{y} = (y_1, \ldots, y_K), where KK is the number of steps. Write y≤k\mathbf{y}_{\le k} for the first kk steps. Each step is a block of text, with a newline between steps in the format used by the generator.

The PRM is a network pθp_\theta that, for each step kk, returns the probability that the step is correct given the problem and the steps before it:

pθ(step k correct∣x,y≤k)p_\theta\big(\text{step } k \text{ correct} \mid \mathbf{x}, \mathbf{y}_{\le k}\big)

Write ck∈{0,1}c_k \in \{0, 1\} for the true label of step kk, so ck=1c_k = 1 when a human marks the step correct. The PRM is trained on sequences of labels, one per step.

Training: a classification loss per step

In Lightman and colleagues' setup, the PRM reads the solution once and predicts a single token for each step, at the position right after that step's last token. The target is the human label. Training maximises the log-likelihood of these targets, which is a standard cross-entropy loss applied at every step:

L(θ)=− E(x,y,c)[∑k=1K(cklog⁡pθ(k)+(1−ck)log⁡(1−pθ(k)))]\mathcal{L}(\theta) = -\,\mathbb{E}_{(\mathbf{x}, \mathbf{y}, \mathbf{c})}\Big[ \sum_{k=1}^{K} \big( c_k \log p_\theta^{(k)} + (1 - c_k) \log(1 - p_\theta^{(k)}) \big) \Big]

where pθ(k)p_\theta^{(k)} is shorthand for the PRM's probability at step kk. The point of this form is that nothing special is needed. A language model with a single output token per step can be trained in the usual pipeline. The reward model of the pairwise kind needs a comparison; the PRM needs only labels.

Turning step scores into a solution score

To rank whole solutions, you need one number. The paper defines the PRM score of a solution as the probability that every step is correct. If the steps are treated as independent, that is a product:

score(y)=∏k=1Kpθ(k)\mathrm{score}(\mathbf{y}) = \prod_{k=1}^{K} p_\theta^{(k)}

The product means a solution with one weak step is penalised, however strong its other steps are. It is a stricter criterion than an average. The paper notes that other scoring strategies exist and gives them in an appendix, so the product is a choice, not the only option. Working with logs avoids underflow, since the sum of log-probabilities is numerically stable: log⁡score(y)=∑klog⁡pθ(k)\log \mathrm{score}(\mathbf{y}) = \sum_k \log p_\theta^{(k)}.

Supervising up to the first error

Lightman and colleagues supervise each solution only up to its first incorrect step. For a correct solution every step is labelled correct. For an incorrect solution, labels are given until the first error, which is marked negative, and nothing after it is labelled. Their argument is that labelling the first error is equivalent to deciding whether the whole solution is correct, so labelling costs stay comparable with outcome labelling.

Each step receives one of three labels: positive (correct and reasonable), negative (incorrect or unreasonable), or neutral (ambiguous). Neutral labels let the labeller defer a decision about borderline cases. The paper trains the PRM to predict the probability of each of the three labels, and when scoring it treats neutral as positive (its appendix reports that the other choices change accuracy only slightly). The binary loss above is the two-label simplification of this.

Active learning

Random sampling wastes labels on easy solutions. The paper selects solutions that a current PRM rates as convincing but that have a wrong final answer, since these are the ones most likely to contain an undetected mistake. Their selection in the active learning experiment takes 80 percent of each batch from the most convincing wrong-answer samples and 20 percent from the most convincing remaining samples. They estimate this makes labelling about 2.6 times more data efficient than uniform labelling.

Worked examples

Example
Scoring two solutions by their steps (illustrative numbers)

Two solutions to the same problem have per-step probabilities from a PRM. These numbers are chosen to be hand-computable; they are not from a trained model.

Solution A has four steps with probabilities 0.90.9, 0.950.95, 0.80.8 and 0.990.99.

  1. Product of the first two steps: 0.9×0.95=0.8550.9 \times 0.95 = 0.855.
  2. Times the third: 0.855×0.8=0.6840.855 \times 0.8 = 0.684.
  3. Times the fourth: 0.684×0.99≈0.6770.684 \times 0.99 \approx 0.677.

Solution B has three steps with probabilities 0.990.99, 0.60.6 and 0.990.99.

  1. Product: 0.99×0.6=0.5940.99 \times 0.6 = 0.594, then 0.594×0.99≈0.5880.594 \times 0.99 \approx 0.588.

Interpretation: Solution B looks strong at two of its three steps, but the middle step is doubtful, and that drags the product down. Solution A is more uniformly plausible, and the product ranks it higher, at about 0.68 against 0.59. The PRM would tell you the middle step of B is the place to look. A final-answer-only scorer would not have seen the difference at all.

Example
Why the product is stricter than the average

Take one solution with steps 0.990.99, 0.990.99, 0.990.99, 0.990.99, 0.990.99, and 0.20.2 at the sixth step.

  1. Product: 0.995≈0.9510.99^5 \approx 0.951, then 0.951×0.2=0.1900.951 \times 0.2 = 0.190.
  2. Arithmetic mean of the six step probabilities: (5×0.99+0.2)/6=(4.95+0.2)/6=5.15/6≈0.858(5 \times 0.99 + 0.2) / 6 = (4.95 + 0.2) / 6 = 5.15 / 6 \approx 0.858.

Interpretation: the mean says the solution is about 86 percent sound, which hides a step the PRM thinks is probably wrong. The product gives 19 percent, which matches the meaning of "every step is correct". This is why the paper defines the score as a product: it asks whether the whole chain holds, not whether most of it does.

Tradeoffs and failure modes

SituationProblemBetter choice
Final answer can be checked by a programStep labels cost more than the check needsOutcome supervision, or a PRM trained on automatic labels with care
Reasoning steps are ambiguous or stylisticLabellers disagree, and "correct step" is unclearNeutral labels, clear labelling guidelines, or outcome-level feedback
Solutions take many stepsThe product of many probabilities underflows or is dominated by noiseWork in log space, and check the score on long solutions
Model learns to pass the PRMOptimising against the PRM can reward plausible-looking steps that are wrongKeep an outcome check alongside the PRM
Errors are not localA step can be locally plausible but wrong in its consequenceEvaluate on final answers too, and watch for steps that look fine in isolation

The main failure mode is reward hacking. A PRM is a learned model, so it has blind spots. A policy trained hard against it can learn phrasings that the PRM likes and that are not reasoning. The product score also assumes that step correctness is roughly independent, which is false: a wrong early step makes later steps wrong too. The PRM sees the earlier steps, so its probabilities are conditional, but the product of conditional probabilities is still a rough summary, not a calibrated probability of a whole correct solution.

Compared with a RLHF pipeline that uses a single preference score, a PRM gives denser signals, which can help with credit assignment across long chains, at the price of labels for every step.

History

Process supervision was not new in 2023. Lightman and colleagues cite Uesato et al. (2022), who compared outcome and process supervision on grade-school math and found similar final-answer error rates, with process supervision reaching them using less data. Their outcome reward model follows Cobbe et al. (2021). What Lightman et al. added, by their own account, was a more capable base model (GPT-4), a large human-labelled step dataset, and the active-learning selection described above.

Results

Lightman and colleagues train on PRM800K, a dataset of 800,000 step-level human labels across 75,000 solutions to 12,000 problems from the MATH dataset. They hold out 500 MATH test problems for evaluation and use best-of-N search: sample many solutions, let the reward model pick one, and grade its final answer. On this subset the large-scale process-supervised model solves about 78 percent of problems (78.2 percent in the body of the paper).

Compared with an ORM, the PRM gives higher accuracy at every value of N they test, and the gap widens as N grows. The paper notes that the two reward models were trained on different datasets, so this is not a clean apples-to-apples comparison; the small-scale experiments were designed to address that. This is the point that matters most for selection: an ORM can be fooled by solutions with the right answer and wrong reasoning, and a PRM is less easily fooled. In an out-of-distribution test on recent AP and AMC STEM questions (the text says 224 held-out questions, while the table's problem counts sum to 234), the aggregate scores are 72.9 percent for the PRM, 63.8 percent for the ORM and 61.3 percent for majority voting.

The paper also reports that process supervision beat outcome supervision in a small-scale controlled comparison, and that active learning gave about 2.6 times the data efficiency of uniform labelling. The authors state these results as their own measurements; treat them as results from one lab, on one dataset, with one generator family.

Why it mattered

The paper showed concretely that step labels can beat final-answer labels for best-of-N selection on MATH, and it released PRM800K so others could train and compare. The central tension the paper identifies remains: step labels are costly to collect by hand.

Check yourself

QuestionRecall: what does a process reward model output, and how is the output different from an outcome reward model?Show answer

A PRM outputs, for each step of a solution, the probability that the step is correct given the problem and the steps before it. An outcome reward model outputs one score for the whole solution, read from its last token, and is trained on whether the final answer is correct. The PRM's signal is local to each step, while the ORM's is global.

QuestionComputation: a solution has step probabilities 0.90.9, 0.80.8 and 0.50.5. What is its PRM score as defined in the paper, and what is the arithmetic mean for comparison?Show answer

The PRM score is the product 0.9×0.8×0.5=0.72×0.5=0.360.9 \times 0.8 \times 0.5 = 0.72 \times 0.5 = 0.36. The arithmetic mean is (0.9+0.8+0.5)/3=2.2/3≈0.733(0.9 + 0.8 + 0.5) / 3 = 2.2 / 3 \approx 0.733. The product is 0.36, which is about half the mean, because the product must be high at every step for the solution to score well.

QuestionWhy does the paper supervise each solution only up to its first incorrect step?Show answer

Labelling up to the first error costs about the same as deciding whether a solution is correct, because finding the first mistake answers that question. It also keeps the comparison with outcome supervision fair: for a correct solution, both forms give the same information, and for an incorrect one, both reveal that a mistake exists, while process supervision additionally shows where it is. Labelling past the first error would add cost without answering the question the comparison asks.

QuestionApplied: you sample 64 solutions to a competition problem. The best one by the PRM has a lower final-answer accuracy on a held-out set than the best one by majority vote. Name two explanations and what you would check for each.Show answer

First, the PRM may be miscalibrated on this distribution, giving high step scores to fluent but wrong reasoning. Check the PRM's agreement with human step labels on a sample from this problem type. Second, the PRM may favour solutions that are long and detailed, while the correct ones are short. Check the relationship between solution length and PRM score on labelled data. In either case, the fix is on the reward side: more or better step labels for the distribution, or a combined score that also uses the final answer.

QuestionApplied: why might active learning, which selects convincing wrong-answer solutions for labelling, bias the reward model if it is used alone to train an outcome model?Show answer

Convincing wrong-answer solutions are mostly negatives, so a dataset built this way is heavily skewed toward incorrect outcomes. An outcome model trained on that skew would learn that most solutions are wrong, which is not true of the real distribution, and its scores would be miscalibrated. The paper says that training the ORM on PRM800K alone would be problematic for this reason, and it trains its outcome model on 100 uniformly sampled solutions per problem instead.

Sources