Process reward models and tree search
Outcome versus process rewards, how process reward models (PRMs) score partial solutions, how beam search and tree search use them to prune bad reasoning early, why PRM quality decides everything, and how PRMs are trained. With a runnable toy task where search with a good PRM matches best-of-200 at a fraction of the cost.
By Sandip Maity, Applied AI Engineer
Best-of-n with a verifier judges complete answers. If a solution goes wrong at step one, you still pay for every step after it. A process reward model (PRM) judges partial solutions, so search can drop bad paths early and spend compute on promising ones. This lesson shows the idea on a task small enough to see everything.
#Outcome versus process rewards
| Outcome reward model (ORM) | Process reward model (PRM) | |
|---|---|---|
| Scores | Complete solutions | Each step or prefix |
| Training labels | Was the final answer right? | Was each step right, or how likely is this prefix to succeed? |
| Use at inference | Rerank finished samples | Guide beam search or tree search; rerank too |
| Main risk | Wastes compute on doomed samples | Its errors steer the search; reward hacking |
Pro content
Keep reading with Inference Academy Pro
Unlock the rest of this lesson, plus every advanced lesson, hands-on lab, the larger playground models and completion certificates.
Still to come in this lesson
- A toy task
- Reading the results
- Search strategies
- Training a PRM
- Where this sits today
- Exercises
You will be able to answer
- What does a process reward model score?
- Why can PRM-guided beam search be much cheaper than best-of-n?
- In the toy run, PRM noise rises from 0 to 0.3. What happens?
- What is 'reward hacking' in search with a learned PRM?
- How are PRM training labels often produced without humans labelling every step?