↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

Many samples, one answer

A model sampled several times at a temperature above zero writes several different solutions, and a right one is often among them even when the first is wrong. Repeated sampling spends compute on exactly that, and then needs a rule for choosing one answer. The two members of this family differ only in that rule. Self-consistency votes: the final number most answers reach wins. Best-of-N asks a second model, a reward model , to score each answer to the question and keeps the best:

Best-of-N's 16 answers per problem are the first 16 of the Self-consistency tab's 32, sampled from Qwen2.5-Math-1.5B-Instruct for GSM8K test rows 0–39, so this page runs both rules on the very same answers. The Two rules, one set of answers panel draws one column per distinct final answer: its votes as a bar, and every answer's score from Skywork-Reward-V2-Qwen3-0.6B as a dot. The vote takes the tallest bar; the reward model takes the highest dot, wherever it is.

When voting is enough

Wang et al. describe the vote as marginalising over reasoning paths: different routes to the same number count together, so a model that reaches the right answer more often than any single wrong one is fixed by voting, even if most of its answers are wrong. It needs no second model and no training, only answers that can be compared exactly, as GSM8K's numbers can.

Its limit is the model's most common answer. As grows, the vote of a problem settles on that answer, and the accuracy settles on the share of problems where it is right. On the Accuracy against N chart the vote climbs from 79.7 % with one answer to 83.6 % at and then stays flat: 83.8 % with all 16, 85.0 % with all 32. In the All 40 problems grid, rows 3, 15 and 37 are problems where a right answer was sampled but a wrong one was sampled more; no number of extra votes changes that. Chen et al. show that the curve can even turn down: more votes help on problems whose most common answer is right and hurt on those where it is wrong, so a task that mixes both can rise and then fall.

When a verifier helps

A verifier helps when checking an answer is easier than producing it, and when right answers are in the samples but rare. The reward model reads each answer on its own, so it can pick an answer that only one sample reached. On rows 3, 15 and 37 it does: the vote is wrong and the pick is right. On row 6 it does the opposite, preferring a garbled answer of 140 over the 260 most samples reached, and on row 8, where the vote of 16 ties, it picks the wrong side. The Where they differ list holds these five problems; on the other 35 the two rules give the same answer.

Taking the maximum of a learned score rewards whatever the score overrates, and more answers give an overrated wrong one more chances. Gao et al. measure this overoptimisation: best-of- against a proxy reward first raises the true reward and eventually lowers it. Here the reward pick keeps rising, from 79.7 % to 87.5 % at , while the vote stalls; the turn Gao et al. describe has not arrived by 16 answers.

The ceiling and the gaps

The dashed ceiling is the oracle that is right whenever any of the answers is: 97.5 % at and 100 % with all 32. It needs the reference, so no real system can use it, but it bounds every rule. With of a problem's 16 answers right, a random subset of contains none of them with probability , so

averaged over the problems: the pass@ of code generation. Brown et al. find that this coverage keeps growing over four orders of magnitude of samples, often log-linearly, while majority voting and reward models plateau after a few hundred. The same happens here on a small scale: between and the ceiling gains 6.2 points, the reward pick 2.2 and the vote 0.2. Every curve averages its rule over all subsets of the 16 answers, and a tied vote counts as the chance of drawing the right answer; the Self-consistency tab gives a tie to the answer voted first, which is why its vote of the first 16 reads 85.0 % against 83.8 % here.

What each spends

The vote's cost is the answers themselves. Best-of-N adds one reward-model pass per answer. The What each spends per problem table counts both with the usual estimate of a forward pass, about operations per token for a model of parameters: 1.54 billion for every token the generator reads or writes, 0.596 billion for every token the reward model reads. At the vote costs about 19.6 TFLOP per problem and best-of-16 about 26.9, 1.37 times as much. The vote of all 32 answers costs 39.3 TFLOP and reaches 85.0 %, still below best-of-16's 87.5 %. Switch the chart's x axis to compute to see the curves on that footing.

The estimate overstates the reward model's share of the time: it reads an answer in one pass, while the generator writes it one token per pass. Wu et al. count FLOPs the same way to compare voting, weighted voting, best-of-N and tree search at equal budgets, and show that a vote's accuracy converges as the samples grow, so its gains end, as the flat vote curve here does. Two cautions apply. Forty problems make every gap a problem or two: the reward pick beats the vote at 16 by 1.5 problems. And the first 16 answers vote worse than a typical 16: the Self-consistency tab's vote over 16 answers drawn at random from its 32 averages 86.2 %, counting ties its way.

Where it came from

Cobbe et al. (2021) introduced GSM8K together with verifiers that choose among sampled solutions. Wang et al. (2022) showed that a plain vote over sampled chains of thought, with no verifier at all, already beats greedy decoding by a wide margin. Later work asked how to spend a fixed budget: Snell et al. found that the best way to use test-time compute depends on how hard the problem is: on easy problems best-of-N or revising one answer is enough, while hard ones gain more from searching against a process reward model. The PRM tab scores every step of the same 16 answers instead of only the end, and the Tree search tab uses those step scores while the answers are being written.

Papers

  1. Self-Consistency Improves Chain of Thought Reasoning in Language Models Xuezhi Wang et al. · ICLR 2023 The majority vote over sampled chains of thought, this family's first member.
  2. Training Verifiers to Solve Math Word Problems Karl Cobbe et al. · arXiv 2021 GSM8K and choosing the highest-ranked of many sampled solutions with a trained verifier, the second member.
  3. Large Language Monkeys: Scaling Inference Compute with Repeated Sampling Bradley Brown et al. · arXiv 2024 Coverage keeps growing with thousands of samples while majority voting and reward models plateau below it.
  4. Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systems Lingjiao Chen et al. · arXiv 2024 Why a vote's accuracy can rise and then fall with the number of calls, depending on how hard the queries are.
  5. Scaling Laws for Reward Model Overoptimization Leo Gao, John Schulman, Jacob Hilton · ICML 2023 How best-of-n against a proxy reward model first helps and then hurts as n grows.
  6. Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Models Yangzhen Wu et al. · arXiv 2024 Majority voting, weighted voting and best-of-N compared at equal compute, counted in FLOPs.
  7. Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters Charlie Snell et al. · arXiv 2024 Which way of spending test-time compute pays off depends on how hard the problem is.
  8. Let's Verify Step by Step Hunter Lightman et al. · ICLR 2024 Outcome and process reward models compared for best-of-N, against majority voting; the PRM tab continues from here.

See also