Advanced
Reasoning models: test-time compute & long CoT
Reasoning systems spend additional inference compute on search, verification, or longer intermediate traces, trading latency and tokens for a chance at better answers.
Updated
1
Concept
Traditional scaling spends more compute before deployment: train a larger model on more data. Test-time compute spends additional computation after training, on the specific problem being answered. The system may generate more tokens, sample several solutions, search a tree, call tools, critique intermediate work, or run verifiers. This introduces a new scaling axis: quality can sometimes improve by thinking longer rather than changing the checkpoint.
The simplest pattern is best-of-. Generate candidate answers and choose one using a reward model, exact checker, or other scorer. Diverse samples explore different approaches. The selector is decisive: if it cannot recognize correctness, more candidates can produce more persuasive errors. Correlated samples also limit gains; ten near-identical chains are not ten independent attempts.
Sequential methods let one trajectory spend more steps. A model can propose a plan, execute part of it, detect a contradiction, backtrack, and revise. Search methods branch explicitly and allocate compute toward promising states. Tool-using systems spend compute on retrieval, code execution, or symbolic solvers. These mechanisms differ, so “reasoning tokens” should not be treated as one universal algorithm.
Long chain-of-thought (CoT) is an intermediate textual trace. It can improve performance by decomposing problems and leaving working memory in the context. Post-training on verifiable rewards can make extended traces more useful because successful strategies receive reinforcement without requiring a human-authored path. Yet a trace is still generated text. It may rationalize a guess, hide an invalid step, or repeat itself fluently.
Trace length is therefore a cost, not a quality metric. A problem may need one decisive observation rather than pages of algebra. Extra tokens increase latency and occupy context; multiple candidates increase batch and memory pressure. An adaptive policy should spend little compute on easy tasks and escalate when uncertainty or expected value justifies it.
The 2024 work by Snell and colleagues formalized this allocation perspective: different test-time strategies and budgets can be matched to problem difficulty, and compute should be allocated where it yields the most benefit. That is not a promise that inference scaling always beats a larger model. The result depends on the model, task, proposal diversity, verifier, and budget definition.
Process supervision and outcome supervision create different signals. Outcome checks reward a correct final answer and permit strategy discovery, but can reinforce lucky guesses. Process checks label intermediate steps and can localize errors, but are expensive and may impose one style of reasoning. Hybrid systems can verify formal steps where possible and judge the final result independently.
Evaluation must include accuracy against compute. Plot success versus generated tokens, latency, energy, and monetary cost. Separate proposal quality from selection quality by measuring whether any candidate was correct and whether the selector chose it. Test robustness to altered wording and adversarial distractors. Otherwise a system may appear to reason better simply because an evaluation leaks recognizable patterns.
Reasoning systems also change serving. Requests have variable duration, output length, and branching. Static batches become inefficient; schedulers need cancellation, priorities, and budget caps. A runaway trace can become both a cost problem and a denial-of-service vector. Product policy must decide when to stop, when to ask for clarification, and when to use a trusted tool.
The durable mental model is compute allocation under uncertainty. More inference work creates opportunities to search and verify; it does not itself create truth. The proposal mechanism explores, the verifier discriminates, and the scheduler decides how much the answer is worth. Long CoT is one possible workspace inside that system, not the definition of reasoning.
2
Explain it like I am five
A chess player can answer instantly with the first plausible move or use ten minutes to analyze branches, reject traps, and compare end positions. More clock time helps only if the player searches useful branches and evaluates them well; staring longer at the same bad line does not. Test-time compute gives a model a larger thinking budget, while search policy and verification determine whether that budget becomes insight or merely extra text.
3
Teach it back
Define test-time compute, give two ways to spend it, and explain why a long chain of thought is neither necessary nor sufficient evidence of correct reasoning.
Minimum: 80 characters and 15 words. Your text stays only in this browser.
Saved only on this device.
Show a model answer
Test-time compute is extra computation spent after training for a particular query. A system can sample multiple candidate solutions and select with a verifier, or allow one policy to produce a longer iterative trace with self-checks and tool calls. A visible long trace may contain post-hoc rationalization or repeated mistakes, while a correct solution may use compressed internal work. Accuracy must be measured on outcomes and robust process checks, not trace length alone.
4
Check your understanding
Complete the teach-back and answer the quiz correctly to finish this lesson.
Sources
- Charlie Snell et al. (2024). Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters.