Act 2 · The Toolbox
9. Best-of-N: Select by Process
Download the Best-of-N PRM notebook (ipynb, 28 KB) ↓A vote judges solutions by how often their answer comes up. A verifier judges the outcome, scoring the finished solution as a whole. A third way is to judge the process: the steps the model took to reach the answer. But accuracy is decided by the final answer, so why judge the steps?
1. Outcome or process?
A judge trained only on the outcome reads the steps, but it was never taught to judge them. A process judge still takes the answer into account, but it is trained on the reasoning: the steps the model took to solve the problem.
That changes what the judge can do. An outcome judge can only give a second opinion on the answer: one score for how likely it is to be right, with no way to say where the solution went wrong. A general model asked the same question may even solve the problem again to check it. A process judge checks the reasoning. It can find the step where a solution goes wrong, which is a strong hint that the result is wrong. No answer key required. It also catches the rarer case of a right answer reached through a wrong step.
A judge trained to score the outcome is an outcome reward model (ORM). One trained to score every step is a process reward model (PRM)reference 1. Let's look at a quick side-by-side view of how each model judges.
These scores are illustrative.
problem Find the greatest common divisor of 3339, 2961 and 1491.
Outcome reward model (ORM)one score for the whole solution
- 3339 − 2961 = 378
- 2961 = 378 × 7 + 315
- 378 = 315 × 1 + 63
- 315 = 63 × 5 + 0
- 1491 = 63 × 23 + 42
- 63 = 42 × 1 + 21
- Answer: 21
answer 21
Process reward model (PRM)a score for every step
- 3339 − 2961 = 3780.96
- 2961 = 378 × 7 + 3150.94
- 378 = 315 × 1 + 630.95
- 315 = 63 × 5 + 00.93
- 1491 = 63 × 23 + 420.91
- 63 = 42 × 1 + 210.92
- Answer: 210.93
answer 21
score below 0.75 0.75 and up
2. How does a PRM pick?
A PRM gives every step a score, but Best-of-N needs a single pick. Each step is scored from the problem and the steps written before it, with no answer key. The solution with the highest score is always the one chosen, even when every solution has a weak step.
These scores are illustrative.
problem Find the greatest common divisor of 3339, 2961 and 1491.
Solution 1
Solution 2
Solution 3
Solution 4
3. Vote, verifier, processmeasured · 100 problems
Each judge gets the same 16 solutions to each problem and keeps one. Qwen2.5-Math-PRM-7B keeps the solution with the strongest weakest step. One chain is greedy; the 16 are sampled at temperature 0.9, where the vote does best.
The PRM solves 86 of 100 problems, the ORM solves 83 and the vote solves 81. A vote can only pick the most common answer, while the PRM can pick a less common one if its steps score higher. The PRM solves 5 problems the vote misses, and the vote solves none that the PRM misses. Of those 5, 2 are tied votes, which count as wrong. The PRM leads by 4 to 9 problems at every sampled temperature. Scoring by the last step solves 89, and by the product of steps 88.
4. Where the chain breaksmeasured · 1,600 chains
For each chain, we find the first step the PRM scores below the threshold, and measure how much of the chain comes after it.
- Wrong or no answer
- 96% have a low step, 41% of tokens come after it
- Right answer
- 21% have a low step, 13% of tokens come after it
At a score threshold of 0.75, 96% of wrong chains have a step below it, and 41% of their tokens come after that step. Among right chains, 21% have a step below it too, so a low score does not always mean a wrong chain.
Take two steps that arithmetic proves false, one in a wrong chain and one in a right chain. The PRM scores them 0.94 and 0.97, both above the threshold, so it misses errors too.
We know that a wrong step leads to a wrong solution, and a judge only catches it after the chain has been generated and the problem is considered finished. But what if the model could check its own reasoning at answer time?