Bring the mental model from Scaling Laws & Emergent Abilities; this page will reuse it instead of restarting from zero.
Test-Time Compute: Spending Inference Budget on Search
Test-time compute spends extra inference budget on sampling, verification, and selection; it helps when the generator can produce good candidates and the verifier ranks them reliably.
01
Intuition
Build the mental picture first so the rest of the page has something to attach to.
Canonical sources: Kaplan et al., "Scaling Laws for Neural Language Models", Hoffmann et al., "Training Compute-Optimal Large Language Models", Cobbe et al., "Training Verifiers to Solve Math Word Problems", Uesato et al., "Solving Math Word Problems With Process- and Outcome-Based Feedback", Lightman et al., "Let's Verify Step by Step", Brown et al., "Large Language Monkeys: Scaling Inference Compute with Repeated Sampling", Wang et al., "Self-Consistency Improves Chain of Thought Reasoning in Language Models", and Snell et al., "Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters".
Training-time scaling spends more compute before deployment: more parameters, more data, longer training.
Test-time scaling spends more compute after the prompt arrives. In this page, that means sampling more complete candidate traces and scoring them with a verifier.
Here "search" means parallel best-of-N over complete traces, not prefix expansion or tree search.
This page focuses on the smallest useful case: best-of-N with a verifier. For one prompt, the model samples N complete candidate traces. A verifier scores each trace. The system returns the highest-scoring sampled trace.
For this finite best-of-N verifier setup, extra inference compute is useful only when two conditions are both true:
- the generator sometimes samples a good trace,
- the verifier tends to rank good traces above bad ones.
If the good trace is almost never sampled, extra compute may not be enough. If the verifier has a false-positive trap, more samples can make the system worse by making that trap more likely to appear. The honest question is not "does thinking longer help?" It is: for this prompt, generator, verifier, and cost model, is another sample worth buying?
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
02
Math
Translate the story into symbols, assumptions, and a derivation you can inspect.
For one prompt x, let the base model define a finite distribution over complete candidate traces. Each trace has hidden task correctness and a verifier score:
Best-of-N draws N independent traces from p and returns the sampled trace with the highest verifier score. Assume verifier scores are distinct and sort traces from lowest to highest verifier score, so s1<⋯<sK:
To connect back to process reward models, a trace score might be an additive step score:
Treat this as a ranking score, not a calibrated probability of correctness. Sum-vs-mean aggregation, length normalization, and distribution shift can all change which traces receive high verifier score.
The expected selected verifier score is
Selected correctness and sampled-correct coverage can be very different. Sampling a correct trace is coverage. Returning it is selection. More samples can make S(N) rise while A(N) falls if the highest-scoring trace is a verifier error.
A simple cost model is
Here N is only a teaching proxy for inference budget. Real serving cost also depends on generation length, verifier cost, batching, latency, and traffic volume.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
03
Code
Keep the implementation aligned with the notation so the algorithm is legible.
This witness uses the same finite best-of-N object as the demo. With a clean verifier, more samples improve selected correctness. With a noisy verifier, selected verifier score improves while true correctness eventually falls.
def selected_distribution(candidates, n):
ranked = sorted(candidates, key=lambda item: item["score"])
cumulative = 0.0
selected = {}
for item in ranked:
p = item["prior"]
next_cumulative = cumulative + p
selected[item["id"]] = next_cumulative ** n - cumulative ** n
cumulative = next_cumulative
return selected
def expected(candidates, selected, key):
return sum(selected[item["id"]] * item[key] for item in candidates)
def scored(candidates, mode):
return [{**item, "score": item[f"{mode}_score"]} for item in candidates]
def expected_accuracy(candidates, n, mode):
rows = scored(candidates, mode)
return expected(rows, selected_distribution(rows, n), "correct")
def expected_score(candidates, n, mode):
rows = scored(candidates, mode)
return expected(rows, selected_distribution(rows, n), "score")
candidates = [
{"id": "common_wrong", "prior": 0.50, "correct": 0, "clean_score": -2.0, "noisy_score": -2.0},
{"id": "plausible_slip", "prior": 0.25, "correct": 0, "clean_score": -0.3, "noisy_score": -0.3},
{"id": "clean_correct", "prior": 0.18, "correct": 1, "clean_score": 1.8, "noisy_score": 1.8},
{"id": "rare_exploit", "prior": 0.07, "correct": 0, "clean_score": 0.2, "noisy_score": 2.6},
]
clean_1 = expected_accuracy(candidates, 1, "clean")
clean_32 = expected_accuracy(candidates, 32, "clean")
noisy_1 = expected_accuracy(candidates, 1, "noisy")
noisy_64 = expected_accuracy(candidates, 64, "noisy")
assert clean_32 > clean_1
assert noisy_64 < noisy_1
assert expected_score(candidates, 64, "noisy") > expected_score(candidates, 1, "noisy")
print(round(clean_32, 3), round(noisy_64, 3))
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
04
Interactive Demo
Use direct manipulation to connect the explanation to a moving system.
Live Concept Demo
Explore Test-Time Compute: Spending Inference Budget on Search
The stage is code-native and interactive. Use it to test the explanation against the mechanism.
Manipulate one control and predict the visible change.
Choose what to inspect in Test-Time Compute: Spending Inference Budget on Search. This shared fallback is an observation guide, not evidence of learning.
Use the demo to compare a clean verifier against a noisy verifier on the same four traces. Increase N to spend more inference compute. Watch the gap between "sampled at least one correct trace" and "selected a correct trace"; that gap is where verifier quality matters.
Copy-only prompts — each action copies a page-grounded prompt to your clipboard. Nothing is sent by this site.
Concept: Test-Time Compute: Spending Inference Budget on Search
What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math?
Object contextScaling
concept:scaling/test-time-computeTest-Time Compute: Spending Inference Budget on Search
What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math?
Start with the prediction checkpoint, then compare the reveal to the mental model.
Take this moveStudy modes
Keep the object fixed; change the lens.Route back through the notebook
Carry the same object through intuition, math, code, and demo.
Test-time compute spends extra inference budget on sampling, verification, and selection; it helps when the generator can produce good candidates and the verifier ranks them reliably.
The next edge should feel earned: use the demo prediction here before following Tree Search Reasoning: Allocating Inference Budget Across Prefixes.
After The First Pass
Turn the concept into an inspected object.
The lower panels are one second act: keep the object fixed, inspect it visually, check source boundaries, practice transfer, then attach the research question.Mechanism Storyboard
See the idea move before the page explains it
Test-time compute spends extra inference budget on sampling, verification, and selection; it helps when the generator can produce good candidates and the verifier ranks them reliably.

