Outcome and Process Reward Models › Aggregating Step Scores

Michael BrenndoerferNovember 29, 20264 min read
Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 303Outcome and Process Reward Models › Aggregating Step Scores
Reading section 3 of 8 · Aggregating Step Scores · 4 minSection 3 of 8 · 4 min

Section 3 of 8 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Suppose a PRM gives step scores p1,…,pTp_1,\dots,p_T for a trajectory of T≥1T\geq 1 steps. Each score estimates how likely that step is to meet the chosen criterion given its prefix. To rank whole trajectories, reduce the sequence to a single score. Two reductions can give different rankings from the same PRM.

The most common options:

  • Product: S∏=∏t=1TptS_{\prod} = \prod_{t=1}^{T} p_t.
  • Minimum: Smin⁡=min⁡tptS_{\min} = \min_t p_t.
  • Last: Slast=pTS_{\text{last}} = p_T.
  • Mean: Smean=1T∑tptS_{\text{mean}} = \frac{1}{T}\sum_t p_t.
  • Learned combiner: a small model trained to map the score sequence to a trajectory label.

A smaller factor lowers the product when the other factors are fixed and positive. The minimum keeps the lowest score, and the mean weights every score equally. The last-step reduction keeps the final score, which can already reflect the prefix. A learned combiner fits the reduction from trajectory labels. Evaluate the choice against the behavior you want from the scorer.

Let AtA_t mean that step tt meets the chosen criterion. Fix an observed trajectory xx for which the conditional law is defined. The chain rule factors the probability that all steps meet the criterion.

P(A1∩⋯∩AT∣x)=∏t=1TP(At∣x,A1,…,At−1).P(A_1 \cap \cdots \cap A_T \mid x) = \prod_{t=1}^{T} P(A_t \mid x, A_1, \ldots, A_{t-1}).

The first factor conditions only on xx. Each later conditional is defined while the earlier events have positive joint probability given xx. Once an earlier conjunction has probability zero, the full joint is zero and the remaining factors need no evaluation.

Multiplying the exact conditional probabilities gives the joint probability. Multiplying estimates of those factors gives an estimate of the joint. For marginal probabilities given xx, conditional independence given xx is sufficient. A prefix-based grader sees different inputs and generally has no information about the true labels of the preceding steps.

Lightman et al. ranked solutions by multiplying their step scores and counted neutral ratings as positive in the step scores. The probability that all steps are valid and the probability that the final answer is correct are different targets.

For scores in [0, 1], appending a factor cannot increase the product. If every step has the same score strictly between 0 and 1, a longer sequence receives a lower product.

PythonIn [4]
CollapseExpand
import matplotlib.pyplot as plt
import numpy as np

lengths = np.arange(1, 11)
per_step_grid = [0.80, 0.90, 0.99]
product_curves = {p: p**lengths for p in per_step_grid}
VisualizationOut [5]
CollapseExpand
Line chart showing product aggregation declining with trajectory length while min and last stay flat.
Product aggregation falls geometrically when every step has the same score between zero and one. The horizontal line shows the minimum and last-step scores when all steps score 0.90.

If every step gets 0.99, a four-step path scores 0.961 and an eight-step path scores 0.923. The difference comes entirely from the number of factors.

The minimum retains the lowest score. Last-step aggregation discards earlier scores, although the step model can still use the prefix to compute its final score. A mean can dilute a low score among many high ones.

For reranking, compare the selected candidates under several reductions on held-out data. For training, inspect fresh outputs from the updated policy to see whether the reward improved the intended behavior.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy