Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters
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.
Key idea
Section titled “Key idea”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 be the test-time hyperparameters (search method, beam width, sequential/parallel ratio) and the budget. The ideal choice for prompt is
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 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 full answers and pick by PRM score.
- Beam search: keep prefixes, expand each with next steps, and rescore with the PRM, for up to 40 rounds.
- Lookahead: like beam search, but each step is scored after a -step greedy rollout (). 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 is split into parallel chains × sequential steps.
Exchange rate (§7). With pretraining FLOPs and inference FLOPs , making the model times larger costs . The small model may therefore multiply its inference tokens by
Key results
Section titled “Key results”- 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 (). On bins 4–5 or at high load (), 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×.
Limitations & open questions
Section titled “Limitations & open questions”- 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.
Connections
Section titled “Connections”- Earlier test-time methods: Chain-of-Thought (one sampled chain) and Self-Consistency (majority vote over parallel chains, the “parallel” knob without a verifier).
- Later: s1 scales the sequential axis inside one chain with budget forcing. Why We Think puts both papers in a wider survey.
- Verifier exploitation: the beam-search degradation is a test-time form of reward over-optimisation. See RM over-optimisation scaling, verifier robustness and noisy verifiers.
- Pretraining side of the trade: Kaplan scaling laws and Chinchilla, where the 6ND approximation comes from.
- Author context: last author Aviral Kumar’s job talk ends with the direction that led to this paper. Budget allocation also matters for search agents evaluated on BrowseComp.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.