Paper notes

Scaling LLM Test-Time Compute Optimally: Spending Inference Compute by Difficulty Can Beat a Bigger Model

Snell et al. (2024) study how to spend inference compute on MATH: the best method depends on question difficulty, and allocating by difficulty needs up to about 4 times less compute than best-of-N. I recompute the paper's FLOPs exchange rate and replicate a small part with Qwen2.5.

Published Updated 43 min read

On this page
  1. Why This Paper Is Worth Reading
  2. Background: Why Inference-Time Compute Deserved a Systematic Study
  3. Core Idea: Proposer, Verifier and Picking the Strategy by Difficulty
  4. Method
  5. Difficulty Bins
  6. The Verifier: a PRM Trained on Monte Carlo Labels
  7. Three Search Methods: Best-of-N, Beam Search and Lookahead Search
  8. The Revision Model: Rewriting With the Mistakes in View
  9. The FLOPs Exchange Rate: What Scaling Parameters by M Is Worth at Test Time
  10. Experiments and Conclusions
  11. Hands-On Check: the Exchange Rate and Majority Voting by Difficulty Bin
  12. The Exchange Rate: Matching the 7B Model Takes 17 to 286 Times the Inference
  13. The Two Models on Their Own: One Sample From the Small Model Is Unstable, One Greedy Decode of the Large Model Is Not
  14. Majority Voting by Difficulty Bin
  15. Matched FLOPs: a Tie on the Easy Bins, a Wide Gap on the Rest
  16. Robustness: Other Samples, Another Way to Estimate Difficulty
  17. What This Small Experiment Shows, and What It Does Not
  18. What I Changed in the Preliminary Runs
  19. Limitations and What Came Next
  20. What to Take Away From This Paper
  21. Further Reading
  22. FAQ

Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters (Snell, Lee, Xu and Kumar, UC Berkeley and Google DeepMind) asks a practical question: given a fixed inference budget, how should a language model spend it? The paper splits test-time compute into two knobs. One is the proposal distribution (who writes the answers: parallel samples, or revisions where the model reads its own previous attempt). The other is the verifier (who picks the answer: majority vote, best-of-N, or step-by-step search against a process reward model, PRM). Its finding is that no method wins everywhere; which one is best depends on how hard the question is for that particular model. From that it builds a “compute-optimal” strategy that treats each question differently, which the paper says uses up to about 4 times less compute than best-of-N, and in a FLOPs-matched comparison a smaller model with test-time compute beats a 14 times larger one on easy and medium questions.

The paper appeared on arXiv on August 6, 2024 (v1), and this post follows v1. Besides summarizing it I did two things you can check yourself: verify the paper’s FLOPs “exchange rate” formula in code and compute the multipliers at its three test points; and run a very small replication with the Qwen2.5 0.5B and 7B base models on 120 arithmetic problems I wrote, to see whether “majority voting by difficulty bin” and “FLOPs-matched comparison” show the same shapes. The result: the role of difficulty reproduces. On the two easiest bins, the small model sampled 17 to 30 times with majority voting ties the 7B model’s greedy decode (the large model is already at 1.000, so there is no room to “beat” it); from bin 3 on, the gap is at least 0.375, because majority voting cannot pick the few correct samples among many, which is where the paper’s verifier comes in. The paper’s PRM search and revision model need specially trained models, which I did not reproduce.

Why This Paper Is Worth Reading

  • It makes “think a bit longer at inference” a quantitative question. The abstract says earlier work on inference-time compute gave mixed results, often negative for particular strategies; the paper compares them inside one framework, proposer plus verifier.
  • It proposes allocating compute by difficulty. For the same budget, easy and hard questions call for different methods; that is the starting point of the compute-optimal strategy.
  • It gives an exchange rate. With 6ND and 2ND it puts test-time and pretraining compute on one scale and says outright that the size of the inference load (R) changes the conclusion.
  • Its conclusion is conditional. The paper itself writes that test-time and pretraining compute are not 1-to-1 exchangeable: on the hardest questions and under heavy inference load, scaling pretraining is more effective.
  • It states the unfavorable side. Difficulty estimation costs compute, search over-optimizes the verifier, and the hardest questions barely improve; all of this is in the text.

Background: Why Inference-Time Compute Deserved a Systematic Study

Before this paper there were already many ways to turn inference compute into accuracy. Cobbe et al. trained a verifier to score several candidate solutions and pick the best; Wang et al.’s self-consistency takes a majority vote over sampled answers; Lightman et al. trained a process reward model (PRM) that scores every step (see this site’s Let’s Verify Step by Step explainer); and there was a family of “critique and revise yourself” methods. The paper’s introduction points out that the evidence was inconsistent: some work shows models can improve their outputs with inference compute, other work shows the effect remains limited on harder tasks such as mathematical reasoning.

That leaves two open questions: for the same inference compute, is it better spent on parallel sampling, on search, or on revisions? And can it replace more pretraining? The paper answers both on the MATH benchmark.

Core Idea: Proposer, Verifier and Picking the Strategy by Difficulty

The paper treats test-time compute as modifying the model’s distribution over answers, with two knobs:

  • At the input (proposal distribution). Give the model extra input, or fine-tune it, so that each sample is already better. The paper studies a model that reads its own earlier answers and revises them in sequence.
  • At the output (verifier). Take several candidates from ordinary sampling and post-process them with a verifier or score function: best-of-N, or step-by-step search against a PRM. The paper likens this to Markov chain Monte Carlo (MCMC) sampling with a simple proposal and a score function.
Two ways to scale test-time compute and a difficulty-based selector (Snell et al., 2024) The left group modifies the proposal distribution: parallel sampling or sequential revisions. The right group optimises the verifier: majority vote, best-of-N, beam search and lookahead search. Both feed a step that picks the strategy by difficulty, and the result is compared with best-of-N and with a 14x larger model. Proposal: who writes the answers Verifier: who picks the answer Parallel sampling N independent answers Sequential revisions rewrite from the last attempt Majority vote no verifier best-of-N score whole answers Beam search and lookahead PRM per step Pick the strategy by difficulty: compute-optimal difficulty = the model's own pass rate, 5 bins per bin, keep the best hyper-parameters Evaluate: vs best-of-N at equal budget; vs a 14x larger model at equal FLOPs Budget is counted in generated answers; lookahead search costs N×(k+1), k being the lookahead steps.
Figure: the two knobs of test-time compute and the compute-optimal strategy (after Sections 2 and 3 of the paper). Budget is counted in generated answers; lookahead search costs N×(k+1), the convention of Section 5.3.

