Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

Test-time compute scaling can beat scaling model parameters when allocated per prompt

  • Problem Prior work on extra inference-time compute gives mixed results, and gains on hard math reasoning look highly limited. It is unclear how far a fixed inference budget can improve a model on a challenging prompt.
  • Method Compute-optimal scaling picks the test-time strategy for each prompt based on its difficulty. Difficulty is estimated from the base model's pass@1 rate, and the strategy is chosen per difficulty bin on a validation set.
  • Results Compute-optimal search nearly matched PRM best-of-N using 4x less test-time compute. The comparison used 16 generations against 64 for the baseline.

Why extra inference compute gives mixed results

Prior work on inference-time computation reports mixed results, and that leaves open how much extra compute helps a hard prompt. Other work shows that these methods remain highly limited on complex tasks such as math reasoning. The authors argue that reasoning problems often require drawing inferences from existing knowledge rather than learning new knowledge.

That gap is why the paper asks how far an LLM can improve on a challenging prompt with a fixed, non-trivial inference budget.

The authors expect test-time compute to help most when the model already has the knowledge and the challenge lies in drawing inferences from it. They use the MATH benchmark because it tests this kind of inference over knowledge the model already has. The simplest method is best-of-N sampling, which draws N answers in parallel from a base LLM.

A learned verifier or reward model then scores those answers, and the highest-scoring one is kept.

Best-of-N is not the only option, because the proposal distribution can be changed. For example, the base model can revise its original responses sequentially. The verifier can also be changed, for example by training a process-based dense verifier and searching against it. The paper finds that which of these methods works best depends on both the problem and the base LLM.

Easier problems may favor sequential revisions, whereas harder problems may favor parallel sampling or tree search against a process-based reward model.

A per-question allocation of compute

The key idea is to choose the test-time strategy for each prompt, based on how hard the prompt is for the base model, instead of applying one recipe everywhere. The authors view every method as changing the model's output distribution in one of two ways: by adding input tokens that condition the LLM, or by sampling candidates and then scoring them.

The paper studies two independent axes: modifying the proposal distribution, and using a verifier to choose among outputs. Sequential revisions sit on the proposal axis, since each attempt is conditioned on earlier ones, while PRM tree search sits on the verifier axis.

Formally, Target(θ, N, q) is the distribution over output tokens for prompt q under hyperparameters θ and a generation budget N. Written out, the compute-optimal choice is \[\theta^*_{q,y^*(q)}(N) = \arg\max_{\theta} \mathbb{E}_{y\sim \mathrm{Target}(\theta,N,q)}[\mathbf{1}_{y=y^*(q)}],\] where y*(q) is the ground-truth correct response for q.

Because the ground truth is unknown at deployment, the authors approximate this optimum with difficulty bins, choosing the best strategy for each bin on a validation set. Difficulty is the base model's pass@1 rate, estimated from 2048 samples per question and split into five quantiles. Model-predicted difficulty replaces the ground truth with the averaged final score of a learned verifier over the same samples.

Models and benchmark for the test-time compute analysis

The analysis runs on the MATH benchmark, which holds high-school competition math problems across a range of difficulty levels. The authors use the MATH split of 12k train and 500 test questions, the same split Lightman et al. used. Because the authors expect test-time compute to help most when a model already has the knowledge needed, they chose a math task where the main challenge is drawing complex inferences from that knowledge.

The experiments use models finetuned on MATH with PaLM-2 base models, so the revision and verification skills are present.

The base model is PaLM 2-S* (Codey), which the authors chose because it reaches non-trivial MATH accuracy without saturating. The authors argue that this model represents many contemporary LLMs, so they expect their findings to transfer to similar models. Base models lack revision and verification abilities on MATH, so the authors finetune models for those capabilities.

They expect future LLMs to gain these skills through pretraining, so the finetuning step is a stand-in for that.

The revision model follows the recipe of Qu et al., while the verifier is a process reward model trained without human labels.

Searching against a process reward model

The PRM800k data from Lightman et al. proved largely ineffective for the PaLM 2 models, because a PRM trained on it was easy to exploit. The authors suspect the cause is a distribution shift between the GPT-4 generated samples in that dataset and their own PaLM 2 outputs. Rather than collecting crowd-worker labels, they applied the approach of Wang et al.

to supervise PRMs without human labels. That approach estimates per-step correctness from Monte Carlo rollouts launched at each step of a solution. The PRM consistently outperformed the ORM baseline in their comparison, so every search experiment in this section uses it.

Each answer's final score is the PRM's prediction at its last step, not a product or minimum over all steps. The authors found this last-step aggregation performed best among the aggregation methods they studied. Best-of-N weighted then sums the verifier's scores over all solutions that share a final answer and selects the answer with the greatest total.

Beam search starts by sampling N initial predictions for the first step and scoring them with the PRM. It then keeps the top N×M highest scoring steps and samples M proposals from each, yielding N/M×M candidate prefixes. The search runs until a solution ends or 40 rounds of beam expansion are reached, then applies best-of-N weighted selection to the N final candidates.

Lookahead search rolls out up to k steps at temperature 0 and scores each step by the PRM value at the rollout's end. Beam search is the special case of lookahead search with k = 0, and lookahead costs N×(k+1) samples.

With smaller generation budgets, beam search significantly outperformed best-of-N in the comparison. As the budget grew, those gains greatly diminished, and beam search often fell below the best-of-N baseline. The authors attribute the diminishing returns to exploitation of the PRM, where search produces repetitive low-information steps or overly short solutions.

