Search, Reflection, and Test-Time Compute › From Training Compute to Inference Compute
Language AI HandbookAll chapters 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 on each draw. The chance that all draws fail is , so at least one succeeds with probability . 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!