Skip to main content
QUICK REVIEW

[Paper Review] Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters

Christopher R. Snell, Jae‐Hoon Lee|arXiv (Cornell University)|Aug 6, 2024
Magnetic confinement fusion researchPhysics and Astronomy17 citations
TL;DR

The paper analyzes how to optimally allocate test-time compute for LLMs, showing compute-optimal strategies can outperform best-of-N baselines and, in FLOPs-matched settings, can beat a much larger model by using test-time compute effectively.

ABSTRACT

Enabling LLMs to improve their outputs by using more test-time computation is a critical step towards building generally self-improving agents that can operate on open-ended natural language. In this paper, we study the scaling of inference-time computation in LLMs, with a focus on answering the question: if an LLM is allowed to use a fixed but non-trivial amount of inference-time compute, how much can it improve its performance on a challenging prompt? Answering this question has implications not only on the achievable performance of LLMs, but also on the future of LLM pretraining and how one should tradeoff inference-time and pre-training compute. Despite its importance, little research attempted to understand the scaling behaviors of various test-time inference methods. Moreover, current work largely provides negative results for a number of these strategies. In this work, we analyze two primary mechanisms to scale test-time computation: (1) searching against dense, process-based verifier reward models; and (2) updating the model's distribution over a response adaptively, given the prompt at test time. We find that in both cases, the effectiveness of different approaches to scaling test-time compute critically varies depending on the difficulty of the prompt. This observation motivates applying a "compute-optimal" scaling strategy, which acts to most effectively allocate test-time compute adaptively per prompt. Using this compute-optimal strategy, we can improve the efficiency of test-time compute scaling by more than 4x compared to a best-of-N baseline. Additionally, in a FLOPs-matched evaluation, we find that on problems where a smaller base model attains somewhat non-trivial success rates, test-time compute can be used to outperform a 14x larger model.

Motivation & Objective

  • Motivate using additional test-time computation to improve LLM outputs on challenging prompts.
  • Unify proposal distribution refinement and verifier-based search as mechanisms for test-time computation.
  • Introduce a compute-optimal scaling strategy that allocates compute adaptively per prompt.
  • Evaluate how test-time compute compares to pretraining scale under FLOP-matched conditions.
  • Demonstrate whether smaller models with test-time compute can outperform larger models without extra pretraining.

Proposed method

  • Model-agnostic formalism that treats test-time compute as tuning of the distribution over outputs given a prompt.
  • Compare two main mechanisms: (i) revising the proposal distribution via sequential or parallel generation, and (ii) searching against a process-based verifier model (PRM).
  • Train a PRM without human labels using per-step correctness estimates from Monte Carlo rollouts of the base model.
  • Evaluate three search methods against PRMs: best-of-N weighted, beam search, and lookahead search.
  • Define a compute-optimal strategy that selects hyperparameters to maximize accuracy for a given prompt under a fixed compute budget.
  • Bin prompt difficulty into five levels using model-predicted or oracle difficulty to guide per-difficulty compute allocations.
Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters

Experimental results

Research questions

  • RQ1Can test-time compute be allocated optimally per prompt to maximize accuracy under a budget?
  • RQ2How do different test-time strategies (revision vs. PRM-based search) scale with prompt difficulty and compute budget?
  • RQ3Does compute-optimal test-time compute surpass best-of-N baselines, and by how much?
  • RQ4In FLOPs-matched settings, can test-time compute with a smaller model outperform a substantially larger model?
  • RQ5What are the practical gains and limitations of difficulty-conditioned compute allocation for test-time strategies?

Key findings

  • Compute-optimal scaling can outperform best-of-N by up to about 4× less test-time compute across revisions and PRM search.
  • PRM-based search shows difficulty-dependent efficacy; beam search helps on harder/low-budget prompts, while best-of-N can outperform at higher budgets for easier prompts.
  • On easy to intermediate prompts, test-time compute can outperform a 14× larger model under FLOPs matching in certain conditions.
  • Revision-based proposals improve with longer revision chains, indicating the model learns from in-context mistakes.
  • Difficulty-estimated strategies enable adaptive allocation that closely approaches or matches optimal strategies across prompt types.
  • Search methods experience diminishing returns as budget increases due to overfitting to the verifier’s signals.
Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.