Skip to content

Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters

LLM stage 2 #10corefrontierpaperrubric 12/122024 · ~60 min

Charlie Snell, Jaehoon Lee, Kelvin Xu, Aviral Kumar

Status

TL;DR. There are two basic ways to spend extra compute at inference time. You can sample many answers in parallel and let a verifier choose, or you can let the model revise its answer sequentially. Snell et al. show that which one works best depends on how hard the question is for the base model. Choosing the strategy per difficulty level beats best-of-N with up to 4× less compute. In a FLOPs-matched comparison it can also beat a 14× larger model, but only on easier questions or when the model will serve few tokens.

Why it matters now. Reasoning models, deep-research agents and RAG pipelines with reranking all decide how much compute to spend per query. This paper gives the vocabulary for that decision: proposal distribution vs verifier, parallel vs sequential, and the exchange rate between test-time and pretraining FLOPs. It predates o1-style RL reasoners, but its framing is the one later work, including s1 and Lilian Weng’s Why We Think, builds on.

Two mechanisms (§2). Test-time compute can change the proposal distribution (what the model samples, e.g. by revising) or be used to search against a verifier (what gets selected). The experiments use PaLM 2-S* on the 500-question MATH test split.

Compute-optimal strategy (§3.1, Eq. 1). Let θ\theta be the test-time hyperparameters (search method, beam width, sequential/parallel ratio) and NN the budget. The ideal choice for prompt qq is

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

This cannot be computed per prompt, so the paper approximates it with one statistic: difficulty. Each question goes into one of five quantile bins of the base model’s pass@1. Oracle bins use ground-truth correctness over 2048 samples. Predicted bins use averaged verifier scores over the same samples. The best θ\theta is chosen per bin with two-fold cross-validation.

Knob 1: search against a PRM (§5). The process reward model (PRM) is trained without human labels, from Monte Carlo rollouts that estimate whether each step leads to a correct answer. An answer is scored by the PRM’s prediction at its last step. Answers with the same final result have their scores summed (“best-of-N weighted”). Three searches are compared:

  • Best-of-N: sample NN full answers and pick by PRM score.
  • Beam search: keep N/MN/M prefixes, expand each with MM next steps, and rescore with the PRM, for up to 40 rounds.
  • Lookahead: like beam search, but each step is scored after a kk-step greedy rollout (k=3k=3). This costs more compute.

Knob 2: sequential revisions (§6). A revision model is fine-tuned on chains of up to four wrong answers followed by a correct one. Wrong answers are chosen to be close to the correct one by edit distance, so that the model learns to edit rather than restart. At test time it can revise beyond four steps by keeping the last four attempts in context. A budget of NN is split into parallel chains × sequential steps.

Exchange rate (§7). With pretraining FLOPs X=6NDpreX=6ND_{\text{pre}} and inference FLOPs Y=2NDinfY=2ND_{\text{inf}}, making the model MM times larger costs M(X+Y)M(X+Y). The small model may therefore multiply its inference tokens by

