Search, Reflection, and Test-Time Compute › From Training Compute to Inference Compute

Michael BrenndoerferNovember 29, 20262 min read
Language AI HandbookAll chapters
Part 40 of 67Reasoning Post-Training and Verifiable Rewards
Chapter 304Search, Reflection, and Test-Time Compute › From Training Compute to Inference Compute
Reading section 2 of 14 · From Training Compute to Inference Compute · 2 minSection 2 of 14 · 2 min

Section 2 of 14 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Training scaling laws relate loss to quantities such as model size and training data. On a deployed model, the question changes. What can you do with a fixed set of weights and a larger budget for answering a prompt?

Suppose the decoder draws independently from the same distribution on a given problem and gets the answer right with probability pp on each draw. The chance that all NN draws fail is (1−p)N(1-p)^N, so at least one succeeds with probability 1−(1−p)N1-(1-p)^N. This is coverage. Program synthesis systems have used learned search and, in systems such as AlphaCode, large-scale sampling (Kulal et al., 2019; Li et al., 2022).

The other question is how to recognize a correct candidate once you have one. A unit test or proof checker can sometimes do that more cheaply than generating a solution. A learned verifier may be useful when no such checker is available. Cobbe et al. (2021), for example, scored complete math solutions against one another using a verifier trained on labeled candidates. The value of the scorer depends on how reliably it ranks the candidates your generator produces.

Sampling, scoring, and stopping give you three decisions to make. You can draw complete answers from scratch or expand partial derivations. A scoring heuristic can guide which paths survive, and a stopping rule decides when to return an answer.

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