The compute-optimal strategy is defined as choosing, for a question qq and budget NN, the test-time hyper-parameters θ\theta that maximize the probability that the target distribution gives the right answer (Equation 1 of the paper):

θq,y∗(q)∗(N)=arg⁡max⁡θ(Ey∼Target(θ,N,q)[1y=y∗(q)])\theta^{*}_{q,y^{*}(q)}(N)=\arg\max_{\theta}\Big(\mathbb{E}_{y\sim \mathrm{Target}(\theta,N,q)}\big[\mathbf{1}_{y=y^{*}(q)}\big]\Big)

Here Target(θ,N,q)\mathrm{Target}(\theta,N,q) is the distribution of answers the model produces for qq under hyper-parameters θ\theta and budget NN, and y∗(q)y^{*}(q) is the reference answer. The truly optimal θ\theta differs for every question and cannot be found directly, so the paper approximates it with question difficulty as a sufficient statistic: pick the best strategy separately in each difficulty bin.

Method

Difficulty Bins

Following Lightman et al., the paper defines difficulty as a function of the base model: for each test question it estimates pass@1 from 2,048 samples and cuts the test set into 5 quantile bins, a higher bin number meaning harder. It finds that this model-specific difficulty predicts the benefit of test-time compute better than the human-labeled difficulty levels that come with MATH.

This definition needs the reference answer, which is not available at deployment. The paper therefore also defines “predicted difficulty”: for the same 2,048 samples, it averages the verifier’s score of the final answer and bins that into 5 (Appendix C). To avoid binning and selecting strategies on the same test set, it uses two-fold cross-validation inside each bin: choose the best strategy on one fold, evaluate on the other, swap and average. The paper also admits that estimating difficulty needs many samples, that its experiments do not count that cost, and lists cheap difficulty estimation as future work.

The Verifier: a PRM Trained on Monte Carlo Labels

The paper first tried the human-labeled PRM800k data released by Lightman et al. and found that a PRM trained on it was easy to exploit even with plain best-of-N, which it attributes to the PRM800k solutions coming from GPT-4 and so differing in distribution from PaLM 2’s outputs. It switched to the approach of Wang et al., which needs no human labels: from each step of a solution, roll out the same base model (16 times per step) and take the fraction that reach the right answer as the value of that step; the PRM is then fit to these soft labels with binary cross-entropy (Appendix D).

  • Step scores to a solution score. The PRM’s prediction at the last step is used as the score of the whole solution; the paper compares taking the minimum or the product and finds the last step best (Appendix E). It guesses the reason is that soft labels behave differently from binary ones. It also notes that this makes the PRM act like an ORM, yet the PRM still beats the ORM, which suggests step-level training may be mostly useful as representation learning.
  • Across answers. Best-of-N weighted: add up the verifier scores of all solutions with the same final answer and pick the answer with the highest total.

The base model is prompted with 4 correct solutions from PRM800k (Appendix G), and solutions are split into steps at newlines. The budget unit is “generated answers”.

MethodWho writesWho picksBudget
Majority voteN independent samplesthe most frequent final answerN answers
Best-of-N weightedN independent samplesPRM last-step score, summed per answerN answers
Beam searchN candidates per stepPRM scores each step; keep the top N/M, expand each M timesN answers
Lookahead searchbeam search, each step rolled out k steps aheadPRM score at the end of the rollout scores the current stepN×(k+1) answers
Sequential revisionsa revision model rewrites its previous attemptORM or majority voteN revisions

Beam search runs for at most 40 expansion rounds and ends by choosing among the N final answers with best-of-N weighted; lookahead rollouts use temperature 0 to reduce variance, and the paper calls it a special case of MCTS with the random exploration removed. The settings swept within a maximum budget of 256 are beam width M=NM=\sqrt{N} or fixed at 4, and lookahead steps kk of 0, 1 and 3.

The Revision Model: Rewriting With the Mistakes in View

Simply prompting an off-the-shelf model to correct itself often does not help on reasoning problems (the paper cites earlier work), so it follows Qu et al. and fine-tunes the base model into a sequential reviser:

  • Data. Sample 64 answers per training question (higher temperature) and assemble multi-turn “revision trajectories” afterwards: each correct answer is preceded by 0 to 4 incorrect ones (the number drawn uniformly from 0 to 4), with a character-level edit distance used to put an incorrect answer similar to the correct one in the last position, so the model learns to fix rather than rewrite.
  • Inference. Training contexts hold at most 4 earlier answers, so longer chains keep only the most recent 4.
  • A snag. Training contexts contain only wrong answers, but at inference a correct answer may appear and the model may change it into a wrong one. The paper measures that, taking the last revision naively, about 38% of correct answers are turned back into incorrect ones, so the answer is chosen over the whole chain by majority vote or by a verifier (here a separately trained ORM).

The FLOPs Exchange Rate: What Scaling Parameters by M Is Worth at Test Time

Suppose a model used XX FLOPs of pretraining and is expected to use YY FLOPs of inference. The paper uses the usual approximations X=6NDpretrainX=6ND_{\text{pretrain}} and Y=2NDinferenceY=2ND_{\text{inference}}, with NN the parameter count and DD a token count. Scaling parameters by MM multiplies both pretraining and inference by MM, giving a total of M(X+Y)M(X+Y). A small model matches this by multiplying its inference by kk so that X+kY=M(X+Y)X+kY=M(X+Y), which gives

k=M+3 DpretrainDinference (M−1)=M+3(M−1)R,R=DinferenceDpretraink = M + 3\,\frac{D_{\text{pretrain}}}{D_{\text{inference}}}\,(M-1) = M + \frac{3(M-1)}{R},\qquad R=\frac{D_{\text{inference}}}{D_{\text{pretrain}}}

RR is the ratio of inference tokens to pretraining tokens: a heavily used production service has R≫1R\gg 1, while a self-improvement pipeline that uses test-time compute usually generates far fewer tokens than it was pretrained on, R≪1R\ll 1. The paper tests three values: R=0.16R=0.16 (R≪1R\ll 1), 0.79 (R∼1R\sim 1) and 22 (R≫1R\gg 1), against a model with about 14 times more parameters and no extra test-time compute (greedy pass@1). It only considers pretraining where parameters grow and data is fixed, not Chinchilla-style growth of both, which it leaves to future work.

Experiments and Conclusions

The experiments use the MATH benchmark (the split of Lightman et al.: 12,000 training and 500 test questions) and the PaLM 2-S* (Codey) base model. The paper’s main results are curves rather than tables, so below I only state conclusions that the text backs with words or numbers.

