Search, Reflection, and Test-Time Compute › Budget Allocation and Stopping

Michael BrenndoerferNovember 29, 20265 min read
Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 304Search, Reflection, and Test-Time Compute › Budget Allocation and Stopping
Reading section 8 of 14 · Budget Allocation and Stopping · 5 minSection 8 of 14 · 5 min

Section 8 of 14 · 5 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

So far we have treated NN as a single global number. In practice the interesting question is how to distribute a total budget across a heterogeneous set of problems.

The value of another draw varies across problems. A uniform budget spends the same number of draws on problems with different success probabilities.

When changing the allocation helps

Consider coverage. The marginal value of one more sample on a problem with per-sample success probability pp is

ΔN(p)=[1−(1−p)N+1]−[1−(1−p)N]=p(1−p)N.\Delta_N(p) = [1-(1-p)^{N+1}] - [1-(1-p)^N] = p(1-p)^N.

For any fixed N≥1N\ge1, the gain is zero at p=0p=0 and p=1p=1 and peaks at p=1/(N+1)p=1/(N+1). These are gains in coverage with independent draws. A verifier-guided policy's gain in selected accuracy also depends on the scorer and may be negative.

The plot shows the next-draw coverage gain for several current sample budgets.

PythonIn [5]
CollapseExpand
import numpy as np

p_grid = np.linspace(0.01, 0.99, 240)
n_values = np.array([2, 5, 10, 20])
marginal_by_n = {int(n): p_grid * (1.0 - p_grid) ** n for n in n_values}
VisualizationOut [6]
CollapseExpand
Line chart of marginal coverage gain versus per-problem success probability.
Each curve shows the additional coverage from one independent draw after N draws. The peak is at p = 1/(N + 1) and moves toward lower per-draw success probabilities as N increases.

At a fixed budget, a very high pp leaves little uncovered. A very low pp leaves most problems uncovered but gives any one additional draw little chance to help. The peak balances the chance of having missed so far with the chance of succeeding on the next draw.

Fixed counts and adaptive stopping

A fixed-count baseline assigns the same NN to every problem. Giving it the adaptive policy's maximum NN lets us compare policies at a common per-problem cap.

An adaptive policy allocates per problem based on a signal available during generation:

  • Agreement. Draw an initial batch and spend more of the budget if answers disagree. A repeated wrong answer can trigger an early stop.
  • Verifier confidence. Stop when a candidate's score passes a threshold. Check calibration on the pools and budget range where you will apply the rule.
  • Difficulty prediction. Use a heuristic, a prompted estimate, or a trained predictor. Manvi et al. fine-tuned a model to estimate whether restarting would produce a better answer than continuing an attempt.
  • Vote margin. Stop when the leading answer clears a chosen margin. A formal sequential error guarantee requires explicit hypotheses, a likelihood ratio or other test statistic, and calibrated stopping boundaries.

The matched-cost trap

For a retrospective mean-budget comparison, match the total number of draws used across the benchmark. If the mean falls between integers, assign the two adjacent budgets in the required proportions and choose which tasks get the larger budget by a shuffle. A cap-matched policy instead gives every problem the largest number of draws allowed by the adaptive policy. The mean and cap answer different questions about work. For serving latency, measure the wall-clock distribution as well. A draw cap limits how many samples you generate, while the time taken also depends on output lengths, parallelism, and scoring. If you need comparable total computation, count those costs under the same convention for all policies.

Stopping on four unanimous answers can accept a wrong consensus. The probability of this event is a lower bound on the policy’s error rate.

With nine equally likely wrong labels and independent draws, the probability of an incorrect early stop is the chance that all four initial draws give the same wrong answer. That probability is 9((1−p)/9)4=(1−p)4/7299((1-p)/9)^4=(1-p)^4/729. One minus this probability is an upper bound on the accuracy of a policy that accepts unanimous answers immediately.

Compute-optimal reasoning

The strongest version of the test-time-compute claim is that it can substitute for model scale. Snell et al. (2024) studied this carefully, using a PaLM-2-class generator, a process reward model, and a FLOPs-matched comparison against larger pretrained models.

Their findings, stated with their bounds:

  • With a generation budget of 128 and verifier-based selection, the easier difficulty bins favored fully sequential revisions. The harder bins favored a mix of sequential revisions and parallel samples. Snell et al., Figure 7, right
  • In their revision experiments, choosing a sequential-to-parallel ratio by difficulty improved on the studied parallel best-of-NN baseline. The paper compares both oracle and estimated difficulty bins. Snell et al., Figure 8
  • In a separate FLOPs-matched analysis, Snell et al. compared additional inference on PaLM 2-S* with greedy decoding from a model roughly 14 times larger, holding the quantity of training data fixed. The result depended on the difficulty bin and the expected share of inference compute. Snell et al., Section 7

Wu et al. (2024) also studied when a smaller model with additional inference work can match a larger one. The comparison depends on the task, search method, scorer, and accounting convention. To choose NN, measure the selected accuracy curve and cost with the scorer you plan to use.

Chen et al. studied redundant reasoning on simple problems and evaluated a self-training approach that reduced computational overhead while preserving performance across their benchmark suite. This is a measured result for their setup.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy