Macalinao StudioLearnAll enriched lessons ↗
College path · 7 sectionsSwitch to high school ↗

College / LONGER LESSON prm

Process reward models: score the steps, check the claim

Distinguish process and outcome feedback, inspect step-level loss and aggregation, and evaluate verifier errors without treating scores as proofs.

Preparation: probabilities, averages and the reasoning and RLHF lessons.

Plan 25–40 minutes with the activities; this is a study estimate, not a timed requirement. Both paths have complete narration. Your notes and progress are kept separately for each level.

Section 01 / 07

Feedback can arrive before the final answer

College path. Distinguish process and outcome feedback, inspect step-level loss and aggregation, and evaluate verifier errors without treating scores as proofs. Preparation: probabilities, averages and the reasoning and RLHF lessons. Move between Signal Room, Workbench and Field Notes without losing your section. Pause before each worked solution.

An outcome reward judges a completed answer. A process reward model provides learned evaluations of intermediate steps, giving more information about where a solution may go wrong. This can support ranking, search or training, depending on how the system uses the scores. A process model is still a predictor trained from data, not a mathematical proof checker. Its labels, context and rubric determine what it learns to call good. Our experiment supplies fixed step scores and known toy labels so you can separate the scorer’s predictions from the constructed ground truth.

Process supervision describes the granularity of feedback; it does not uniquely specify the architecture, training objective or downstream search algorithm. The original study compares learned reward models under a particular math setting. Our binary scoring fixture is simpler than the original multi-category annotation scheme and does not reproduce its training or performance. We use it to inspect loss, ranking and threshold choices transparently.

Worked example. Candidate A begins with a correct total, makes a wrong subtraction and then repeats the wrong result as its conclusion. Candidate B contains only valid steps in our fixture. A final-answer label distinguishes their outcomes, while step labels identify where A first becomes invalid.

Outcome feedback: final result; process feedback: intermediate-step judgments

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Does a process score of 0.9 certify that a step is valid?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

No. It is a model score whose interpretation depends on calibration and training. The step still needs verification appropriate to the task, especially when later decisions rely on it.

Section 02 / 07

Define what counts as a step and a valid label

Step boundaries matter. Splitting one calculation into several sentences creates a different sequence of labels than grouping the whole calculation into one step. A labeler needs the original problem and enough preceding context to judge whether the step follows. Correct arithmetic can still be irrelevant or based on a false assumption. Write a rubric that distinguishes valid progress, uncertainty and error as needed. Our toy uses binary labels only: candidate A has labels one, zero, zero, and every step of candidate B is labeled one.

The PRM800K work includes richer step-level judgments and data-collection conventions; binary cross-entropy here is an explicit teaching simplification. Do not infer that real neutral or ambiguous labels should be forced into zero. Context-dependent validity, annotation disagreement and boundary choices affect both training targets and evaluation. A later step that merely repeats an invalid conclusion remains invalid under our stated rubric.

Worked example. A’s first claim says three boxes of eight contain 24 pencils, which is valid. Its second says subtracting five leaves 20, which is invalid. Its third declares 20 the correct remainder, also invalid. The first error is step two, and the final answer is wrong.

Toy labels: A=[1,0,0]; B=[1,…,1]

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Why is the final declaration in A not repaired by sounding confident?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

It repeats a conclusion that contradicts the original quantities. Confidence is not part of the arithmetic justification. The rubric labels the claim invalid despite its fluent wording.

Section 03 / 07

A wrong prediction has a measurable training cost

For a binary step label, cross-entropy rewards high predicted validity on valid steps and low predicted validity on invalid ones. A confidently wrong score receives a larger penalty than a cautious one. The Workbench shows the mean binary loss across both candidates’ labeled steps. These labels are supplied by us, not inferred from the scores. Lower loss on this tiny collection means closer fit to these labels; it does not establish generalization or good ranking on new problems. Keep training and held-out evaluation separate.

For validity score q and binary label y, binary cross-entropy is minus y log q minus one minus y times log one minus q. The denominator here is the total number of labeled steps across both candidates. Changing B’s step count changes that mixture, so losses at different counts are not a like-for-like model comparison. Probabilities are restricted away from zero and one to keep finite logs.

Worked example. An invalid step scored 0.2 has loss minus log 0.8, about 0.223. The same invalid step scored 0.9 has loss minus log 0.1, about 2.303. The label did not change; the second prediction is much more confidently wrong.

BCE(y,q)=−y log q−(1−y)log(1−q)

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. What loss would a valid step scored 0.8 receive?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

Minus log 0.8, about 0.223. For a valid label, the objective uses the predicted validity probability; for an invalid label, it uses one minus that probability.

Section 04 / 07

Combine step scores only with a stated rule

A downstream system often needs one score for a complete candidate. A product emphasizes the accumulation of imperfect scores; a minimum focuses on the lowest-scored step; an average can hide a weak step among stronger ones. None is automatically the correct rule for every task. Our experiment lets you compare all three and choose which one selects the candidate. Scores are deliberately imperfect: candidate A is known invalid, but the scorer can still rank it above B. The selected result must be compared with the known labels, not declared correct because it wins.

Multiplying marginal step scores does not generally yield a calibrated probability that all steps are valid. A conjunction interpretation requires appropriate conditional probabilities or other justified assumptions. A minimum and a mean have different semantics again. The original process-reward study evaluates a particular aggregation; our alternatives are illustrative comparisons, not a claim that its exact implementation uses all three.