Search (PRM): more useful the harder the question, easier to exploit the easier it is. At small budgets beam search clearly beats best-of-N; as the budget grows the advantage shrinks sharply, and beam search often falls below best-of-N; lookahead search generally underperforms the others at equal budget, which the paper attributes to the extra computation of its rollouts. By difficulty bin the picture differs a lot: on the easy bins 1 and 2, beam search gets worse as the budget grows, a sign of over-optimizing the PRM; on bins 3 and 4 it beats best-of-N consistently; on bin 5 no method makes real progress.

Revisions: sequential and parallel are complementary. The revision model’s pass@1 improves with each revision, even beyond the 4 it was trained on, and at equal budget sequential revisions are slightly better than parallel sampling. For a fixed budget there is an optimal sequential-to-parallel ratio and it depends on difficulty: easy questions do best with all of the budget spent on sequential revisions, hard questions need a balance of sequential and parallel.

Compute-optimal: up to about 4 times less compute. For PRM search, the paper’s example is that the compute-optimal strategy with 16 generations nearly matches best-of-N with 64; for revisions the example is 64 against 256, and it exceeds best-of-N. Curves with predicted difficulty and with oracle difficulty largely overlap.

Putting the findings together:

Difficulty binPRM searchRevisions and parallel samplesVersus a 14× larger model (matched FLOPs)
Bins 1–2 (easy)best-of-N better; beam search degrades with budgetall budget on sequential revisions is besttest-time compute usually pays off, also as R grows
Bins 3–4 (medium)beam search consistently beats best-of-Na mix of sequential and parallel is bestbin 3 pays off; bin 4 depends on R
Bin 5 (hard)no method makes real progresssmall gainspretraining is more effective

Matched FLOPs: a conditional yes. In Figure 9, if only very hard questions (bins 4 and 5) are expected, or the inference load is large (large R), spending the budget on pretraining is often more effective; if the questions are mostly easy to medium (bins 1, 2 and 3, sometimes 4), or the inference load is small (as in self-improvement pipelines), test-time compute is better. The paper’s summary is that test-time and pretraining compute are not 1-to-1 exchangeable.

One detail to be careful with: the abstract says the compute-optimal strategy improves the efficiency of test-time compute by “more than 4×”, the takeaways in the body say “up to 4× less”, and the discussion says “2 to 4×”. All three are in the same paper; when citing, “up to about 4×” from the body is the safer wording.

Hands-On Check: the Exchange Rate and Majority Voting by Difficulty Bin

Reproducing the paper in full would need a trained process reward model (PRM) and a revision model, which this machine cannot do. I reproduce only the simplest half, parallel sampling plus majority voting, and test two of the paper’s claims: that difficulty decides whether extra inference compute pays off, and that its exchange-rate formula says how much extra compute equals a bigger model. The script has six parts, in the order of the output:

  1. Read parameter counts from Hugging Face, compute the exchange rate kk, and check the closed form directly against 6ND6ND and 2ND2ND.
  2. Generate 120 arithmetic-chain problems I wrote (2 to 7 operations, 20 per level) with a few-shot prompt, and check that the generation cap cannot truncate the longest reference solution.
  3. A precision check (the 7B model solves the same 8 problems in bfloat16 and in float32), then sample the small model Qwen2.5-0.5B 64 times per problem and decode the large model Qwen2.5-7B greedily once per problem.
  4. Rank the problems by the pass rate of the first 32 samples, cut them into 5 equal bins, and compute maj@k and pass@32 per bin on the last 32 samples.
  5. Compare at the sampling counts that match the large model’s FLOPs, with bootstrap intervals.
  6. Robustness checks: swap the roles of the two halves of the samples, estimate difficulty without the answers, and split the problems into even and odd.

Environment: Apple M2 Max (64 GB, MPS backend), Python 3.14.3, PyTorch 2.10.0, transformers 5.3.0, NumPy 2.4.2, SciPy 1.18.1. Both models are base models without instruction tuning (Qwen2.5-0.5B and Qwen2.5-7B, Apache-2.0); they share one tokenizer and see the same three-example few-shot prompt. Four settings are specific to MPS and to this experiment. Attention uses attn_implementation="eager" (SDPA returned NaN in batched decoding with a long cache). Precision is float32, because the 7B model in bfloat16 gets digits wrong (the check in part 3: of the same 8 problems bfloat16 solves 2 and float32 solves 8; float16 overflowed into garbage in my preliminary runs and is not in the script). generate releases the allocator cache after every call, otherwise driver memory grows beyond physical RAM and swapping slows each problem several-fold. And a custom stopping criterion ends a sequence once it has written its Answer: number line: without it, the 7B base model went on after the answer line and wrote a boilerplate, system-prompt-like text, which inflated its token count without changing any answer. Part 1 reads the parameter counts from Hugging Face online (queried on November 12, 2026). The small model samples at temperature 0.7 with its own seed per problem and the large model decodes greedily; individual numbers may differ slightly in another environment. The whole script takes about 38 minutes from start to finish.

import json
import random
import re
import urllib.request
from collections import Counter
from math import comb

import numpy as np
import torch
from scipy.stats import spearmanr
from transformers import (AutoModelForCausalLM, AutoTokenizer,
                          StoppingCriteria, StoppingCriteriaList)
from transformers.utils import logging as hf_logging

hf_logging.set_verbosity_error()
hf_logging.disable_progress_bar()

SMALL, LARGE = "Qwen/Qwen2.5-0.5B", "Qwen/Qwen2.5-7B"
NPROB, NS = 120, 64  # problems; samples per problem (small model)
NB = NS // 2  # first NB samples bin the problems, the rest evaluate
TEMP = 0.7
KS = [1, 2, 4, 8, 16, 32]
RS = [22, 6, 3]  # ratio R of inference to pretraining tokens
MAXNEW = 170  # cap on new tokens per generation


# ---------- Part 1: the FLOPs exchange rate ----------
def total(name):
    url = f"https://huggingface.co/api/models/{name}?blobs=true"
    return json.loads(urllib.request.urlopen(url, timeout=30).read())[
        "safetensors"]["total"]


n_small, n_large = total(SMALL), total(LARGE)
M = n_large / n_small
print(f"params: small {n_small:,d}  large {n_large:,d}  M = {M:.2f}")


def k_equal(M, R):
    """Inference multiplier k that matches an M-times larger model."""
    return M + 3 * (M - 1) / R


