Search, Reflection, and Test-Time Compute › Verifiers
Language AI HandbookAll chapters A verifier scores a candidate or a partial derivation. For a learned verifier, distinguish what the score describes from what the model reads. An outcome-supervised model may read a whole derivation while learning from a final-answer label. Those labels can come from a task checker or human judgments. Voting instead scores candidates from agreement in the pool.
Outcome reward models
An outcome reward model (ORM) predicts whether the final answer is correct. It can predict that outcome from a prefix or a complete answer. Cobbe et al. labeled generated GSM8K solutions according to whether they reached the reference answer. Their default verifier learned to predict that final-outcome label after each solution token. At inference, they ranked complete solutions and returned the highest-scoring candidate.
Cobbe et al. reported that their 6B verification setup slightly outperformed their fine-tuned 175B baseline on the full GSM8K test setting. Both generator and verifier in the 6B setup used the same model size. This comparison used a candidate pool and should not be read as a comparison at the same per-query cost.
Automatic grading can avoid per-candidate human annotation. It still needs a grading rule, such as answer matching or a test suite, and a way to check that the labels reflect the task. A final-number match can approve an invalid derivation. Human judgments can train a scorer when automatic grading is unavailable, with additional collection costs.
Process reward models
A process reward model (PRM) can score each step in context: . A reranker can combine those step scores into a score for the trajectory.
If the step scores are in , multiplying in an additional step can only keep or lower the product for the same prefix. A minimum makes the result sensitive to one low score, including a spuriously low one. A mean gives each step equal weight, so one low score has less effect in a longer trajectory.
Lightman et al. reported 78.2% for their large-scale process-supervised verifier, 72.4% for their large-scale outcome-supervised verifier, and 69.6% for voting when each selected from 1,860 candidates per problem on their held-out MATH subset. The two trained verifiers used data collected differently.
A PRM can guide beam search or pruning by scoring a partial derivation directly. A scorer that expects a completed answer can guide prefix search by scoring rollout completions and aggregating their results. Other search systems use prompted value estimates or feedback from the environment.
Rollout labels can replace human step annotations with additional computation. The fraction of successful completions estimates how often the rollout policy can finish from that prefix under the chosen checker. That quantity depends on the policy. A stronger completer may recover from a prefix that nearly always leads to failure under the original policy.
Implicit verifiers
Several scoring rules work without training a separate verifier on the task:
- Self-consistency. Return the most frequent answer among sampled reasoning paths. This is a plurality vote. Wang et al.
- Log-likelihood. Rank an answer by the probability the model assigns it under the stated scoring convention. Raw sequence log-likelihood sums token log probabilities, so both length and the model's familiarity with a continuation can affect the score.
- LLM-as-judge. Prompt a model to evaluate the candidates. The judge can share errors or preferences with the generator, including when both calls use the same weights.
If a wrong label is uniquely most probable under a fixed answer distribution, plurality over independent draws selects it with probability approaching one. Log-likelihood can prefer a wrong answer when the model assigns it more probability. In Lee et al.'s EMBER benchmark, adding expressions of confidence or uncertainty to answers affected the tested judges' preferences. Compare each scoring rule on the candidate pools it will see.
Uniform selection and the coverage ceiling
Suppose you draw independent samples and each is correct with probability . Let be the number of correct samples. Then:
- Coverage (an oracle selector) has accuracy . This is the ceiling.
- A random selector, which picks uniformly among the samples, has accuracy . Extra draws give this selector no gain in expected returned-answer accuracy.
The oracle gives an upper bound. Random selection is a reference point. A verifier that systematically favors the wrong answers can fall below that reference.
The expected fraction of correct candidates is , since each candidate has marginal correctness probability . Uniform selection gives the same expected accuracy as one draw while generating candidates. Actual compute depends on candidate lengths, shared work, and scoring.
Brown et al. found that coverage kept increasing on math word problems after majority voting and reward-model selection began to plateau. In their code and formal-proof evaluations, available automatic checkers let coverage gains translate into higher measured success rates.
A verifier can also fare worse as the candidate pool grows. If very high scores often go to a wrong answer, a larger pool gives that answer more chances to win. A feature such as confident phrasing can raise scores for incorrect candidates and still have little effect if correct answers consistently score higher. Measure end-to-end accuracy and resource use across budgets, with plurality voting as a comparator. Pairwise discrimination is a separate diagnostic.
The next cell simulates 400 problems with true labels from 1 through 9. Label 0 is always wrong. The verifier gives it a score bonus of 1.8, compared with a bonus of 1.0 for correct candidates. Argmax uses the earliest candidate if scores tie. The figure shows the result for this seeded pool.
PythonIn [3]Expand
import numpy as np
bias_rng = np.random.default_rng(20240118)
bias_n_problems = 400
bias_n_choices = 10
bias_n_max = 32
bias_p = bias_rng.uniform(0.05, 0.85, size=bias_n_problems)
bias_truth = bias_rng.integers(1, bias_n_choices, size=bias_n_problems)
bias_answers = np.empty((bias_n_problems, bias_n_max), dtype=int)
bias_correct = np.empty((bias_n_problems, bias_n_max), dtype=bool)
for i in range(bias_n_problems):
p = bias_p[i]
hit = bias_rng.random(bias_n_max) < p
wrong = (
bias_truth[i] + bias_rng.integers(1, bias_n_choices, size=bias_n_max)
) % bias_n_choices
bias_answers[i] = np.where(hit, bias_truth[i], wrong)
bias_correct[i] = bias_answers[i] == bias_truth[i]
bias_scores = bias_rng.normal(
loc=1.0 * bias_correct + 1.8 * (bias_answers == 0),
scale=1.0,
)
bias_sample_counts = np.array([1, 2, 4, 8, 16, 32])
bias_selected = []
bias_coverage = []
for n in bias_sample_counts:
block_answers = bias_answers[:, :n]
block_scores = bias_scores[:, :n]
idx = np.argmax(block_scores, axis=1)
picked = np.take_along_axis(block_answers, idx[:, None], axis=1).ravel()
bias_selected.append((picked == bias_truth).mean())
bias_coverage.append(bias_correct[:, :n].any(axis=1).mean())
bias_selected = np.array(bias_selected)
bias_coverage = np.array(bias_coverage)VisualizationOut [4]Expand

What plurality voting requires
With independent, identically distributed binary votes that are each right with probability , the chance that the majority is right approaches one. The threshold changes when wrong votes are split across labels.
Suppose there are possible answers, with probability on the correct label and the remaining mass divided equally across the other . The correct answer is uniquely most probable when
With ten choices and uniform distractors, the threshold is . Under independent draws from a fixed distribution over the labels, observed vote proportions converge to their label probabilities. If one answer is uniquely most probable, it wins with probability approaching one. To check whether the true answer is that mode, compare with the largest individual distractor probability. At a finite budget, the full distribution and tie rule govern accuracy.
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!