Worked example. With A scores 0.9, 0.6 and 0.9, its product is 0.486, minimum 0.6 and mean 0.8. Four B steps scored 0.75 each yield product about 0.316, minimum 0.75 and mean 0.75. Product and mean select invalid A; minimum selects valid B.

Product=Πq_t; minimum=min q_t; mean=Σq_t / T

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Does the highest product score necessarily identify the valid solution in this fixture?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

No. At the stated scores it selects A, which has invalid steps. The experiment separates model ranking from ground truth so this failure stays visible.

Section 05 / 07

Length and segmentation can change a ranking

Multiplying values below one makes the product smaller as more factors are included. If two equally valid solutions receive similar scores per step, the longer one can have a smaller product. This does not prove that shorter reasoning is better. It shows that aggregation and step boundaries can influence ranking. In the Workbench, candidate B’s step count can change while every B step remains valid and scored 0.75. Watch its product fall while its mean and minimum stay fixed. Real systems must evaluate how these choices affect different solution styles.

For constant per-step score q, the product is q to the T, while the log product is T times log q. Computing in log space avoids numerical underflow but does not remove length dependence. If the scores were valid conditional probabilities of all preceding steps being correct, a length effect might have a justified probabilistic interpretation; arbitrary learned scores do not establish that interpretation by themselves.

Worked example. Three B steps scored 0.75 produce a product of 0.421875. Six such steps produce about 0.178. Every step is still labeled valid in the fixture. The score change came from the aggregation length, not a new error inserted into B.

log product = Σ log q_t; for equal q, log product = T log q

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. Does switching from product to log product fix the ranking’s length dependence?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

No. Logarithms preserve the ordering of positive products. They improve numerical stability and turn multiplication into addition, but the number of terms still matters.

Section 06 / 07

Use thresholds to locate suspicions, not declare certainty

A threshold can mark low-scored steps for review. Our rule flags a step when its score is strictly below the chosen threshold, so equality is not flagged. Raising the threshold catches more low-confidence steps but can also flag valid steps. Lowering it can miss invalid ones. The fixture reports true and false flags against its known labels and identifies the first flagged step of A. This is a diagnostic tool, not a complete decision policy: an invalid conclusion with a high score can still escape review.

Step-level detection and whole-solution ranking are separate objectives. The threshold should be calibrated on representative held-out data and chosen with the cost of false negatives and false positives in mind. Class balance matters. Our finite fixture has only a few specified labels, so its counts do not estimate real-world sensitivity or precision. An uncertainty category may be more appropriate than a forced binary decision in richer settings.

Worked example. At A scores 0.9, 0.2 and 0.9 with threshold 0.5, step two is flagged correctly, but the invalid conclusion at step three is missed. B’s 0.75 scores are not flagged. Raising the threshold to 0.8 flags every valid B step, adding false alarms without catching A’s 0.9 conclusion.

Flag step t when q_t < threshold; compare flags with independent labels

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. What does it mean when the first invalid step is caught but a later invalid claim is not?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

The checker has partial coverage on that example. Catching one error is useful, but it does not make every unflagged step valid. Inspect the remaining claims and report misses as well as detections.

Section 07 / 07

Evaluate a verifier where search will use it

A process reward model may score ordinary generated solutions well yet fail on candidates selected to maximize its score. Search changes which examples the verifier sees and can exploit its weaknesses. Test the complete generator-plus-verifier system on held-out problems, and retain an independent outcome check where available. Track step errors, final correctness, solution length and computation. Process feedback can make errors more visible and improve selection, but it remains one component in a larger system. It should not be advertised as proof that a model reasons faithfully or never makes mistakes.

Distribution shift, label quality, calibration and aggregation interact. Evaluate candidate ranking and first-error localization separately, then measure end-to-end selected-answer correctness at matched budgets. Active data selection can target informative mistakes, but selecting training examples using test answers contaminates evaluation. Our fixed-score experiment validates only the displayed loss and decision rules; it does not train a reward model or claim a benchmark improvement.

Worked example. A search repeatedly finds polished solutions with one hidden algebra error that the process model rates highly. Add those failures to a future training collection only after preserving an independent test split. Re-evaluate both the verifier and the final selected answers on new problems.

Verifier quality = held-out step checks + ranking checks + end-to-end outcomes

The displayed notation records the process described in the example. Keep its assumptions and units attached to the result.

Try it yourself. What evidence is stronger than showing that average process score increased?

Pause the narration and explain your reasoning before continuing to the worked solution.

Reveal worked solution

Show that independently checked final answers and step validity improved on held-out tasks under a documented budget. Include false positives, missed errors, length effects and cases where search exploited the score.

Final checkpoint. Does taking the log of a product remove length dependence? Option 1: Yes. Option 2: No; it preserves positive-product ordering. Option 3: Only for three steps.

Pause and choose an answer before continuing.

Reveal worked solution

Option 2 is correct. Log products improve numerical stability but retain the sum of per-step log scores.

LONGER RETRIEVAL, TOOL AND AGENT LESSONS

Find evidence, use tools and coordinate work

Worked examples, local narration and connected experiments at your level.

INTEGRATED CAPSTONE

Turn evidence into a cited briefing

Worked examples, local narration and connected experiments at your level.

Continue the learning path

Sources and scope

Original worked examples and teaching text, grounded in these primary references. Numerical fixtures explain mechanisms; model quality and hardware performance require separate measurements. Both levels share key examples, with different explanations and checkpoints.

Reset this college path?

This removes only this path’s notes, progress and experiments from this browser.