# check the closed form against X = 6 N D_pre and Y = 2 N D_inf directly
for Mx, Rx in [(14, 0.16), (M, 3.0), (M, 22.0)]:
    N, Dp = 1e9, 1e13
    Di = Rx * Dp
    big = Mx * (6 * N * Dp + 2 * N * Di)
    small = 6 * N * Dp + k_equal(Mx, Rx) * 2 * N * Di
    assert abs(big - small) / big < 1e-12
print("exchange rate k = M + 3(M-1)/R, checked against 6ND and 2ND")
print("      R   k (M=14)   k (this pair)")
for R in [0.16, 0.79, 22] + [r for r in RS if r != 22]:
    print(f"{R:7.2f} {k_equal(14, R):10.1f} {k_equal(M, R):13.1f}")
KR = {R: round(k_equal(M, R)) for R in RS}
print("k used below:", KR)

# ---------- Part 2: problems and prompts ----------
OPS = {"add": "+", "subtract": "-", "multiply by": "×"}


def make(seed, nops, per):
    rng = random.Random(seed)
    out = []
    for _ in range(per):
        val = rng.randint(11, 99)
        text, steps = f"Start with {val}.", []
        for _ in range(nops):
            op = rng.choice(list(OPS))
            mul = op == "multiply by"
            t = rng.randint(11, 29) if mul else rng.randint(11, 99)
            new = {"add": val + t, "subtract": val - t,
                   "multiply by": val * t}[op]
            steps.append(f"{val} {OPS[op]} {t} = {new}")
            text += f" Then {op} {t}."
            val = new
        out.append((text + " What is the result?", val,
                    ". ".join(steps) + "."))
    return out


