Process supervision: a correct result can hide an incorrect step
过程监督
Contrast step labels with outcome labels, censor after the first error and inspect score aggregation.
process-supervisionTwo wrong steps can end at the right number
For the authored task , compare the traces 5 → 10 and 6 → 10. The first is valid. The second adds incorrectly, then multiplies its claimed intermediate value incorrectly, but still ends at the correct answer 10. A final-answer label cannot distinguish them.
Process supervision supplies labels about intermediate steps rather than only a final outcome. Lightman and colleagues, sections 2.4–2.6, train process reward models on positive, negative and neutral step labels and compare them with outcome reward models. Their selected paper version studies reward-model training and best-of-N selection with a fixed generator; it does not train that generator with reinforcement learning.
A step score’s meaning depends on its target. Snell and colleagues, section 5.1, instead train process-based scores using sampled continuations that estimate future success under a generation policy. Predicting whether a written step is valid and predicting whether a continuation will eventually succeed are different tasks.
Specify the label before choosing the score
An outcome label based only on a final answer is:
It can be useful and inexpensive when the answer is automatically checkable. It does not certify the intermediate argument. Lightman’s section 2.5 explicitly discusses false positives from incorrect reasoning that reaches the correct final answer.
Let be a binary step-validity label in our toy. To supervise through the first error and stop afterward, use:
The first wrong step still receives a label; later steps are censored. This binary example has no neutral labels. The original dataset’s neutral category represents ambiguity and must not silently be treated as a negative or discarded without a declared rule.
For predicted step probabilities , one masked, regularized logistic loss is:
Here the sum runs over all retained training steps and . This reduction gives each retained step equal weight; it is not equal weight per complete solution. Other weighting choices define different objectives. The regularizer includes both coefficients in this toy and is not claimed to be the original paper’s training recipe.
To keep the calculation transparent, we give the classifier an oracle arithmetic-error feature , the absolute difference between the stated result and the result of the stated local operation:
This feature already requires arithmetic verification. Fitting the classifier therefore calibrates a supplied feature; it does not learn arithmetic or validate natural-language proofs. Its redundancy is intentional: it lets us isolate what changes when supervision attaches to steps rather than only outcomes.
For the matrix of retained features and label vector , the gradient is:
The outcome model uses the same fitting routine with a final-answer residual and outcome labels. These are distinct input features and labels, so their losses are not an apples-to-apples model-quality ranking.
Lightman’s section 2.6 aggregates step predictions by multiplication. We reproduce that scoring operation:
Treating this score as a calibrated probability that all steps are correct requires an appropriate joint or conditional probabilistic model; multiplying arbitrary classifier confidences does not provide that guarantee. Snell’s rollout-value recipe instead uses its final-step prediction for within-solution aggregation. Choose the rule to match what the score was trained to predict.
The product also responds to length. If every step receives 0.9:
A longer solution can get a lower aggregate even without a single low-scoring step. This is not necessarily an error, but comparisons need to account for the intended event and length distribution.
Fit both labels without pretending to learn mathematics
The complete NumPy program enumerates 18 tasks with and , then makes four authored two-step variants per task. There are 72 solutions and 144 total steps; first-error censoring retains 108 step labels, of which 54 are positive. Training uses 2,000 gradient updates and .
"""Original process/outcome supervision example with explicit arithmetic-error features; not learned reasoning."""
import json
import numpy as np
def sigmoid(x):return np.exp(-np.logaddexp(0,-np.asarray(x,dtype=float)))
def loss_grad(w,x,y,regularization=.02):
if (x.ndim!=2 or w.shape!=(x.shape[1],) or y.shape!=(len(x),) or not len(x)
or not np.isfinite(x).all() or not np.isfinite(w).all() or not np.isfinite(y).all()
or np.any((y<0)|(y>1)) or not np.isfinite(regularization) or regularization<0):raise ValueError("Invalid logistic inputs")
z=x@w;loss=np.mean(np.logaddexp(0,z)-y*z)+regularization*float(w@w)/2
return float(loss),x.T@(sigmoid(z)-y)/len(x)+regularization*w
def fit(x,y):
w=np.zeros(x.shape[1])
for _ in range(2000):w-=.3*loss_grad(w,x,y)[1]
return w
def inspect(a,b,c,intermediate,answer):
residuals=[abs(intermediate-(a+b)),abs(answer-intermediate*c)]
labels=[int(e==0) for e in residuals]
# Label first error itself, then censor later steps.
mask=[1,labels[0]]
outcome_error=abs(answer-(a+b)*c)
return dict(residuals=residuals,labels=labels,mask=mask,
outcome_error=outcome_error,outcome_label=int(outcome_error==0))
def dataset():
process_x=[];process_y=[];outcome_x=[];outcome_y=[];records=[]
for a in range(1,4):
for b in range(1,4):
for c in [2,3]:
s=a+b;t=s*c
for mid,end in [(s,t),(s+1,(s+1)*c),(s+1,t),(s,t+1)]:
r=inspect(a,b,c,mid,end);records.append(r)
for error,label,keep in zip(r['residuals'],r['labels'],r['mask']):
if keep:process_x.append([1,error]);process_y.append(label)
outcome_x.append([1,r['outcome_error']]);outcome_y.append(r['outcome_label'])
return tuple(np.asarray(x,dtype=float) for x in [process_x,process_y,outcome_x,outcome_y])+(records,)
def demo():
px,py,ox,oy,records=dataset();pw=fit(px,py);ow=fit(ox,oy)
cases=[]
for name,mid,end in [('valid',5,10),('wrong_then_lucky',6,10),('valid_then_wrong',5,11)]:
r=inspect(2,3,2,mid,end);step=sigmoid(np.column_stack([np.ones(2),r['residuals']])@pw)
cases.append(dict(name=name,**r,step_probabilities=step.tolist(),process_product=float(np.prod(step)),outcome_probability=float(sigmoid(np.array([1,r['outcome_error']])@ow))))
return dict(process_weights=pw.tolist(),outcome_weights=ow.tolist(),solution_count=len(records),
retained_steps=len(py),total_steps=2*len(records),process_loss=loss_grad(pw,px,py)[0],
outcome_loss=loss_grad(ow,ox,oy)[0],cases=cases,
length_product=[.9**k for k in [1,2,5,10]],
note='Arithmetic residual is an oracle input feature; training calibrates that feature and does not learn arithmetic or natural-language validity.')
if __name__=='__main__':print(json.dumps(demo(),indent=2))
The fitted process probabilities for 5 → 10 are about (0.80931726,0.80931726), with product 0.65499443. For 6 → 10 they are about (0.13285954,0.00550052), with product 0.000730797. The outcome model gives both traces the same probability, 0.82688052, because both final residuals are zero.
These are model scores, not measured accuracies. The second step after the first error receives no training label in that trace, even though the fitted classifier can score it at evaluation time. Such evaluation can involve features outside the retained training distribution.
Each full update costs for labeled steps and features; storing the features costs . The outcome model has 72 rows instead. Creating reliable step annotations is often the expensive part in a real system; our oracle residual computation makes that burden unrealistically easy on purpose.
More detailed supervision is not automatically more reliable supervision
A step can be correct but irrelevant, ambiguous, or based on an invalid premise. Define whether labels concern local arithmetic, logical consequence, usefulness or future success. These notions should not be collapsed into a universal “process quality” score.
Human annotation can be inconsistent, and model-generated labels can inherit the generating model’s errors. Censoring limits information after a failure; active data collection changes which mistakes are represented. Lightman’s large-scale outcome and process models also have different training data, so the paper separately studies a smaller-scale comparison. Preserve that qualification when discussing results.
The toy has perfect arithmetic features and no neutral labels. It demonstrates supervision granularity, masking and aggregation, not the superiority of an automatic proof checker or a language-model PRM. Independently evaluate final outcomes and relevant step properties, particularly after a search algorithm begins exploiting the scorer.
Ask what each label actually says
- What labels and mask does
6 → 10receive for ?
Answer: Both local labels are zero: 6 is not , and 10 is not . The mask is (1,0), because the first error itself is supervised and the next step is censored. The outcome label is still one.
- Why does the outcome model give the valid and lucky traces identical scores?
Answer: It sees only the final-answer residual, which is zero for both. The label and input deliberately omit the distinguishing intermediate statements.
- Ten steps each score 0.9. Is their product also 0.9?
Answer: No; it is . The aggregation rule introduces a length effect that needs an interpretation, not just a larger-is-better label.
- Has the process classifier learned to add and multiply from examples?
Answer: No. Its input already contains the arithmetic residual computed by an oracle. Training fits a mapping from that feature to labels. General mathematical reasoning would require a different experiment and evidence.
A PRM label can mean validity or value-to-go
Lightman’s sections 2.1 and 2.4–2.6 define the fixed-generator evaluation, annotation categories, masking and product score. Snell’s sections 5.1–5.2 show why rollout-value targets call for different aggregation and search interpretation. Record the target, conditioning context and evaluation protocol before comparing two systems both called a PRM.
Make a prediction, then check
Can a result-only label distinguish a valid solution from errors that happen to end correctly?
Learning objectives
- Specify what a step score predicts before choosing a loss or aggregation rule.
- Reproduce the finite example and state its experimental limits.
Prerequisites & connections
Explore related knowledge →References
- Let’s Verify Step by Step — v1
Hunter Lightman; Vineet Kosaraju; Yura Burda; Harri Edwards; Bowen Baker; Teddy Lee; Jan Leike; John Schulman; Ilya Sutskever; Karl Cobbe · 2023 - Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters — v1
Charlie Snell; Jaehoon Lee; Kelvin Xu; Aviral Kumar · 2024
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-20 · Single AI author. Read sections2/2.1 text, viewed PDF4/5/6 sections2.3–2.6: fixed generator, positive/negative/neutral labels, first-error censoring, final-answer false positives and product PRM score. No human dataset or GPT-4 reproduction. Viewed PDF5/6/7, sections3.1/3.2,4,5.1/5.2: budget allocation, oracle/model-predicted difficulty, excluded difficulty-estimation cost, two-fold selection, rollout value targets and aggregation/search. No scaling benchmark replicated. Seven paired equations and four explained exercises. First-error labels retained, later steps censored; exact 72/144/108 counts, gradients and stationarity checked. Arithmetic residuals are oracle features, not learned reasoning; product scores not automatically calibrated.
- First-error labels retained, later steps censored; exact 72/144/108 counts, gradients and stationarity checked. Arithmetic residuals are oracle features, not learned reasoning; product scores not automatically calibrated.
- Four computed SVG variants per topic;11 numeric/geometry tests and36 responsive cases passed. Twelve selected final captures directly viewed. Full article acceptance recorded separately.
Source locations checked:
- Let’s Verify Step by Step — v1 · Read sections2/2.1 text, viewed PDF4/5/6 sections2.3–2.6: fixed generator, positive/negative/neutral labels, first-error censoring, final-answer false positives and product PRM score. No human dataset or GPT-4 reproduction.
- Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters — v1 · Viewed PDF5/6/7, sections3.1/3.2,4,5.1/5.2: budget allocation, oracle/model-predicted difficulty, excluded difficulty-estimation cost, two-fold selection, rollout value targets and aggregation/search. No scaling benchmark replicated.
Related topics