Start with the picture, metaphor, or geometric mechanism.
Before reading further, choose the kind of change Test-Time Compute: Spending Inference Budget on Search should make visible.
Visual Inquiry
Make the image answer a mathematical question
Test-time compute spends extra inference budget on sampling, verification, and selection; it helps when the generator can produce good candidates and the verifier ranks them reliably.
Which visible object should carry the first intuition?
Pick the cue that should make Test-Time Compute: Spending Inference Budget on Search easier to reason about before the page gives the answer.
Source Grounding
Canonical references for the mechanism on this page.
What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math?
concept:scaling/test-time-computesources: wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute
Open the closest source note before trusting the local explanation.
3 selected-object sources shown first; 3 references total.
Audit the claim boundary, then ask from the same selected object.
Grounds repeated sampling and answer aggregation as a simple way to spend more inference compute.
Wang et al. ground drawing multiple reasoning paths and aggregating answers. Lightman et al. evaluate reward models by best-of-N search: select the sampled solution ranked highest by the...
This checks a finite, fixed-distribution best-of-N verifier model, not tree search, adaptive reasoning policies, universal scaling laws, exact serving costs, calibrated verifier probabili...
Grounds process-supervised reward models as learned verifiers evaluated by best-of-N selection over sampled reasoning solutions.
Wang et al. ground drawing multiple reasoning paths and aggregating answers. Lightman et al. evaluate reward models by best-of-N search: select the sampled solution ranked highest by the...
This checks a finite, fixed-distribution best-of-N verifier model, not tree search, adaptive reasoning policies, universal scaling laws, exact serving costs, calibrated verifier probabili...
Grounds the scaling question of when extra inference budget beats larger base models.
Wang et al. ground drawing multiple reasoning paths and aggregating answers. Lightman et al. evaluate reward models by best-of-N search: select the sampled solution ranked highest by the...
This checks a finite, fixed-distribution best-of-N verifier model, not tree search, adaptive reasoning policies, universal scaling laws, exact serving costs, calibrated verifier probabili...
Claim Review
Test-time compute spends extra inference budget on sampling, verification, and selection; it helps when the generator can produce good candidates and the verifier ranks them reliably.
What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math?
concept:scaling/test-time-computesources: wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute
Treat every claim as provisional until source support and a local witness agree.
1 structured claim check on this concept.
Run the prediction or practice transfer before asking for a grounded review.
Publisher-side editorial review is not independent replication. Claims without it still need exact source-support review. 3 references and 3 local witnesses are available for inspection.
Wang et al. ground drawing multiple reasoning paths and aggregating answers. Lightman et al. evaluate reward models by best-of-N search: select the sampled solution ranked highest by the reward model. Snell...
This checks a finite, fixed-distribution best-of-N verifier model, not tree search, adaptive reasoning policies, universal scaling laws, exact serving costs, calibrated verifier probabilities, or guaranteed...
Reviewed arXiv/source TeX: Wang et al. support repeated diverse reasoning-path sampling and answer aggregation; Lightman et al. support reward-model best-of-N selection and high-scoring wrong-answer failure cases; Snell et al. support verifier-search test-time compute, best-of-N baselines, and PRM exploitation/degradation. Local math/code/demo support the finite coverage-vs-selection model.
Reviewer: codex; reviewed 2026-05-20Practice notebook
Use the idea, then test it somewhere new
Test-time compute spends extra inference budget on sampling, verification, and selection; it helps when the generator can produce good candidates and the verifier ranks them reliably.
What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math?
concept:scaling/test-time-computesources: wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute
Use one state from Test-Time Compute: Spending Inference Budget on Search to explain what changes, why it changes, and which assumption the explanation needs.
No learner move yet; no learning state is inferred.
Write first, use only the help you need, then try a new case without it.
Use one state from Test-Time Compute: Spending Inference Budget on Search to explain what changes, why it changes, and which assumption the explanation needs.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Reveal when your model needs a nudge.
Write an attempt before asking the companion.
0 of 3 progressive hints opened.
This draft and any AI response do not establish mastery; a later unassisted case can.
- ObjectConceptTest-Time Compute: Spending Inference Budget on Search
- PredictBefore revealTest-Time Compute: Spending Inference Budget on Search prediction
- WitnessCompare codeTest-Time Compute: Spending Inference Budget on Search code witness 1
- RoomAsk groundedChecking local snapshot
Research Room
Attach the question to an exact object
Pick the concept, equation, source, code witness, claim, misconception, or demo state before asking for help. The handoff stays grounded to that object.Open the draft below to save one note and next action in this browser.
Test-Time Compute: Spending Inference Budget on Search
What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math?
These are fixed, deterministic perspectives derived from the selected object. They do not represent people, community contributions, or independent review.
Source ids wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute must support the exact object, not just the surrounding topic.
Treat this as a mechanism object: connect the definition to one equation, code witness, or demo before broadening the discussion.
Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo.
The learner can state the mechanism in their own words
Local action draftNo local draft saved yetExpand only when ready to capture one local next action
This draft stays locally in this browser for concept:scaling/test-time-compute.
- Source ids to inspect: wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute
- Definition, prerequisite, and contrast concept links
- The equation or code witness that makes the concept operational
- One demo state that shows the invariant instead of a slogan
- The learner can state the mechanism in their own words
- The learner can name the prerequisite that would repair confusion
- The learner can predict how the mechanism changes under one perturbation
I am working in Continuous Function's research reading room. Object: concept - Test-Time Compute: Spending Inference Budget on Search Object key: concept:scaling/test-time-compute Context: Scaling Anchor id: concept/concept-notebook/scaling/test-time-compute Open question: What is the smallest example that makes Test-Time Compute: Spending Inference Budget on Search click without losing the math? Evidence to inspect: - Source ids to inspect: wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute - Definition, prerequisite, and contrast concept links - The equation or code witness that makes the concept operational - One demo state that shows the invariant instead of a slogan Deterministic role lenses for this object: - Boundary: fixed perspectives, not people, community contributions, or independent review - Source-checking summary: Treat this as a mechanism object: connect the definition to one equation, code witness, or demo before broadening the discussion. - Proposed experiment: Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo. - Teach/transfer move: Turn the mechanism into one sentence that predicts a neighboring concept. - Assumptions: - Source ids wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute must support the exact object, not just the surrounding topic. - The stable content-object key lets local drafts, prompts, and route memory attach without changing the source page. - The concept explanation is local atlas prose until checked against its math, code, and source support. - Prerequisite gaps should become a repair route, not a reason to leave the object vague. - Role-lens requests: - Learner: ask for "Ask what would make "Test-Time Compute: Spending Inference Budget on Search" feel predictable rather than familiar." | assumption: Source ids wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute must support the exact object, not just the surrounding topic. | next action: The learner can state the mechanism in their own words - Researcher: ask for "Source ids to inspect: wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute" | assumption: The stable content-object key lets local drafts, prompts, and route memory attach without changing the source page. | next action: The learner can name the prerequisite that would repair confusion - Experimenter: ask for "Choose one variable or condition to perturb before asking for an explanation." | assumption: The concept explanation is local atlas prose until checked against its math, code, and source support. | next action: The learner can predict how the mechanism changes under one perturbation - Professor: ask for "Find the smallest transferable rule a learner could reuse without the AI." | assumption: Prerequisite gaps should become a repair route, not a reason to leave the object vague. | next action: Teach or transfer: Turn the mechanism into one sentence that predicts a neighboring concept. What would resolve this: - The learner can state the mechanism in their own words - The learner can name the prerequisite that would repair confusion - The learner can predict how the mechanism changes under one perturbation Answer as a careful research tutor: stay source-grounded, separate verified evidence from assumptions, name the relevant math objects, and end with one next action. Current deterministic role lens for this object: - Role lens: Learner - Evidence request: Ask what would make "Test-Time Compute: Spending Inference Budget on Search" feel predictable rather than familiar. - Assumption to keep visible: Source ids wang-2022-self-consistency, lightman-2023-verify-step-by-step, snell-2024-test-time-compute must support the exact object, not just the surrounding topic. - Proposed experiment: Ask the learner to perturb one representation, then check whether the same invariant survives in math, code, and demo. - Next action: The learner can state the mechanism in their own words
concept/concept-notebook/scaling/test-time-compute
concept:scaling/test-time-compute