LEVELS = [2, 3, 4, 5, 6, 7]
probs = [p for i, n in enumerate(LEVELS)
         for p in make(100 + i, n, NPROB // len(LEVELS))]
shots = [make(900 + i, n, 1)[0] for i, n in enumerate([2, 3, 4])]
assert not {q for q, _, _ in shots} & {q for q, _, _ in probs}
prefix = "".join(f"Question: {q}\nSolution: {s}\nAnswer: {a}\n\n"
                 for q, a, s in shots)
prompts = [prefix + f"Question: {q}\nSolution:" for q, _, _ in probs]
truth = [a for _, a, _ in probs]
tok = AutoTokenizer.from_pretrained(SMALL)  # shared by both models
tok.padding_side = "left"
print(f"{len(probs)} problems, step counts {LEVELS[0]}..{LEVELS[-1]}, "
      f"prompt tokens (3 shots + question): {len(tok(prompts[0]).input_ids)}")
longest = max(len(tok(s + f"\nAnswer: {a}\n\n").input_ids)
              for _, a, s in probs)
print(f"longest reference solution: {longest} tokens (cap {MAXNEW})")
assert longest < MAXNEW  # the cap must not truncate a reference solution

# ---------- Part 3: sampling ----------
dev = "mps"


def load(name, dtype=torch.float32):
    # eager attention: SDPA on MPS once returned NaN when decoding a batch
    # with a long cache
    m = AutoModelForCausalLM.from_pretrained(
        name, dtype=dtype, attn_implementation="eager")
    return m.to(dev).eval()


DONE = re.compile(r"Answer:\s*-?\d+\n")


class AnswerLine(StoppingCriteria):
    """Stop a sequence once it has written its "Answer: number" line."""

    def __init__(self, n_prompt):
        self.n_prompt = n_prompt

    def __call__(self, input_ids, scores, **kw):
        texts = tok.batch_decode(input_ids[:, self.n_prompt:])
        return torch.tensor([bool(DONE.search(t)) for t in texts],
                            device=input_ids.device)


@torch.no_grad()
def generate(model, texts, **kw):
    enc = tok(texts, return_tensors="pt", padding=True).to(dev)
    stop = StoppingCriteriaList([AnswerLine(enc.input_ids.shape[1])])
    out = model.generate(**enc, max_new_tokens=MAXNEW, stop_strings=["\n\n"],
                         stopping_criteria=stop, tokenizer=tok,
                         pad_token_id=tok.pad_token_id, **kw)
    res = []
    for o in out[:, enc.input_ids.shape[1]:].tolist():
        n = sum(t != tok.pad_token_id for t in o)
        res.append((tok.decode(o, skip_special_tokens=True), n))
    torch.mps.empty_cache()  # else the allocator cache outgrows RAM
    return res


def parse(s):
    m = re.search(r"Answer:\s*(-?\d+)", s)
    return int(m[1]) if m else None


# precision check: the same 8 problems, 7B greedy in bfloat16 and float32
chk = list(range(40, 48))
for dt in (torch.bfloat16, torch.float32):
    m = load(LARGE, dt)
    outs = generate(m, [prompts[i] for i in chk], do_sample=False)
    n_ok = sum(parse(o) == truth[i] for (o, _), i in zip(outs, chk))
    print(f"7B {str(dt)[6:]:>8s}: {n_ok} of {len(chk)} correct")
    del m
    torch.mps.empty_cache()

small = load(SMALL)
ans = np.empty((len(probs), NS), dtype=object)
ntok_small = []
for i, p in enumerate(prompts):
    torch.manual_seed(1000 + i)  # one seed per problem, unrelated to the data
    outs = generate(small, [p] * NS, do_sample=True, temperature=TEMP,
                    top_k=0, top_p=1.0)
    for j, (s, n) in enumerate(outs):
        ans[i, j] = parse(s)
        ntok_small.append(n)
del small
torch.mps.empty_cache()

large = load(LARGE)
order = sorted(range(len(probs)), key=lambda i: len(prompts[i]))
res = {}
for s in range(0, len(order), 8):
    chunk = order[s:s + 8]
    for i, (txt, n) in zip(chunk, generate(large, [prompts[i] for i in chunk],
                                           do_sample=False)):
        res[i] = (parse(txt), n)
g_ok = np.array([res[i][0] == truth[i] for i in range(len(probs))])
ntok_large = [res[i][1] for i in range(len(probs))]
del large

ok = np.array([[ans[i, j] == truth[i] for j in range(NS)]
               for i in range(len(probs))])
print(f"valid answers: {np.mean([a is not None for a in ans.ravel()]):.3f}"
      f" | mean generated tokens: small {np.mean(ntok_small):.1f},"
      f" large {np.mean(ntok_large):.1f}")
print(f"greedy accuracy of the large model: {g_ok.mean():.3f}"
      f" | mean sample accuracy of the small model: {ok.mean():.3f}")
per_lv = NPROB // len(LEVELS)
print("steps: small model mean sample accuracy | large model greedy accuracy")
for t, n in enumerate(LEVELS):
    sl = slice(t * per_lv, (t + 1) * per_lv)
    print(f"  {n}: {ok[sl].mean():.3f} | {g_ok[sl].mean():.3f}")

# ---------- Part 4: majority vote and pass@k by difficulty bin ----------
rng = np.random.default_rng(0)
NBIN = 5


def bins_from(p_hat):
    """Sort by pass rate, cut into 5 equal bins (1 = easiest); random ties."""
    key = np.lexsort((rng.random(len(p_hat)), -p_hat))
    b = np.empty(len(p_hat), dtype=int)
    for r, i in enumerate(key):
        b[i] = r * NBIN // len(p_hat)
    return b


def vote(a, idx):
    c, first = Counter(), {}
    for pos, j in enumerate(idx):
        if a[j] is not None:
            c[a[j]] += 1
            first.setdefault(a[j], pos)
    if not c:
        return None
    top = max(c.values())
    return min((x for x in c if c[x] == top), key=lambda x: first[x])


REP = 200


def maj_curve(cols, ks):
    """Expected maj@k per problem: k random samples from cols, REP rounds."""
    out = np.zeros((len(probs), len(ks)))
    for i in range(len(probs)):
        for _ in range(REP):
            idx = rng.permutation(cols)
            for t, k in enumerate(ks):
                out[i, t] += vote(ans[i], idx[:k]) == truth[i]
    return out / REP


def pass_at(cols, k):
    n = len(cols)
    c = ok[:, cols].sum(axis=1)
    return np.array([1 - comb(n - ci, k) / comb(n, k) for ci in c])


bin_cols = list(range(NB))
eval_cols = list(range(NB, NS))
p_bin = ok[:, bin_cols].mean(axis=1)
b = bins_from(p_bin)
ks_all = sorted(set(KS) | set(KR.values()))
mj = maj_curve(eval_cols, ks_all)
col = {k: t for t, k in enumerate(ks_all)}
print(f"\nbins from samples 0..{NB - 1}, evaluation on samples "
      f"{NB}..{NS - 1} (k <= {len(eval_cols)})")
print("bin  n  p_bin | maj@k: " + " ".join(f"{k:>5d}" for k in KS)
      + " | pass@32 | large")
for d in range(NBIN):
    sel = b == d
    print(f"{d + 1:>3d} {sel.sum():>3d} {p_bin[sel].mean():6.3f} |        "
          + " ".join(f"{mj[sel, col[k]].mean():5.3f}" for k in KS)
          + f" | {pass_at(eval_cols, 32)[sel].mean():7.3f} |"
          f" {g_ok[sel].mean():5.3f}")
print("all {:>3d}        |        ".format(len(probs))
      + " ".join(f"{mj[:, col[k]].mean():5.3f}" for k in KS)
      + f" | {pass_at(eval_cols, 32).mean():7.3f} | {g_ok.mean():5.3f}")

# ---------- Part 5: FLOPs-matched comparison ----------
boot = rng.integers(0, len(probs), size=(2000, len(probs)))
print("\nFLOPs-matched: small model with k samples (majority) minus the large"
      " model (greedy), by bin;\n95% bootstrap interval over problems")
for R in RS:
    k = KR[R]
    print(f"R = {R:>2d}  k = {k}")
    for d in range(NBIN):
        sel = np.where(b == d)[0]
        diff = mj[sel, col[k]] - g_ok[sel]
        bs = diff[rng.integers(0, len(sel), size=(2000, len(sel)))].mean(1)
        lo, hi = np.percentile(bs, [2.5, 97.5])
        print(f"  bin {d + 1}: small {mj[sel, col[k]].mean():5.3f}"
              f"  large {g_ok[sel].mean():5.3f}"
              f"  diff {diff.mean():+6.3f}  [{lo:+.3f}, {hi:+.3f}]")

# ---------- Part 6: robustness ----------
b2 = bins_from(ok[:, eval_cols].mean(axis=1))
mj2 = maj_curve(bin_cols, [1, 8, 16])
print("\nswap the roles of the two sample halves: maj@1 / @8 / @16 by bin")
for d in range(NBIN):
    s1, s2 = b == d, b2 == d
    print(f"  bin {d + 1}: original "
          + " ".join(f"{mj[s1, col[k]].mean():5.3f}" for k in (1, 8, 16))
          + " | swapped "
          + " ".join(f"{mj2[s2, t].mean():5.3f}" for t in range(3)))
agree = np.array([max(Counter([a for a in ans[i, :8] if a is not None])
                      .values(), default=0) / 8 for i in range(len(probs))])
rho = spearmanr(agree, ok[:, eval_cols].mean(axis=1))[0]
print(f"\nSpearman rho, agreement of the first 8 samples vs pass rate on the "
      f"evaluation samples: {rho:.2f}")
half = np.arange(len(probs)) % 2
print("overall maj@k, even / odd problems:")
for h in (0, 1):
    print(f"  half {h}: " + " ".join(f"{mj[half == h, col[k]].mean():5.3f}"
                                     for k in KS))

The output:

params: small 494,032,768  large 7,615,616,512  M = 15.42
exchange rate k = M + 3(M-1)/R, checked against 6ND and 2ND
      R   k (M=14)   k (this pair)
   0.16      257.8         285.7
   0.79       63.4          70.2
  22.00       15.8          17.4
   6.00       20.5          22.6
   3.00       27.0          29.8
k used below: {22: 17, 6: 23, 3: 30}
120 problems, step counts 2..7, prompt tokens (3 shots + question): 294
longest reference solution: 161 tokens (cap 170)
7B bfloat16: 2 of 8 correct
7B  float32: 8 of 8 correct
valid answers: 0.998 | mean generated tokens: small 73.4, large 74.4
greedy accuracy of the large model: 0.933 | mean sample accuracy of the small model: 0.438
steps: small model mean sample accuracy | large model greedy accuracy
  2: 0.830 | 1.000
  3: 0.673 | 1.000
  4: 0.438 | 0.950
  5: 0.263 | 0.800
  6: 0.292 | 1.000
  7: 0.130 | 0.850

bins from samples 0..31, evaluation on samples 32..63 (k <= 32)
bin  n  p_bin | maj@k:     1     2     4     8    16    32 | pass@32 | large
  1  24  0.978 |        0.976 0.976 0.999 1.000 1.000 1.000 |   1.000 | 1.000
  2  24  0.846 |        0.824 0.824 0.942 0.982 0.997 1.000 |   1.000 | 1.000
  3  24  0.354 |        0.368 0.369 0.457 0.520 0.565 0.583 |   0.958 | 0.958
  4  24  0.007 |        0.023 0.023 0.020 0.011 0.010 0.020 |   0.292 | 0.792
  5  24  0.000 |        0.000 0.000 0.000 0.000 0.000 0.000 |   0.000 | 0.917
all 120        |        0.438 0.438 0.484 0.503 0.514 0.521 |   0.650 | 0.933

FLOPs-matched: small model with k samples (majority) minus the large model (greedy), by bin;
95% bootstrap interval over problems
R = 22  k = 17
  bin 1: small 1.000  large 1.000  diff +0.000  [+0.000, +0.000]
  bin 2: small 0.999  large 1.000  diff -0.001  [-0.002, +0.000]
  bin 3: small 0.564  large 0.958  diff -0.394  [-0.569, -0.220]
  bin 4: small 0.010  large 0.792  diff -0.781  [-0.939, -0.614]
  bin 5: small 0.000  large 0.917  diff -0.917  [-1.000, -0.792]
R =  6  k = 23
  bin 1: small 1.000  large 1.000  diff +0.000  [+0.000, +0.000]
  bin 2: small 1.000  large 1.000  diff +0.000  [+0.000, +0.000]
  bin 3: small 0.573  large 0.958  diff -0.386  [-0.575, -0.208]
  bin 4: small 0.013  large 0.792  diff -0.779  [-0.932, -0.612]
  bin 5: small 0.000  large 0.917  diff -0.917  [-1.000, -0.792]
R =  3  k = 30
  bin 1: small 1.000  large 1.000  diff +0.000  [+0.000, +0.000]
  bin 2: small 1.000  large 1.000  diff +0.000  [+0.000, +0.000]
  bin 3: small 0.584  large 0.958  diff -0.375  [-0.577, -0.206]
  bin 4: small 0.018  large 0.792  diff -0.774  [-0.923, -0.602]
  bin 5: small 0.000  large 0.917  diff -0.917  [-1.000, -0.792]

swap the roles of the two sample halves: maj@1 / @8 / @16 by bin
  bin 1: original 0.976 1.000 1.000 | swapped 0.969 1.000 1.000
  bin 2: original 0.824 0.982 0.997 | swapped 0.841 0.980 0.995
  bin 3: original 0.368 0.520 0.565 | swapped 0.362 0.491 0.530
  bin 4: original 0.023 0.011 0.010 | swapped 0.006 0.003 0.001
  bin 5: original 0.000 0.000 0.000 | swapped 0.002 0.001 0.000

Spearman rho, agreement of the first 8 samples vs pass rate on the evaluation samples: 0.89
overall maj@k, even / odd problems:
  half 0: 0.471 0.471 0.528 0.549 0.562 0.575
  half 1: 0.406 0.406 0.440 0.457 0.466 0.467

The Exchange Rate: Matching the 7B Model Takes 17 to 286 Times the Inference

The Hugging Face parameter counts are 494,032,768 for the 0.5B model and 7,615,616,512 for the 7B model (embeddings and output layer included), so M=15.42M=15.42, close to the paper’s roughly 14 times. The script checks the closed form k=M+3(M−1)/Rk=M+3(M-1)/R directly against 6ND6ND and 2ND2ND (the assertion passes), computes the multipliers at the paper’s three test points for M=14M=14, and does the same for the two models used here:

Rk (M = 14)k (this pair, M = 15.42)
0.16257.8285.7
0.7963.470.2
2215.817.4
620.522.6
327.029.8

The smaller the inference share (the smaller R), the larger the multiplier the small model may spend, and the more matching the large model depends on heavy sampling. The evaluation below has only 32 held-out samples per problem, so it can test only k≤32k\le 32, that is R = 22, 6 and 3 (k rounds to 17, 23 and 30). R = 0.16 and 0.79 would need 286 and 70 samples, which is beyond what this experiment can reach.

The Two Models on Their Own: One Sample From the Small Model Is Unstable, One Greedy Decode of the Large Model Is Not

Accuracy by number of operations (the small model’s mean over 64 samples; the large model’s greedy accuracy; 20 problems per row):

OperationsSmall model (mean of samples)Large model (greedy)
20.8301.000
30.6731.000
40.4380.950
50.2630.800
60.2921.000
70.1300.850

The small model’s accuracy falls from 0.830 at 2 operations to 0.130 at 7. It is a trend, not a staircase: every row holds different problems, and the 6-operation row (0.292) sits above the 5-operation row (0.263). The large model scores 0.933 overall with no clear trend: 6 operations is 1.000 and 5 operations is 0.800, which is 4 problems out of 20 wrong. One problem is 5 percentage points of a row, so these ups and downs are noise-level and should not be read as a pattern. The two models generate a similar number of tokens on average (small 73.4, large 74.4), so converting FLOPs by the number of samples introduces no obvious bias; the 294 prompt tokens of the prefill and memory bandwidth are not counted.

Majority Voting by Difficulty Bin

I rank the 120 problems by the pass rate of the first 32 samples, cut them into 5 bins of 24 (bin 1 is the easiest), and compute maj@k on the last 32 samples. “p_bin” is a bin’s average pass rate on the binning samples:

Bin (p_bin)maj@1maj@8maj@32pass@32Large
1 (0.978)0.9761.0001.0001.0001.000
2 (0.846)0.8240.9821.0001.0001.000
3 (0.354)0.3680.5200.5830.9580.958
4 (0.007)0.0230.0110.0200.2920.792
5 (0.000)0.0000.0000.0000.0000.917
All0.4380.5030.5210.6500.933
Majority vote by difficulty bin: small-model maj@k against the large model's greedy decoding One small panel per difficulty bin. The horizontal axis is the small model's number of samples k (1 to 32, log scale) and the vertical axis is accuracy. The blue line is majority vote maj@k, the grey diamond is pass@32, the amber dashed line is the large model's greedy accuracy, and the shaded band marks the k range that matches the large model in FLOPs. 0 0.5 1 1 4 16 32 Bin 1 (easiest) n=24, p=0.98 1 4 16 32 Bin 2 n=24, p=0.85 1 4 16 32 Bin 3 n=24, p=0.35 1 4 16 32 Bin 4 n=24, p=0.01 1 4 16 32 Bin 5 (hardest) n=24, p=0.00 samples k (log scale), majority vote small model, majority vote maj@k small model pass@32 large model, greedy matched-FLOPs k: 17 to 30
Figure: in each of the five difficulty bins, the small model's majority-vote accuracy maj@k (blue line), its pass@32 (gray diamond) and the large model's greedy accuracy (amber dashed line); the light band is the range of sample counts that match the large model's FLOPs (k from 17 to 30 for R from 22 to 3). 24 problems per bin; p is a bin's average pass rate on the binning samples. Drawn directly from the output above.

Three shapes stand out:

  • Easy questions: voting works well. Bin 2’s maj@1 is 0.824, voting over 8 samples lifts it to 0.982 and 32 samples to 1.000; bin 1 starts at 0.976.
  • Medium difficulty: voting helps only part of the way. Bin 3’s maj@32 is only 0.583 while its pass@32 is 0.958: among 32 samples there is almost always a correct one, but it is not the most common answer, so majority voting cannot pick it. This is where the paper needs a verifier. Without one, the gap between pass@32 and maj@32 is exactly the room a verifier could use.
  • The hardest questions: voting cannot help. In bin 4 maj@k stays between 0.010 and 0.023 and does not improve with k; in bin 5 it is 0.000 throughout. Bin 4’s pass@32 of 0.292 says that a correct sample occasionally appears, but it is rarely the most common answer.

Bins 4 and 5 are not two difficulty levels. Bin 5 contains problems with no correct sample at all in the binning half (p_bin is exactly 0.000), and bin 4 has only a handful (p_bin 0.007), so the two bins are two near-halves of one “unsolved” set, split by the random tie-break. Do not read the differences between the two rows (pass@32 of 0.292 against 0.000, the large model’s 0.792 against 0.917) as a difficulty trend.

Matched FLOPs: a Tie on the Easy Bins, a Wide Gap on the Rest

At the sampling counts that match the large model’s FLOPs (R = 22, 6 and 3, so k = 17, 23 and 30), the table gives the small model’s majority-vote accuracy minus the large model’s greedy accuracy, paired by bin, with a 95% bootstrap interval over problems in brackets:

BinR=22 (k=17)R=6 (k=23)R=3 (k=30)
1+0.000 [+0.000, +0.000]+0.000 [+0.000, +0.000]+0.000 [+0.000, +0.000]
2-0.001 [-0.002, +0.000]+0.000 [+0.000, +0.000]+0.000 [+0.000, +0.000]
3-0.394 [-0.569, -0.220]-0.386 [-0.575, -0.208]-0.375 [-0.577, -0.206]
4-0.781 [-0.939, -0.614]-0.779 [-0.932, -0.612]-0.774 [-0.923, -0.602]
5-0.917 [-1.000, -0.792]-0.917 [-1.000, -0.792]-0.917 [-1.000, -0.792]

Bins 1 and 2 are a tie, not a win. With 17 to 30 samples and a majority vote, the small model matches the 7B model’s greedy decode on these two bins (the difference is at most 0.001 in magnitude); but the large model is already at 1.000 there, so there is nothing left to beat. The paper’s conclusion is that on easy and medium questions a smaller model with test-time compute can beat a 14 times larger one. This experiment neither confirms nor refutes “beat”; it shows only that on the easiest two bins, 17 to 30 times the inference compute matches a model 15 times larger. From bin 3 on, the gap is at least 0.375 in magnitude, and every interval excludes 0. The choice of R matters little: going from 17 to 30 samples narrows the bin-3 gap only from 0.394 to 0.375.

Robustness: Other Samples, Another Way to Estimate Difficulty

Swapping the roles of the two halves of the samples (bin by the last 32, evaluate on the first 32) keeps the shape of every bin: bin 1 reaches 1.000 at maj@8 and maj@16 in both versions, bin 2’s maj@16 is 0.997 originally and 0.995 swapped, bin 3’s is 0.565 and 0.530, and bins 4 and 5 stay near 0. The bin-3 difference, three to four percentage points at maj@16, can serve as the noise floor of this setup: do not interpret differences smaller than it.

Binning needs the reference answers, which are not available at deployment; the paper’s “predicted difficulty” replaces them with verifier scores. There is no verifier here, so I estimate difficulty by the share of the most common answer among the first 8 samples (the more the samples agree, the easier the problem). Its Spearman rank correlation with the pass rate on the evaluation samples is 0.89, so the problems can be ordered reasonably well without the answers. Splitting the problems into even and odd halves gives an overall maj@32 of 0.575 and 0.467. The two halves differ in level, which shows how much 60 problems can vary, but both rise from maj@1 to maj@32 in the same way.

What This Small Experiment Shows, and What It Does Not

It shows:

  • Difficulty decides whether extra compute pays. At the same k, bins 1 and 2 close the gap almost completely and bins 3 and up are far out of reach, in line with the paper’s premise of allocating compute by difficulty.
  • Without a verifier, majority voting cannot help on hard questions. The gap between pass@32 and maj@32 (bin 3: 0.958 against 0.583) is where verifiers, search and revision come in.
  • The exchange rate can be computed directly. For this pair, matching requires multiplying inference by 17 (R = 22) up to 286 (R = 0.16); whether that is worth it depends on whether your inference volume is a fraction of the pretraining tokens or many times larger.

It does not show:

  • Anything beyond one model pair and one self-made problem type. Multi-step integer arithmetic has a unique answer that is easy to check, one of the best-suited problem types for voting; for open-ended questions, majority voting is not even well defined.
  • Whether test-time compute can beat the larger model. The large model scores 1.000 on bins 1 and 2 and 0.958 on bin 3, a ceiling, so the experiment can test “matches” but not “beats”.
  • The paper’s protagonists. PRMs, beam search, lookahead search and the revision model are not reproduced; the verifier is absent here, and that absence is most of the gap from bin 3 up.
  • Anything about instruction-tuned or reasoning models. These are base models with a few-shot prompt, with no instruction tuning and none of the long chains of thought that reinforcement learning produces.
  • A large sample. Each bin has 24 problems, so one problem is a twenty-fourth of a bin; the intervals reflect only the sampling of problems, not a change of model or problem type.

What I Changed in the Preliminary Runs

These five things changed during the preliminary runs, which were mostly done with the Chinese version of the script; they are listed so you can judge them. The last four came after I found outputs that were corrupted, truncated, slowed down or padded with extra text, and they change how things are measured; they were not a choice between two results.

  • Problem type. To give the small model a wide range of accuracy I first tried multipliers from 2 to 9, where the small model almost never erred on 2 to 4 operations; with multipliers from 11 to 29 the accuracy fell as the number of operations grew. This step used only the small model (greedy decoding), 16 problems per level and random seeds different from the final problems; I did not look at the large model or at majority voting.
  • Precision. The 7B model first loaded in bfloat16 and scored worse than the 0.5B model; reading its outputs showed copied digits going wrong. float16 overflowed into garbage and float32 got every problem right. The 0.5B model’s accuracy was similar in both precisions in my check, so for consistency both models use float32. The precision check in part 3 reproduces this on the English prompts.
  • Generation cap. My first cap was 110 tokens, and in the Chinese version the large model’s accuracy on 7-operation problems was only about 60%; reading the outputs showed that the failures were all cut off mid-solution. I raised the cap to 170 and added an assertion that the longest reference solution (161 tokens here) is shorter than the cap.
  • Memory. Calling generate repeatedly made driver memory grow to about 70 GB, swapping began and each problem took several times longer, so generate now ends with torch.mps.empty_cache(). The first complete run was discarded and the whole script rerun.
  • Stopping rule. In the first complete English run the 7B model wrote a boilerplate text after every answer line, so its mean generated tokens were about 50% above the small model’s while its answers were unchanged; counting FLOPs by tokens would have been unfair. I added the answer-line stopping criterion and reran the script from scratch; the numbers on this page are from that final run.

Limitations and What Came Next

  • One benchmark, one model. A footnote explains that revision and verification abilities are absent even from strong proprietary models, so they had to be fine-tuned in; on another benchmark or base model the best strategy per bin may differ.
  • The cost of estimating difficulty is not counted. Binning takes 2,048 samples per question, which is impractical at deployment; the paper suggests training a model to predict difficulty or switching dynamically between assessing and solving, but does neither.
  • Verifiers get over-optimized. Beam search degrading on easy questions and the weak showing of lookahead search both involve exploitation of the PRM; the PRM also transfers poorly to the outputs of the shifted-distribution revision model, so the paper trained a separate ORM.
  • The pretraining side is narrow. Only fixed data with larger parameters is considered; 6ND and 2ND are rough FLOPs estimates and ignore that inference is limited by memory bandwidth (my own addition, not the paper’s): at equal FLOPs a larger model usually decodes more slowly.
  • The result does not carry directly to later reasoning models. The paper lists distilling test-time outputs back into the base model as future work. DeepSeek-R1 and similar models later used reinforcement learning to put long chains of thought inside the model, a route that needs no external PRM or search.
  • The paper’s own 4× wording is inconsistent. See the note above.

What to Take Away From This Paper

  1. First ask how hard the question is for this model. For the same budget, easy questions suit sequential revisions, medium ones suit verifier search, and the hardest barely respond to anything.
  2. A verifier is a lever with a price. The stronger the optimizer, the more it amplifies the verifier’s flaws; more search on easy questions is not necessarily better.
  3. Compare with the FLOPs exchange rate, not by feel. k=M+3(M−1)/Rk=M+3(M-1)/R turns “scale the model or think longer” into something you can plug numbers into; a large R favors scaling the model.
  4. “Compute-optimal” relies on difficulty estimates, and estimating difficulty costs compute. This is the paper’s biggest unpaid cost; add it back when reading the results.
  5. Read the conclusions with their conditions. MATH, PaLM 2-S*, fixed data with larger parameters, numbers read off curves: it is a map, not a theorem.

Further Reading

FAQ

What is test-time compute scaling and what does this paper conclude?
Test-time compute scaling means spending more computation at inference to get a better answer: sampling several times and voting, picking with a verifier, or letting the model draft and then revise. Snell et al. (2024) study two routes on MATH problems: searching against a process reward model (PRM), and having the model revise its own answers in sequence. Three conclusions stand out. The best method depends on how hard the question is. Allocating compute by difficulty (the compute-optimal strategy) uses up to about 4 times less compute than best-of-N for the same accuracy. And at matched FLOPs, a smaller model with test-time compute can beat a 14 times larger model on easy and medium questions, but on the hardest questions and when inference load is high, more pretraining is still the better spend.
How does the paper compare test-time compute with pretraining compute?
It uses two standard approximations: pretraining costs about 6·N·D_pretrain FLOPs and inference about 2·N·D_inference, with N the parameter count and D a token count. Scaling parameters by M multiplies both terms by M. For a small model to match that with test-time compute, its inference compute must be multiplied by k = M + 3·(D_pretrain / D_inference)·(M − 1). Writing R = D_inference / D_pretrain gives k = M + 3(M − 1) / R. With M = 14, the paper's R = 0.16, 0.79 and 22 correspond to k of about 258, 63 and 16 (my own calculation; the paper does not list them). The larger the inference load, the larger R, the smaller the multiplier available to test-time compute, and the better it is to scale the model.
What is a compute-optimal test-time strategy, and how do you tell if a question is hard?
The compute-optimal strategy picks, for a given question and budget, the test-time hyper-parameters that maximize the chance of a correct answer, such as how much goes to parallel samples versus sequential revisions, or the beam width. The paper approximates it by estimating each question's pass@1 from 2,048 samples of the base model, cutting the test set into 5 difficulty bins, choosing the best strategy per bin, and using two-fold cross-validation so that strategies are not selected and evaluated on the same data. Without ground truth, the average verifier score over the same 2,048 samples gives a predicted difficulty, and the two binnings give nearly overlapping curves in the paper. Estimating difficulty is itself expensive, and the paper does not count that cost.
Why does beam search against a process reward model get worse on easy questions?
The paper's explanation is over-optimization of the verifier. On easy questions the base model already samples correct answers readily and the verifier is mostly right, so a stronger optimizer such as beam search only amplifies the spurious features the verifier has learned; the appendix shows search producing repetitive, uninformative steps or very short solutions of 1 to 2 steps. On harder questions (bins 3 and 4) the base model rarely samples the right answer unaided and search steers it toward one, so beam search beats best-of-N consistently. On the hardest bin (5) no method makes meaningful progress.
Does the paper's result carry over directly to today's reasoning models?
Not directly. It uses one benchmark (MATH) and one model (PaLM 2-S*), revision and verification abilities were fine-tuned in, the cost of estimating difficulty is not counted, and on the pretraining side it only considers scaling parameters with fixed data. It is better read as a map of when extra inference compute pays off. Later models such as DeepSeek-R1 took a different route: reinforcement learning teaches the model long chains of thought itself, moving test-time compute inside the model. The paper's own outlook names distilling test-time outputs back into the base model as a promising direction.