Test-time compute

Test-time compute is the computation a model spends while answering a question, as opposed to during training, and spending more of it, by reasoning longer or trying several answers, can improve results.

For most of the history of large language models, the way to get a better model was to spend more on training: more data, more parameters, more chips. Each answer then cost roughly the same small amount to produce. Test-time compute names the other side of the ledger. "Test time" is machine learning's term for when a trained model is being used, so test-time compute is the computation spent on each individual question.

There are two broad ways to spend it. A model can think longer, writing out an extended chain of reasoning before answering, as reasoning models do. Or a system can generate many candidate answers and pick the best, by majority vote or by having a separate verifier model score them. Both turn extra computation at answer time into better accuracy, particularly on maths, coding and other problems with checkable answers.

OpenAI built its o1 model, announced on September 12, 2024, around the idea. OpenAI reported that o1's performance improved both with more reinforcement learning during training and with more time spent thinking at test time. On the 2024 AIME maths exam, GPT-4o averaged 12%. o1 scored 74% with a single attempt per problem, 83% with a consensus of 64 attempts and 93% when re-ranking 1,000 attempts with a learned scoring function, a direct illustration of buying accuracy with computation.

Research published the month before gave the idea a more careful footing. Charlie Snell and colleagues found in August 2024 that allocating test-time compute adaptively, depending on how hard each question is, was more than four times as efficient as simply sampling many answers and picking the best. In a comparison with matched computation, a smaller model given extra test-time compute outperformed a model 14 times larger on problems where the smaller model already had some chance of success.

The trade-off is cost and speed. Test-time compute is paid on every query rather than once, so a model that thinks hard costs more per answer and takes longer to respond. It also does not help evenly: the gains are largest where answers can be checked and smallest where the model lacks the knowledge in the first place. Much current AI news about rising inference demand, reasoning modes and effort settings comes down to how much test-time compute customers are willing to pay for.

Common questions

What is test-time compute?

It is the amount of computation an AI model uses when answering a query, after training is finished. Spending more of it, for example by letting the model reason longer or by generating several answers and choosing the best, can make answers more accurate.

What is the difference between test-time compute and training compute?

Training compute is spent once to build the model, adjusting its parameters on large datasets. Test-time compute is spent every time the model is used. Training compute shapes what a model knows and can do; test-time compute governs how much effort it puts into each individual answer.

Why does more test-time compute improve answers?

Longer reasoning lets a model break a problem into steps, check its work and correct mistakes before committing to an answer. Sampling several answers and voting or verifying filters out errors that appear in only some attempts. Both help most on problems with clear right answers, such as maths and code.

Is test-time compute the same as inference-time scaling?

They are closely related. Test-time compute is the resource itself, while inference-time scaling, also called test-time scaling, describes the observed pattern that performance improves as more of that resource is spent per query.

Finding more

Search for "test-time compute", "inference-time scaling" or "scaling test-time compute" to follow the research. The original papers on arXiv and AI labs' technical reports for reasoning models are the primary sources. Treat benchmark charts showing performance rising with thinking time as specific to the tasks tested, which are usually maths and coding.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.