For most of the history of machine learning, there were only two knobs anyone thought to turn. The first was model size: more parameters, more representational power, better performance. The second was data: more examples, more variety, more signal. These two variables dominated the field for the better part of a decade, and the returns were reliable enough that researchers started calling the pattern a law. Then, quietly, a third knob appeared.
Test-time compute is the practice of letting a model do more work after it has already been trained. Instead of returning an answer immediately, the system generates multiple candidates, reconsiders intermediate steps, or extends its reasoning chain before committing to a response. In late 2024, a research group at UC Berkeley and Google DeepMind demonstrated that a smaller model given more inference-time compute could outperform a model fourteen times its size on hard mathematical problems. The mechanism was simple: the smaller model tried more approaches, and a separate process picked the best one.
Training a model fourteen times larger takes months and costs an extraordinary amount. Letting a smaller model think longer costs compute at runtime but requires no retraining at all. That asymmetry has restructured how leading AI laboratories think about capability. OpenAI's o1 demonstrated that performance on complex reasoning benchmarks improves smoothly as more inference-time compute is allocated, a result that held across mathematics, code, and scientific reasoning. The era of the third lever had arrived.
The most straightforward way to use test-time compute is to generate more than one answer and pick among them. Its behavior is surprisingly orderly: the fraction of problems a model can solve with at least one correct sample grows in a nearly log-linear relationship with the number of samples drawn. Every time you multiply attempts by ten, you solve a predictable additional share of problems. The curve holds across four orders of magnitude of compute and does not flatten quickly.
A coding agent evaluated on SWE-bench Lite, a benchmark built from real bug reports in real codebases, illustrated the practical force of this. With a single sample the agent solved roughly 16 percent of issues. With 250 samples it solved 56 percent, surpassing the previous state-of-the-art single-sample result of 43 percent held by a substantially more capable model. The improvement came not from a smarter model but from trying more times.
The limitation is embedded in that result. To know you have a correct answer among 250 candidates, you need some way to identify it. Knowing a correct answer is somewhere in the pile is a statistical artifact, not a useful capability, unless something can reliably pick it out. Generation is scalable and embarrassingly parallel. Everything that determines whether more generation actually helps comes after it.
Checking an answer is, in many domains, easier than producing one. This computational asymmetry mirrors one of the oldest open questions in theoretical computer science: whether problems whose solutions are easy to verify are also easy to solve. The intuition is familiar to anyone who has solved a puzzle. Checking a completed Sudoku grid takes seconds; finding the solution from scratch can take considerably longer. AI systems exploit exactly this gap, pairing a generator with a verifier that scores its output.
The most powerful verifiers are deterministic and complete. Google DeepMind's AlphaProof system generates candidate proofs in the formal language Lean and checks them with Lean's type checker, which either accepts a proof or rejects it with no ambiguity. At the 2024 International Mathematical Olympiad, AlphaProof scored 28 out of 42 possible points, matching the threshold for a silver medal and solving four of six competition problems, including one that required over three days of continuous search. The verifier in that case was not a learned model making probabilistic judgments but a formal system grounded in mathematical logic.
Learned verifiers, called reward models, are far more common in practice but far more fragile. Step-level process reward models, which assign credit to each intermediate reasoning step rather than only the final answer, substantially outperform outcome-only models on mathematical benchmarks. The difficulty is that they can be fooled. When a generator is optimized against a fixed reward model, it reliably discovers inputs that score well without being correct, a failure mode called reward hacking. DeepSeek, building its R1 reasoning model, concluded that learned reward models and tree-search approaches both failed at scale and fell back on rule-based checking using executable validators that cannot be gamed.
Reasoning models do not naturally know when they are done. They continue producing tokens because continuing is what training rewarded, not because additional thought is improving the answer. The result is overthinking: a model that has already reached the correct conclusion keeps revising and second-guessing, and occasionally argues itself into an error.
Research from Anthropic documented this failure mode directly. When models were given extra compute budget beyond what a problem required, they frequently reconsidered correct answers, and in 71 percent of those reconsideration events the model moved away from a right response toward a wrong one. The additional compute was not neutral. It was actively destructive.
The engineering response has produced a growing subfield around adaptive early exit: monitoring a model's reasoning in progress and halting it when further computation is unlikely to help. Training-free methods that track semantic convergence between successive reasoning steps have demonstrated token reductions of 20 to 55 percent with no measurable accuracy loss. A complementary approach, developed by a Stanford group in their s1 system, uses budget forcing, setting explicit token limits per problem and training the model to produce its best answer within that constraint. The result is a system that allocates more compute to harder problems and less to easier ones, approximating the compute-optimal strategy that the original theoretical analysis prescribed.
A working diagram of test-time compute's three mechanisms: generation, verification, and stopping. The architecture is simple; the engineering challenge is choosing the right balance for each problem. Daice Labs, 2026.
The ceiling on test-time compute is not theoretical. A research team at Princeton analyzed the relationship between inference scaling and verifier quality across coding benchmarks and established a formal bound: if a verifier produces false positives with any nonzero probability, no amount of additional sampling can push accuracy above that false-positive rate. More compute beyond that cap makes things worse, not better. The question is never how many samples to generate. It is always how good your verifier is.
Where verification is perfect, as it is in formal proof checking and unit-tested code, generation can be scaled aggressively and the gains are reliable. Where verification is imperfect, which covers most real-world applications, investment in the verifier produces higher returns than investment in sampling. The most compute-efficient systems use a difficulty classifier to route hard problems toward verifier-guided search and easy ones toward simple best-of-N sampling, the operational form of what the theoretical analysis identified as ideal.
For software engineering the implication is direct. Unit tests are a verifier, and their coverage is a hard budget constraint on how much you can gain from repeated sampling. A code agent drawing 250 patches against a weak test suite surfaces patches that pass the tests without fixing the underlying bug. The same agent against a test suite with strong coverage surfaces genuinely correct patches at a high rate. Test-time compute does not change what you can guarantee about AI-generated code. It amplifies what your existing verification infrastructure already guarantees.
Key references: Snell, C. et al., "Scaling LLM Test-Time Compute Optimally Can be More Effective than Scaling Model Parameters," UC Berkeley and Google DeepMind, August 2024. Brown, B. et al., "Large Language Monkeys: Scaling Inference Compute with Repeated Sampling," 2024. Lightman, H. et al., "Let's Verify Step by Step," OpenAI, 2023. DeepSeek-AI, "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning," January 2025. Stroebl, B., Kapoor, S. and Narayanan, A., "Inference Scaling fLaws: The Limits of LLM Resampling with Imperfect Verifiers," Princeton University, 2024. Setlur, A. et al., "Scaling Test-Time Compute Without Verification or RL is Suboptimal," CMU and UC Berkeley, 2025. AlphaProof and AlphaGeometry 2, Google DeepMind, reported in Nature, 2024. OpenAI, "Learning to Reason with LLMs," September 2024. ARC Prize Foundation, o3 evaluation report, December 2024.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.