Paper notes

Let's Verify Step by Step: Scoring Every Reasoning Step Beats Checking Only the Final Answer

OpenAI compares outcome and process supervision on MATH. A reward model trained on 800K human step labels (PRM800K) solves 78.2% of problems at best-of-1860, against 72.4% for an outcome reward model and 69.6% for majority voting. A small simulation shows why step labels save data.

Published Updated 13 min read

On this page
  1. Why this paper matters
  2. Setup
  3. Results
  4. Checking it with code
  5. Limitations and what to keep in mind
  6. What to take from this paper
  7. Further reading
  8. FAQ

Why this paper matters

Large models still make logical mistakes in multi-step reasoning, often called hallucinations. Two ways to train a reliable reward model that picks out correct reasoning exist: outcome supervision looks only at the final answer, which is cheap to label (MATH answers can be checked automatically) but gives a sparse signal; process supervision has people label each step, a richer signal that costs human effort.

Earlier, Uesato et al. (DeepMind, 2022) had run a small-scale comparison on the grade-school math set GSM8K. This paper (Lightman et al., OpenAI, posted at the end of May 2023) takes it to large scale: on the harder MATH, with GPT-4 as the base model, people labeled 800K steps over 75K solutions to 12K problems (PRM800K), and the resulting process reward model (PRM) clearly beats an outcome reward model (ORM) and majority voting. Later discussions of process rewards and test-time search often cite it (see Reasoning RL).

Setup

The paper studies the reward model itself and does not train the generator with reinforcement learning. A fixed generator samples many solutions per problem, the reward model scores them, the top-scoring one is selected (best-of-N), its final answer is checked automatically, and the fraction correct is the reward model’s score.

ItemDetail
Large-scale modelsAll finetuned from the GPT-4 base model, which only predicts the next token and has had no RLHF
Small-scale modelsSimilar design to GPT-4, pretrained with roughly 200 times less compute
Extra pretrainingAll models are finetuned first on MathMix, about 1.5B math-relevant tokens
Test setA 500-problem subset of the MATH test set (another 4.5K test problems went into the PRM800K training set)
PRM scoringProduct of per-step correctness probabilities
ORM training set100 uniformly sampled solutions per problem, no overlap with PRM800K, an order of magnitude larger than the PRM data

Choosing what to label. Among randomly picked solutions many errors are obvious and labeling them is not worth much. The paper instead surfaces “convincing wrong-answer solutions”: the current best PRM rates them highly yet the final answer is wrong, so the PRM is mistaken about at least one step, and the PRM is retrained several times during collection. This is the paper’s active learning.

Supervising only up to the first incorrect step. This keeps the comparison clean: for correct solutions both supervisions carry the same information, for incorrect ones both reveal a mistake and process supervision adds the location. Labeling cost also stays similar, because without an easily checked answer, judging a solution is the same as finding its first mistake.

Results

Large-scale comparison. With 1860 solutions per problem (Figure 3), best-of-1860 on the MATH subset:

MethodProblems solved
Outcome reward model (ORM)72.4%
Process reward model (PRM)78.2%
Majority voting69.6%

The ORM is only slightly better than majority voting. The PRM is better at every N and its lead widens as N grows, so it is better at searching a large pool of candidates. Combining PRM scores with majority voting (weighted voting) did not noticeably help.

Isolating the variables (small-scale synthetic supervision). The large-scale comparison has two confounders: the PRM and ORM training sets are not comparable (the PRM data was chosen by active learning, is biased toward wrong answers and an order of magnitude smaller), and outcome labels give positive labels to solutions that reach the right answer by chance with flawed reasoning. The paper therefore uses the large PRM to supervise small models so that the three reward models are trained on identical data and differ only in supervision: process supervision from the PRM, outcome supervision from the PRM, and outcome supervision from final-answer checking. With best-of-500, process supervision clearly beats both outcome variants at every data scale, and outcome supervision from the PRM beats final-answer checking because the latter gives positive labels to false-positive solutions. The paper is unsure which is the more appropriate outcome baseline but considers outcome supervision from the PRM more representative, since the main weakness of final-answer checking (false positives) may be over-emphasized on MATH.

Active learning. Comparing the slopes of the fitted lines with and without active learning, the paper estimates it is about 2.6 times more data efficient than uniform labeling. The largest active-learning dataset (200 samples per problem) slightly underperforms the trend, which the authors explain by it being a big part of the 1000-sample selection pool and thus lacking diversity. Also, iteratively retraining the selector during collection showed an instability the authors could not diagnose, and the results were no better.

Out-of-distribution generalization (Table 1). On recent STEM exams (100 samples per problem, best-of-100):

Subject (problems)ORMPRMMajority vote
AP Calculus (45)68.9%86.7%80.0%
AP Chemistry (60)68.9%80.0%71.7%
AP Physics (45)77.8%86.7%82.2%
AMC10/12 (84)49.1%53.2%32.8%
Aggregate (234)63.8%72.9%61.3%

Checking it with code

Three things. (1) The paper says outcome supervision must work out which step went wrong, a sparse signal, while process supervision is more precise. A small simulation isolates this mechanism: a solution has 12 steps, each correct with probability 0.85, so the whole solution is correct with probability 0.8512≈14.2%0.85^{12}\approx14.2\%; each step has a 5-dimensional feature, and wrong steps have a first feature higher by 1.5 on average (a weak signal). The two reward models have the same structure (6 parameters; a solution’s score is the log of the product of per-step correctness probabilities) and differ only in supervision: the PRM uses step labels up to the first wrong step, the ORM uses one label, whether the whole solution is correct. Each setting is trained 20 times with independent seeds and tested with best-of-32 on 1000 new problems. (2) The difference between product and minimum reductions. (3) Weighting Table 1 of the paper by problem count to check the “Aggregate” row.

This is a teaching simulation, not the paper’s experiment: steps are independent, labels are noiseless, the model is linear, and the ORM is restricted to the same step-wise product form as the PRM, whereas a real ORM is a large model reading the whole solution and is much more capable. It shows only one mechanism: with the same model, step labels save data compared with a single outcome label.

import math
import statistics as st

import torch
from torch.nn.functional import binary_cross_entropy_with_logits as bce
from torch.nn.functional import logsigmoid

torch.set_num_threads(1)
# steps, feature dim, P(step correct), signal strength
K, D, P_GOOD, SHIFT = 12, 5, 0.85, 1.5


def make(n, g, m=None):
    """n problems with m solutions each (one if m is None); K steps each."""
    shape = (n,) if m is None else (n, m)
    ok = torch.rand(*shape, K, generator=g) < P_GOOD  # is this step correct?
    x = torch.randn(*shape, K, D, generator=g)
    x[..., 0] += SHIFT * (~ok)  # wrong steps shift feature 0 by SHIFT
    return x, ok


def score(w, x):
    """Solution score: log of the product of per-step correctness."""
    return logsigmoid(x @ w[:D] + w[D]).sum(-1)


def fit(x, ok, kind):
    w = torch.zeros(D + 1, requires_grad=True)
    opt = torch.optim.Adam([w], lr=0.05)
    # number of wrong steps before each step
    before = (~ok).float().cumsum(-1) - (~ok).float()
    seen = before == 0  # steps up to the first wrong one are labeled
    for _ in range(300):
        opt.zero_grad()
        if kind == "PRM":  # process supervision: labels up to first error
            logit = x @ w[:D] + w[D]
            loss = bce(logit[seen], ok.float()[seen])
        else:  # outcome supervision: one label, is the whole solution correct
            s = score(w, x).clamp(max=-1e-6)
            y = ok.all(-1).float()
            loss = -(y * s + (1 - y) * torch.log1p(-s.exp())).mean()
        loss.backward()
        opt.step()
    return w.detach(), seen.sum().item()


def best_of_n(w, x, ok):
    pick = score(w, x).argmax(-1, keepdim=True)  # x: (problems, N, K, D)
    return ok.all(-1).gather(1, pick).float().mean().item()


print("solutions  PRM labels   ORM best-of-32   PRM best-of-32")
for n in (10, 30, 100, 300, 1000):
    res = {"ORM": [], "PRM": []}
    labels = []
    for seed in range(20):
        # train and test sets use independent seeds
        g_tr = torch.Generator().manual_seed(seed)
        g_te = torch.Generator().manual_seed(100_000 + seed)
        x, ok = make(n, g_tr)
        xt, okt = make(1000, g_te, 32)
        for kind in res:
            w, k = fit(x, ok, kind)
            res[kind].append(100 * best_of_n(w, xt, okt))
            if kind == "PRM":
                labels.append(k)
    f = lambda v: f"{st.mean(v):5.1f}±{st.stdev(v):<4.1f}"
    print(f"{n:9d} {st.mean(labels):10.0f}   {f(res['ORM'])}       "
          f"{f(res['PRM'])}")
rand = P_GOOD**K  # expected accuracy of picking a random solution
print(f"random pick {100*rand:.1f}%, "
      f"any of 32 correct {100*(1-(1-rand)**32):.1f}%")

# product vs minimum reduction: the product favors shorter solutions
for steps in (10, 30):
    p = [0.98] * steps
    print(f"{steps} steps of 0.98: product {math.prod(p):.3f} min {min(p)}")

# paper Table 1: problems, ORM, PRM, majority vote (per subject, %)
rows = [(45, 68.9, 86.7, 80.0), (60, 68.9, 80.0, 71.7),
        (45, 77.8, 86.7, 82.2), (84, 49.1, 53.2, 32.8)]
n = sum(r[0] for r in rows)
agg = [sum(r[0] * r[j] for r in rows) / n for j in (1, 2, 3)]
print(f"problems {n}; weighted ORM/PRM/MV = "
      + " / ".join(f"{a:.1f}" for a in agg) + " (paper: 63.8/72.9/61.3)")

Output (CPU, single thread, about 13 seconds):