M+3 DpreDinf (M−1)=M+3(M−1)R,R=DinfDpre.M+3\,\frac{D_{\text{pre}}}{D_{\text{inf}}}\,(M-1)=M+\frac{3(M-1)}{R},\qquad R=\frac{D_{\text{inf}}}{D_{\text{pre}}}.
Compute-optimal test-time scaling: two knobs, chosen per question difficulty, and when they beat a bigger model Top left: the parallel knob, best-of-N, draws N independent answers and lets a verifier pick one. Below it, the sequential knob: a revision model rewrites its previous answer several times, each step conditioned on earlier attempts. A budget of N samples can be split between parallel chains and sequential steps. Right: a table of five difficulty bins, from easy to hard, giving the best use of compute found in the paper. Easy bins favour purely sequential revisions and best-of-N over beam search; middle bins favour beam search against a process reward model and a mix of sequential and parallel; the hardest bin gains little from anything. Bottom right: the FLOPs exchange rate. Matching a 14 times larger model lets the small model spend 14 plus 39 over R times its inference compute, where R is inference tokens over pretraining tokens. Two knobs for a budget of N samples Parallel: best-of-N vs a verifier prompt y₁ y₂ y_N PRM verifierpicks / weights variants: beam search over steps, lookahead Sequential: revise the last answer prompt y₁ y₂ y₃ … each yₜ sees up to 4 earlier attempts in context Split N = (parallel chains) × (steps) e.g. N = 128: 128 × 1, 16 × 8, 1 × 128 ~38% of correct answers flip to wrong, so the final pick uses voting or the verifier Best use of compute, by difficulty difficulty binsearch (§5)revisions (§6) 1–2 easy best-of-N;beam degrades fullysequential 3–4 harder beam searchbeats best-of-N mix sequentialand parallel 5 hardest little helpslittle helps Exchange rate vs a 14× larger model (§7) small model may spend M + 3(M−1)/R times its inference; R = inference / pretrain tokens R=0.16: ≈258× R=0.79: ≈63× R=22: ≈16× low R or easy bins: test-time compute wins high R or hard bins: bigger model wins
Original sketch. Left: the parallel knob (best-of-N or beam search against a PRM) and the sequential knob (a revision chain), with a budget split between them. Right: the best strategy by difficulty bin, and the §7 exchange rate against a 14× larger model.
  • Search methods (§5.3, Fig. 3). At small budgets beam search beats best-of-N. At large budgets best-of-N catches up or wins, partly because search over-optimises the PRM, producing repetitive steps or overly short solutions. Lookahead is generally worse at equal compute.
  • Search by difficulty (Fig. 3 right, Fig. 4). Beam search hurts on bins 1–2, wins on bins 3–4, and nothing helps much on bin 5. Choosing the search setting per bin nearly matches best-of-N with up to 4× less compute (16 vs 64 generations). Oracle and predicted bins give similar curves.
  • Revisions (§6.2, Figs. 6–8). Pass@1 improves step by step, even past the four steps seen in training. At equal budget, sequential sampling beats parallel sampling with both verifier and majority selection. About 38% of correct answers get revised into wrong ones, so selection across the chain is needed. Compute-optimal revisions beat best-of-N with up to 4× less compute (64 vs 256), and keep improving where parallel sampling plateaus.
  • Exchange rate (§7, Fig. 9). Against a ~14× larger model, test-time compute wins on easy and intermediate bins and at low inference load (R=0.16R=0.16). On bins 4–5 or at high load (R=22R=22), the larger model is usually better. The authors summarise that the two are not 1-to-1 exchangeable.
  • Overall (§8). Compute-optimal allocation improves test-time efficiency by about 2–4×.
  • One model, one task. PaLM 2-S* on MATH only. Whether the per-bin conclusions transfer to code, open-ended answers or retrieval is untested.
  • Hard questions remain hard. Gains on the hardest bin are small for every method.
  • Difficulty estimation is not free. The authors list fast difficulty prediction as future work.
  • Mechanisms are studied separately. PRM tree search was not combined with revisions, and critique-and-revise methods were not studied.
  • Pretraining comparison is narrow. Only parameter scaling with fixed data is compared, not Chinchilla-style joint scaling.
  • Feeding results back into training (distilling test-time outputs into the base model) is left open. This is roughly what RL-trained reasoners later did.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Section 7 compares a small model plus extra inference against a model with M times more parameters trained on the same data. Using pretraining FLOPs 6·N·D_pretrain and inference FLOPs 2·N·D_inference, derive the factor by which the small model may multiply its inference tokens, then evaluate it for M = 14 and R = D_inference / D_pretrain of 0.16, 0.79 and 22.

    What a strong answer covers
    • Scaling N by M multiplies both terms, so the budget is M(6N·D_p + 2N·D_i). Solve 6N·D_p + 2N·D_i′ = M(6N·D_p + 2N·D_i) for D_i′.
    • D_i′ = M·D_i + 3(M−1)·D_p, so the multiplier is M + 3(M−1)·D_p/D_i = M + 3(M−1)/R.
    • With M = 14 this is 14 + 39/R: about 258× at R = 0.16, about 63× at R = 0.79 and about 16× at R = 22.
    • Interpretation: when a model serves few tokens relative to its pretraining (R ≪ 1), the saved pretraining FLOPs buy a large inference budget. Under heavy serving loads (R ≫ 1) the budget is barely larger than the 14× the big model already costs per token.
  2. Mechanism

    On easy questions (difficulty bins 1–2), beam search against the PRM gets worse as the generation budget grows, while on bins 3–4 it beats best-of-N. Explain both trends in terms of verifier error and how strongly each method optimises against the verifier.

    What a strong answer covers
    • Beam search selects at every step using the PRM, so it is a stronger optimiser of the verifier's score than best-of-N, which only selects among complete samples.
    • On easy questions the base model already samples correct answers often. Extra optimisation mainly amplifies spurious verifier features, which the paper calls exploitation of the PRM signal.
    • Failure modes reported: low-information repetitive steps and overly short 1–2 step solutions.
    • On harder questions correct answers are rare under plain sampling, so step-level guidance helps find them. On bin 5 nothing helps much, because the verifier and model both lack the needed capability.
  3. What if…

    Section 6 sweeps the ratio of sequential revisions to parallel samples at a fixed budget (Figure 7). What did it find overall and per difficulty bin, and why does the revision model need a separate selection step rather than just returning its last answer?

    What a strong answer covers
    • At a fixed budget there is an ideal sequential-to-parallel ratio. Sequential revisions generally beat pure parallel sampling, but at higher budgets the best ratio is a mix.
    • Per bin: easy questions do best with purely sequential compute. Harder questions do best with a balance of sequential and parallel.
    • The revision model was trained only on contexts of wrong answers, so at test time it sometimes revises a correct answer into a wrong one (about 38% of correct answers).
    • So the final answer is chosen across the revision chain by majority voting or a verifier, not taken from the last step.
  4. Critique

    The compute-optimal policy is chosen per difficulty bin. Criticise how difficulty is defined and estimated, and explain what the reported 4× savings over best-of-N do and do not include.

    What a strong answer covers
    • Oracle difficulty bins come from the base model's pass@1 estimated with 2048 samples per question and ground-truth answers, which are not available at deployment.
    • Model-predicted difficulty replaces correctness with averaged verifier scores, but still uses 2048 samples per question. The paper notes this cost and treats cheap difficulty estimation as future work.
    • Bins are quantiles over the 500-question MATH test split, and strategies are selected with two-fold cross-validation inside each bin. That keeps the selection honest but the setting is small and math-only.
    • The headline savings compare generation counts (e.g. 16 vs 64, 64 vs 256). They do not charge for difficulty estimation, PRM or revision-model training, or verifier inference.
  5. Design

    You run a deep-research agent that answers BrowseComp-style questions with a fixed per-query budget of LLM calls. Using this paper's framework, design a policy that allocates the budget between parallel attempts and sequential refinement per query, and say how you would estimate difficulty cheaply.

    What a strong answer covers
    • Map the two knobs: parallel = independent search trajectories with a verifier or vote at the end; sequential = refining one trajectory using earlier attempts and their evidence.
    • Estimate difficulty from a few cheap signals, such as agreement across 2–4 short probes, verifier or judge confidence, and retrieval-score statistics, then bin queries on a validation set.
    • Pick the best ratio per bin on held-out queries, as in Section 3.2. Expect easy queries to favour refinement and hard ones a mix.
    • Guard against verifier exploitation with an answer-level vote or a second judge, and report accuracy per bin against total calls including the probes.
  6. Connect

    Compare this paper with s1 and with DeepSeek-R1-style reinforcement learning. Which kind of test-time compute does each scale, and which of Snell et al.'s conclusions would you expect to change for a model trained to produce long chains of thought?

    What a strong answer covers
    • Snell et al. scale compute outside a fixed model: parallel search against a separate PRM, or sequential revisions from a fine-tuned revision model.
    • s1 and RL-trained reasoners scale compute inside one long chain of thought, controlled by length (for s1, budget forcing with Wait).
    • For a long-CoT model, the sequential axis is built into the model, so much of the easy-question benefit may already be captured. Parallel voting or verification may matter more on hard questions.
    • The exchange-rate result (not 1-to-1, depends on R and difficulty) should still hold in form, but the crossover points would need to be re-measured.

Done with this page?

Status