Reinforcement Learning from Verifiable Rewards › How Verifiers Fail

Michael BrenndoerferNovember 29, 20264 min read
Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 300Reinforcement Learning from Verifiable Rewards › How Verifiers Fail
Reading section 6 of 12 · How Verifiers Fail · 4 minSection 6 of 12 · 4 min

Section 6 of 12 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Reward and correctness can move differently as training changes the output distribution. Compare them over the same task mix and under a documented sampling protocol.

False positives and reward hacking

A false positive is a response the verifier accepts but that is not genuinely correct. Define the latent correctness predicate C(x,y)∈{0,1}C(x,y)\in\{0,1\} and the verifier V(x,y)∈{0,1}V(x,y)\in\{0,1\}. The false positive rate is

FPR=Pr⁡[V=1∣C=0]\mathrm{FPR}=\Pr\left[V=1\mid C=0\right]

and the false negative rate is

FNR=Pr⁡[V=0∣C=1]\mathrm{FNR}=\Pr\left[V=0\mid C=1\right]

where:

  • VV: the verifier score (a reward of 11 if the program accepts the response, 00 otherwise)
  • CC: the latent correctness label (11 if the response genuinely solves the problem, 00 otherwise)
  • FPR\mathrm{FPR}: the fraction of incorrect responses that the verifier nonetheless accepts
  • FNR\mathrm{FNR}: the fraction of correct responses that the verifier rejects

Each rate requires a conditioning group with positive probability. In an audit, report how many examples are in that group. The sample rate is undefined if the group is empty.

The reward-only training update optimizes expected VV. A policy can improve that objective while reducing expected CC when it shifts mass toward wrong responses that pass the checker. Skalse et al. (2022) formalize reward gaming as a conflict between a proxy and a desired reward.

These checks can accept responses that fail the intended task.

  • A test suite can pass a program that hardcodes the outputs for the test inputs and fails on other inputs.
  • A checker that accepts any \boxed{} response can pass a boxed wrong answer.
  • A check for the correct number anywhere can pass a response that commits to a different answer.
  • A symbolic comparator can declare equality after dividing by zero.
  • A checker that accepts any response above a length threshold can pass a long wrong answer.

A composite reward can award format or length credit to a response that fails its separate correctness check.

A wrong response that passes has an advantage over an equally likely wrong response that fails the same check, all else equal. Whether this matters in training depends on the policy and the other objective terms.

False negatives and the suppression of good behavior

A false negative is a correct response the verifier rejects. It can reduce the reward for a response style that otherwise solves the problem.

Consider “First compute 3 + 4 = 7. The answer is 7.” The first integer is 3, so the example's first-integer check rejects a correct answer. A bare “7” passes. This creates an incentive to favor the format that the checker can parse.

A verifier that accepts terse answers while missing valid worked answers changes the measured advantage of those behaviors. Pass@kk measures how often at least one of kk sampled responses to a prompt passes the evaluation checker. This toy example cannot establish why pass@kk changes in a separately trained language model.

Saturation

For a group of 20 with 19 successes, the baseline reward is 19/20. A success receives a centered advantage of 1/20 and the lone failure receives −19/20. For a group of 20 with one success, the baseline is 1/20. The lone success receives 19/20 and each failure receives −1/20. The rare outcome can have substantial advantage when it appears.

If independent responses pass with probability pp, a group of size GG has no mixture of passes and failures with probability pG+(1−p)Gp^G+(1-p)^G. Such a group has zero centered reward advantages. This probability depends on the number of samples per prompt as well as the current pass rate.

Goodhart, formally

Let JCJ_C be the expected genuine correctness and JVJ_V the expected verifier score. The desired objective is

JC(θ)=Ex∼D Ey∼πθ(⋅∣x)[C(x,d(y))]J_C(\theta)=\mathbb{E}_{x\sim\mathcal{D}}\,\mathbb{E}_{y\sim\pi_\theta(\cdot\mid x)}\left[C(x,d(y))\right]

The expected verifier score is the reward term when r(x,y)=V(x,d(y))r(x,y)=V(x,d(y)).

JV(θ)=Ex∼D Ey∼πθ(⋅∣x)[V(x,d(y))]J_V(\theta)=\mathbb{E}_{x\sim\mathcal{D}}\,\mathbb{E}_{y\sim\pi_\theta(\cdot\mid x)}\left[V(x,d(y))\right]

When the verifier provides the entire reward and β=0\beta=0, JVJ_V is the earlier reward-only objective JRJ_R. With β>0\beta>0, the training objective JJ subtracts the reference penalty from JVJ_V. Both JCJ_C and JVJ_V average over prompts from D\mathcal{D} and token sequences yy from πθ\pi_\theta. Each score uses the decoded response d(y)d(y). If V=CV=C for every decoded response the policies can produce, the two objectives are identical. Distinct reward functions can still have the same maximizers. A verifier measured on base-policy outputs can behave differently on a later policy because it receives a different mixture of responses. Measure its error on the distribution you intend to train or evaluate on.

Verifier drift

A verifier measured on base-policy responses can be less accurate on later responses if their mix of formats or errors changes. Audit samples from the policy you expect to use.

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