solutions  PRM labels   ORM best-of-32   PRM best-of-32
       10         57    20.3±8.9         40.0±4.8 
       30        177    27.6±10.4        44.7±2.2 
      100        573    42.9±5.5         47.0±1.8 
      300       1700    46.1±2.4         47.7±1.8 
     1000       5758    47.3±2.0         47.6±1.8 
random pick 14.2%, any of 32 correct 99.3%
10 steps of 0.98: product 0.817 min 0.98
30 steps of 0.98: product 0.545 min 0.98
problems 234; weighted ORM/PRM/MV = 63.5 / 73.0 / 61.4 (paper: 63.8/72.9/61.3)

How to read these numbers:

  1. With little data the advantage of process labels is large. With 10 training solutions, the PRM reaches 40.0% best-of-32 accuracy and the ORM only 20.3% (a random pick gives 14.2%, and 99.3% of problems have at least one fully correct solution among 32). Ten solutions give the ORM 10 labels, while the PRM gets 57 step labels.
  2. With more data the gap disappears. With 300 solutions it is 47.7% against 46.1%, with 1000 it is 47.6% against 47.3%, and both sit on a plateau around 47%, which I suspect is the limit set by the weak per-step signal. So the simulation supports “process labels save data”, not “process supervision has a higher final ceiling”. The paper’s PRM stays ahead at large scale, partly because a real ORM faces a hard credit assignment problem on real solutions, which is not simulated here.
  3. The product favors short solutions. For steps of 0.98 each, 10 steps give a product of 0.817 and 30 steps give 0.545, while the minimum is 0.98 in both cases. In the paper’s appendix the two reductions differ by only 0.4 to 0.8 points (product 78.2% and minimum 77.6%; with neutral steps counted as wrong, 77.4% and 77.8%), and the paper admits the product is slightly biased against solutions with more steps.
  4. The Aggregate row of Table 1 matches, with small differences. Weighting by problem count I get 63.5 / 73.0 / 61.4 while the paper has 63.8 / 72.9 / 61.3, differing by at most 0.3 points, possibly due to rounding or how the aggregate is computed, and I cannot tell which. Also, the text says the test set has 224 problems while the table says 234, and I cannot tell which is right.

Limitations and what to keep in mind

  • Math only. The paper itself says it is unknown whether the conclusions hold outside math.
  • The supervision signals are not the same thing. In the large-scale experiments the ORM and PRM training sets are not comparable, hence the small-scale synthetic supervision as a complement; and in that experiment the “human supervision” is replaced by the large PRM.
  • Labeling cost. The 800K labels come from humans at high cost; the paper also notes that grading only by final answer occasionally misgrades solutions.
  • Contamination risk. The paper tried to remove MATH problems from MathMix with string matching but admits it cannot give strong guarantees.
  • The generator is not trained with RL. The paper only does search (best-of-N); whether a reward model can avoid being exploited inside RL is a separate question, and the PRM attempt in the DeepSeek-R1 report did not work out (see the DeepSeek-R1 explainer).
  • The toy simulation shows a mechanism only. Its assumptions are far simpler than reality.

What to take from this paper

  1. Credit assignment is the core value of process supervision. Telling the model which step is wrong carries far more information than telling it the whole solution is wrong.
  2. Isolate the variables when comparing. The paper points out the confounders of its large-scale comparison and separates them with synthetic supervision.
  3. Active learning saves labels. Labeling convincing wrong-answer solutions first is estimated to save about 2.6 times the data.
  4. A negative alignment tax. The paper argues that process supervision encourages models to follow a process endorsed by humans, which is more interpretable, and in math it performs better, so there is no alignment tax, even a negative one.
  5. Do not read the results as general. One domain, and a 500-problem test subset.

Further reading

FAQ

What is the difference between process supervision and outcome supervision?
Outcome supervision gives the whole solution one label based on whether the final answer is right. Process supervision has humans label every step as positive, negative or neutral. The paper supervises only up to the first incorrect step, so for correct solutions both carry the same information, and for incorrect ones both say there is at least one mistake while process supervision also says where.
How does a PRM score a complete solution?
The PRM outputs the probability that each step is correct, and the solution score is the product of those probabilities, i.e. the probability that every step is correct. The appendix compares product and minimum reductions. The best combination reaches 78.2% and the other three are between 77.4% and 77.8%, a small difference.
What is PRM800K?
The human step-label dataset released with the paper. The public release is the full unfiltered data (1,085,590 step labels over 101,599 solutions). For training, labels used for quality control and labels the labeler could not complete are dropped, leaving about 800,000 labels over 75K solutions to 12K problems. The solutions were picked by active learning, showing labelers solutions that the current best PRM rates highly but whose final answer is wrong.
Do the conclusions carry over to other domains?
The paper itself says it is unknown. All experiments are on math (MATH), where final answers can be checked automatically. The paper also notes that the main weakness of outcome labels, false positives with a correct answer but wrong reasoning, may be over-emphasized on MATH. Other domains need their own experiments.