Split by difficulty, beam search degraded on levels 1 and 2 as the budget rose, while on levels 3 and 4 it consistently beat best-of-N. The authors explain the easy-question drop by saying the verifier already makes mostly correct assessments there, so further optimization only amplifies its spurious features.

Choosing the best search setting for each difficulty bin, compute-optimal search nearly outperformed PRM best-of-N with 4x less test-time compute. The comparison used 16 generations against 64 for the baseline, in the low generation budget regime. Using predicted difficulty, some of these benefits diminish at higher budgets, while oracle bins still show continued improvements.

The takeaway is that beam search suits harder questions and lower budgets, while best-of-N suits easier questions and higher budgets.

Sequential revisions on the proposal side

Plain prompting rarely makes LLMs fix their own reasoning mistakes, so the authors finetune revision models instead. They follow the Qu et al. recipe but build multi-turn data after the fact from 64 responses sampled in parallel at a higher temperature. Each training context pairs a correct answer with up to four incorrect ones, and the count is sampled uniformly from 0 to 4.

A character edit distance metric picks incorrect answers that resemble the correct one, because random pairing gives uncorrelated context. At test time the model runs longer chains by keeping only its most recent four revised responses in context. Pass@1 rises gradually at each step, even beyond the four revision steps used in training.

With both verifier-based and majority-based selection, sequential sampling narrowly outperforms parallel sampling at the same budget. The authors also found a distribution shift: the model sometimes turns a correct answer in context into an incorrect one. Around 38% of correct answers were converted back to incorrect ones under a naive approach.

So the authors select the final answer with sequential majority voting or verifier-based selection.

Parallel sampling acts as a global search that can cover many different high-level approaches. Sequential sampling acts as a local refinement process for responses already somewhat on the right track. The paper suggests splitting the budget N as √N for parallel samples and √N for sequential revisions. Easy questions benefit most from purely sequential compute, while difficult questions do best with a balance of the two.

At higher generation budgets, parallel sampling plateaus, whereas compute-optimal scaling keeps improving.

Trading test-time compute for pretraining

The authors ask whether a fixed FLOPs budget is better spent on a larger pretrained model or on test-time compute for a smaller one. They scale model parameters by a factor of M and keep the training data amount fixed, following the open-source LLaMA series approach. Pretraining FLOPs are approximated as X = 6N D_pretrain, and inference FLOPs as Y = 2N D_inference.

Multiplying the parameters by M multiplies both pretraining and inference FLOPs by M, giving M(X+Y) total FLOPs. To match this, the smaller model's inference compute is multiplied by M + 3(D_pretrain / D_inference)(M − 1).

The ratio R is defined as the inverse of D_pretrain / D_inference, so R depends on the production setting. Large production settings may have R >> 1, because they expect many more inference tokens than pretraining tokens. Many self-improvement setups generate significantly fewer inference tokens than pretraining tokens, which gives R << 1.

The authors use the stars in Figure 9 to show the greedy pass@1 of a base model pretrained with about 14 times more parameters.

The authors test three values of R: 0.16 (R << 1), 0.79 (R about 1), and 22 (R >> 1). A star below the line means test-time compute is more effective than scaling model parameters. On easy questions or at R << 1, test-time compute can generally outperform scaling model parameters. On harder questions or at R >> 1, pretraining is the more effective way to improve performance.

For very difficult questions in bins 4 and 5, pretraining is often more effective.

Test-time and pretraining compute are not one-to-one exchangeable, so the answer depends on difficulty and inference load. Self-improvement pipelines, which need fewer inference tokens, fall on the side where test-time compute helps. The authors didn't test a compute-optimal pretraining scaling, which scales data and parameters equally.

Limits of the current evidence

The experiments rest on MATH and one base model, PaLM 2-S*, so the authors expect their findings to transfer to similar models without testing that. Across the evaluated schemes, the gains on hard problems stayed small. The authors didn't combine PRM tree search with revisions, and they didn't study critique and revise.

Future work, they write, should investigate how combining these approaches can further improve test-time compute scaling. Model-predicted difficulty still needs extra inference computation to estimate each question's difficulty. The experiments leave that cost out, largely for simplicity, because the goal was to show what is possible with allocating test-time compute.

Estimating difficulty more cheaply, or switching between estimating it and solving the question, is left to future work.

The authors expect future LLMs to be pretrained for verification and revision directly, which would avoid capability-specific finetuning. That remains an expectation, because the present study still relies on finetuned revision and verification models. The authors also envision feeding the outputs of test-time compute back into the base LLM as an iterative self-improvement loop.

Paper info

Authors
Charlie Snell, Jaehoon Lee, Kelvin Xu, Aviral Kumar
Venue
arXiv · Preprint
First published
2024-8-6
Added
2026-11-12
Updated
2024-8-6
Version
v1
arXiv
2408.03314
Category
cs.LG · cs.CL
Original paper terms
CC BY 4.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Charlie Snell, Jaehoon Lee, Kelvin Xu, Aviral Kumar (2024). Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. arXiv:2408.03314v1. https://arxiv.org/abs/2408.03314v1

BibTeX
@misc{snell2024scaling,
  title = {{Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters}},
  author = {Charlie Snell and Jaehoon Lee and Kelvin Xu and Aviral Kumar},
  year = {2024},
  eprint = {2408.03314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.03314v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up