Outcome and Process Reward Models › Aggregating Step Scores
Language AI HandbookAll chapters Suppose a PRM gives step scores for a trajectory of 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: .
- Minimum: .
- Last: .
- Mean: .
- 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 mean that step meets the chosen criterion. Fix an observed trajectory for which the conditional law is defined. The chain rule factors the probability that all steps meet the criterion.
The first factor conditions only on . Each later conditional is defined while the earlier events have positive joint probability given . 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 , conditional independence given 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]Expand
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]Expand

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!