Reward Models · Chapter 07
The value model: future success of a prefix
1. A different question
A PRM judges the step. A value model judges the position the step leaves you in.
In Chapter 06 the process reward model scored each step \(s_t\) by asking whether it is correct given what came before. That is a local question. When we use a model to guide generation, the question we really care about is global: if we continue from here, will we finish correctly?
A value model answers that global question directly. It looks at a reasoning prefix and returns a number between 0 and 1, read as the chance that a continuation from this prefix ends in a correct answer.
2. Definition
Write the problem as \(x\) and the first \(t\) reasoning steps as \(s_1,\ldots,s_t\). The prefix, or reasoning state, is
A value model is a function \(V_\theta(z_t)\in[0,1]\) trained to approximate
Architecturally it is the same Transformer-plus-head as earlier chapters. The backbone reads the prefix, we take the hidden state at the last token, and a linear head followed by a sigmoid turns it into a probability:
Nothing in the architecture says "value." The meaning comes entirely from the training target, which is the subject of Section 5.
3. Value model vs PRM
Process reward model
\(P(s_t\text{ correct}\mid x,s_{<t})\). Looks backward at the step just taken.
Was this step good?
Value model
\(P(\text{final success}\mid x,s_{\le t})\). Looks forward from the state the step creates.
Are we now in a good position?
The two often agree. A wrong step usually makes success unlikely, so both scores drop together. They come apart in two places: a correct step that leads somewhere hard, and a slightly sloppy step from which recovery is still easy.
4. Correct is not the same as promising
Problem: find \(23\times 17\). Two candidate first steps are generated.
Branch A. Split the multiplier:
Branch B. "Add 23 to itself seventeen times." This is also mathematically valid.
A step-level PRM checks local correctness, so both steps score high:
A value model asks how often each branch actually finishes correctly. Branch B needs sixteen additions, and every one is a chance to slip, so its value is lower:
A correct step is not the same as a good future state.
5. Where the labels come from: rollouts
No human can label "probability of eventual success" directly. We estimate it by simulation. From the prefix \(z_t\), sample \(M\) full continuations with a completion policy \(\pi\), check each final answer, and record
With \(M=5\) and outcomes \([1,1,0,1,0]\), the estimate is \(\hat V=\tfrac{3}{5}=0.6\). Correctness only has to be checkable at the end (an answer key, a unit test, a proof checker), which is far cheaper than labelling every step by hand.
The estimate is noisy. Each \(R_m\) is a Bernoulli draw with mean \(V\), so
At \(V=0.6\) and \(M=5\) the standard error is about \(0.22\): the label could easily have come out as 0.4 or 0.8. Quadrupling \(M\) only halves the error. Rollout budget is the main cost of value labels.
6. Training
Collect many prefixes (every step boundary of many sampled solutions), attach a rollout estimate to each, and regress:
Because \(\hat V\) is a probability, binary cross-entropy with a soft target is an equally natural choice, and it keeps gradients informative near 0 and 1:
A cheaper variant skips the extra rollouts. Take full solutions whose final answer is known to be right or wrong, and label every prefix of a solution with that solution's outcome. Averaged over many solutions, the expected label at a prefix is still its success probability. This is the idea behind outcome-supervised value models.
7. Link to RL value functions
Treat reasoning as an episodic MDP: the state is the prefix \(z_t\), an action appends a step, and the only reward is 1 at the end if the answer is correct. With no discounting, the state-value function of the completion policy \(\pi\) is
So the value model is exactly \(V^\pi\) from the value functions chapter of the RL notes, and the rollout estimate of Section 5 is Monte-Carlo policy evaluation. Two consequences follow.
- Values depend on the policy. A strong solver and a weak solver assign different values to the same prefix. A value model is always the value under some completion policy, usually the model being trained.
- Bootstrapping is possible. Instead of full rollouts, train toward the next state's prediction, \(V(z_t)\leftarrow V(z_{t+1})\), as in TD learning. This is cheaper but inherits TD's bias.
8. Value-guided search
The main use of a value model is deciding which partial solutions to keep exploring. Suppose the solver proposes three next steps and the value model scores the resulting prefixes:
With a beam of width 2 we continue A and C and prune B. Repeating this at every step is value-guided beam search. The same scores can serve as leaf evaluations in tree search such as MCTS, where they replace expensive full rollouts.
9. Progress as a step reward
A value model also gives a principled per-step reward. The step \(s_t\) moved us from \(z_{t-1}\) to \(z_t\); how much did it help?
This is an advantage in the RL sense. A step that raises the chance of success earns a positive reward, a step that wastes effort earns about zero, and a step that damages the solution earns a negative one. Rewarding progress rather than raw correctness avoids paying the solver for correct but useless steps, like Branch B in Section 4.
Summed over a whole solution of \(T\) steps, \(\sum_{t=1}^{T}A_t=V(z_T)-V(z_0)\). Total progress equals final value minus starting value, so progress rewards cannot be farmed by adding steps.
10. Weaknesses
- Rollout cost. Each label needs \(M\) full generations; good labels need large \(M\).
- Noisy targets. With small \(M\), labels scatter widely around the true value (Equation 7).
- Policy dependence. As the solver improves, old value labels go stale and must be refreshed.
- Checkable answers only. Rollout labels need an automatic success test, which open-ended writing lacks.
- Exploitable in search. Search pushes toward prefixes the value model overrates, so its errors are amplified, not averaged out.
11. Laboratory: estimating value from rollouts
Set the true success probability of a prefix and the rollout budget \(M\). Each press samples \(M\) continuations, reports the estimate \(\hat V\), and shows its standard error and a 95% interval. Small budgets give labels that swing widely.
Monte-Carlo value labels
\(\hat V=\frac{1}{M}\sum_m R_m\)Rollout outcomes
Try \(V=0.6\) with \(M=5\), then \(M=64\). "Sample 200 labels" repeats the whole labelling process and reports how far the labels spread around the truth.
12. Worked example, step by step
A solver is at prefix \(z_1\) with \(V(z_1)=0.50\). It proposes three next steps. Five rollouts from each extended prefix give the outcomes below. Choose two branches to keep and compute the progress reward of each.
- Outcomes: A gives \([1,1,1,1,0]\), B gives \([0,0,1,0,0]\), C gives \([1,0,1,1,1]\).
- Estimates: \(\hat V_A=\tfrac45=0.8\), \(\hat V_B=\tfrac15=0.2\), \(\hat V_C=\tfrac45=0.8\).
- Beam width 2: keep A and C, prune B.
- Progress rewards: \(A_A=0.8-0.5=+0.3\), \(A_B=0.2-0.5=-0.3\), \(A_C=0.8-0.5=+0.3\).
- Caution: with \(M=5\) the standard error at \(V=0.8\) is \(\sqrt{0.8\cdot0.2/5}\approx0.18\). A and C are indistinguishable; B is clearly worse.
13. What comes next
The value model completes the "what is judged" axis: whole answers (ORM), single steps (PRM), and future success of a prefix (value). The next chapters change a different axis, what the model outputs, starting with reward models that return several scores at once.
PRM: was this step good? Value model: are we now in a good position to eventually succeed?
See also
- Uesato et al., 2022, solving math word problems with process- and outcome-based feedback.
- Yu et al., 2023, outcome-supervised verifiers for planning in mathematical reasoning (OVM).
- Wang et al., 2024, Math-Shepherd: rollout-based step labels without human annotation.
- Setlur et al., 2024, rewarding progress: scaling automated process verifiers.
- The RL notes on value functions and TD learning.
Previous
← Process Reward Model
Next chapter
Multi-objective reward model
Several scores per answer instead of one.