AI

Test Time Compute: Why Models Think Longer to Answer

Test time compute explained: how AI models spend extra computation while answering, the main scaling methods, the research, costs and when to use it.

By OmniAI Editorial · Nov 22, 2026 · 12 min read

Test time compute is the computing power an AI model spends while it answers a question, as opposed to the compute spent training it. Giving a model more test time compute, by letting it reason longer, try several answers or check its own work before replying, often makes it much more accurate on hard problems like math, coding and planning, without changing the model's weights. The trade is time and money: every extra step of thinking costs tokens and makes you wait.

This guide explains how test time compute works, the main ways to scale it, test time compute scaling versus training bigger models, how it relates to chain of thought, parallel test time compute, what it costs with a worked example, how providers let you control it, and when it's worth paying for. Our explainer on reasoning models covers the models that made this idea mainstream; this article goes deeper on the compute itself.

What Is Test Time Compute?

An AI model's life has two phases. During training, it learns from data and its weights are set; that's a one-time cost, often huge. During inference, also called test time, the trained model answers requests. Test time compute is everything spent in that second phase for one request: the forward passes to read your prompt, generate reasoning and produce the answer, plus any extra samples, searches or verifications.

For years, the main way to make models smarter was to scale training: more parameters, more data, more compute. Test time compute adds a second dial. Instead of building a bigger model, you let the existing model work harder on each question that needs it. Some people call this inference-time compute or inference scaling; the meaning is the same.

OpenAI put the idea on the map when it introduced o1, writing that the model's performance "consistently improves with more reinforcement learning (train-time compute) and with more time spent thinking (test-time compute)," and that the constraints on scaling this approach "differ substantially from those of LLM pretraining."

How Does Test Time Compute Work?

There are two basic ways to spend more compute at answer time, and most systems combine them.

Sequential: think longer. The model writes a longer chain of reasoning before answering: breaking the problem into steps, trying an approach, noticing a mistake, backing up and trying again. Each extra reasoning token is another forward pass through the model. Reasoning models are trained with reinforcement learning to use this extra length productively.

Parallel: think wider. The system generates several independent answers or reasoning paths, then picks one: by majority vote, by a scoring model, or by checking against tests. More samples mean more chances that at least one is right, and a good selection method finds it.

A third ingredient makes both work better: verification. A verifier can be a trained reward model that scores each step or answer, a unit test suite for code, a calculator for arithmetic, or the model itself reviewing its draft. Search methods use the verifier to decide which partial reasoning paths to keep extending.

Left: a grey speech bubble with a long ink line to its right. A dotted ink divider. Right: a small grey box with five ink lines fanning out to five light circles, the middle one orange.
Two ways to spend test time compute: one long chain of thought, or many parallel attempts with a selector.

The Main Methods, Compared

MethodHow it spends computeWhat picks the answerStrengthsWeaknesses
Longer chain of thoughtSequential reasoning tokensThe model's own final answerSimple; built into reasoning modelsLong waits; can overthink easy questions
Self-consistencySeveral reasoning paths in parallelMajority vote over final answersNo extra model needed; robust on single-answer problemsNeeds answers you can compare; cost grows with every sample
Best-of-N with a verifierN full answers in parallelA reward model or tests score each oneStrong when a good verifier existsA weak verifier picks confident wrong answers
Search over steps (beam, tree search)Branches at each reasoning stepA process reward model scores partial stepsEfficient on hard multi-step problemsComplex to build; needs a step-level verifier
Self-revisionDraft, critique, rewrite in sequenceThe final revisionFixes visible errorsModels can "fix" correct answers into wrong ones
Budget forcingForces the model to keep thinking or stop at a set lengthThe model's final answerSimple dial on thinking lengthCrude; quality depends on the model's training

Sources: Wang et al., "Self-Consistency Improves Chain of Thought Reasoning in Language Models"; Snell et al., "Scaling LLM Test-Time Compute Optimally Can Be More Effective Than Scaling Model Parameters"; Muennighoff et al., "s1: Simple test-time scaling."

Test Time Compute Scaling: What the Research Shows

Several studies quantify how much extra thinking buys.

  • Self-consistency (Wang et al.) sampled many reasoning paths instead of one greedy answer and took the most common result. On the GSM8K grade-school math benchmark it improved accuracy by 17.9 percentage points over standard chain-of-thought prompting.
  • Compute-optimal scaling (Snell et al., Google DeepMind and UC Berkeley) found the best way to spend test time compute depends on how hard each prompt is. Allocating compute adaptively per prompt was more than 4 times as efficient as a plain best-of-N baseline, and in a comparison with matched total compute, a smaller model using test time compute outperformed a model 14 times larger on problems where the small model already had some success.
  • Budget forcing (Muennighoff et al., "s1") fine-tuned a model on just 1,000 questions with reasoning traces, then controlled its thinking length by stopping it or appending "Wait" when it tried to finish early. Longer thinking improved results, and the model beat o1-preview on competition math by up to 27%.

Two limits show up across this research. First, gains depend on difficulty: easy questions don't improve with more thinking, and the very hardest ones may not either if the model lacks the knowledge. Second, returns diminish: doubling compute rarely doubles accuracy, so each extra increment buys less.

A light chart panel with ink axes and a grey curve with an ink outline that rises steeply and then flattens, with an orange dot on the flat part.
Accuracy rises with more test time compute, then levels off.

Test Time Compute vs Training Compute

Training computeTest time compute
When it's spentOnce, before releaseOn every request
Who paysThe model builderWhoever runs the request
What it changesThe model's weightsOnly the current answer
How it scalesBigger models, more dataLonger reasoning, more samples, search
Best forBroad knowledge and general skillHard, checkable problems that need careful steps
Cost profileHuge upfront, cheap per useCheap upfront, grows with usage

The two work together. Reasoning models are trained with reinforcement learning specifically so that extra test time compute turns into better answers; a model not trained that way gains much less from just being asked to think longer. Our comparison of AI inference vs training covers the broader split.

Test Time Compute vs Chain of Thought

Chain of thought is one way to spend test time compute; test time compute is the broader resource.

  • Chain of thought prompting asks a model to write its reasoning step by step before answering. It started as a prompting technique and uses more tokens, so it is a form of test time compute.
  • Reasoning models build long chains of thought into their training, so they reason by default and for much longer, often thousands of hidden reasoning tokens.
  • Test time compute also covers methods beyond a single chain: sampling many chains, searching with verifiers, revising drafts and running tools.

So every chain of thought uses test time compute, but not all test time compute is a single chain of thought. Our guide to chain of thought prompting shows how to prompt for it with standard models.

Parallel Test Time Compute

Parallel test time compute runs several attempts at once and combines them. It's attractive because the attempts don't depend on each other, so they can run simultaneously on separate hardware, and total wait time stays close to a single attempt even though cost multiplies.

Where it works well:

  • Code, where unit tests are a cheap, reliable verifier: generate several solutions and keep one that passes.
  • Math and logic with one final answer, where majority voting is meaningful.
  • Agentic tasks where multiple agents try different approaches and a final step compares their results.

Where it struggles: open-ended writing, where there's no clear "majority" and judging quality is itself hard. Some providers also offer premium modes, such as OpenAI's pro reasoning mode on some models, that spend more compute on difficult tasks in exchange for higher latency and token usage.

What Test Time Compute Costs: A Worked Example

Reasoning tokens are billed like output tokens, even when the provider hides them. Here's how the bill changes for one hard question, using an example price of $20 per million output tokens and ignoring the small input cost:

SettingReasoning tokensAnswer tokensTotal output tokensCost per questionCost for 10,000 questions
Low effort1,0003001,300$0.026$260
High effort10,00030010,300$0.206$2,060
Best of 8 at medium effort (3,000 reasoning each)24,0002,40026,400$0.528$5,280

The same question can cost 20 times more depending on how much compute you allow. That's fine for a contract review or a production bug; it's wasteful for "what's our refund policy?" The practical move is to route by difficulty: low effort or a fast model by default, more compute only where the task is hard and the stakes justify it.

Latency scales too. Sequential thinking at a typical generation speed can add many seconds or minutes to a hard answer; parallel sampling adds less wait time but multiplies cost.

How Providers Let You Control It

Most model APIs now expose a dial for test time compute rather than a fixed token count:

ProviderControlTypical settings
Anthropic (Claude)Adaptive thinking plus an effort settinglow, medium, high, xhigh, max; the model decides how much to think within that level
OpenAIreasoning.effort, plus a separate pro reasoning mode on some modelsModel-dependent values from none and minimal up to high, xhigh and max
Google (Gemini)thinking_levelModel-dependent: minimal, low, medium, high, and xhigh on some models; dynamic thinking by default

Older APIs used explicit thinking-token budgets; Anthropic's newest models reject fixed budgets and use adaptive thinking with effort levels instead. Supported values and defaults differ by model, so check the model's documentation; the overall direction is clear: you choose how hard the model should try, and it adapts within that choice.

When to Use More Test Time Compute

Turn it up for:

  • Math, logic and puzzles with checkable answers.
  • Complex coding, debugging and code review.
  • Multi-step planning and agentic tasks where one wrong step derails the rest.
  • High-stakes analysis where errors are expensive: contracts, finance, medical or security reviews.

Turn it down for:

  • Simple facts, lookups, classification and short rewrites.
  • Chat and customer support where speed matters more.
  • High-volume pipelines where cost per request dominates.
  • Creative writing, where longer reasoning rarely improves quality much.

A simple test: run a sample of real requests at two effort levels and compare accuracy and cost. If the higher level doesn't measurably help, it's just a bigger bill.

Limits and Open Questions

  • Overthinking. Models can spend thousands of tokens on easy questions, adding cost and occasionally talking themselves out of a right answer.
  • No new knowledge. More thinking can't supply facts the model never learned; retrieval or tools are needed for that.
  • Verifier quality caps gains. Best-of-N and search are only as good as the scorer; weak verifiers reward confident mistakes.
  • Faithfulness. A model's written reasoning doesn't always reflect how it actually reached the answer, which matters if you rely on reasoning traces to audit decisions.
  • Energy and hardware. As more products default to long reasoning, inference becomes a larger share of AI's compute use, which is one reason chip makers now design hardware specifically for inference.

FAQ

What does test time compute mean?

It means the computation an AI model uses while answering a request, after training is finished. Spending more of it, by reasoning longer or trying multiple answers, can improve accuracy on hard problems.

Is test time compute the same as inference?

Inference is the act of running a trained model; test time compute is how much computation that inference uses for a given request. "Inference-time compute" and "test time compute" are used interchangeably.

Why does thinking longer make AI models smarter?

Longer reasoning lets a model break a problem into steps, check intermediate results and correct mistakes before answering. Models trained with reinforcement learning learn to use that extra room productively, so accuracy rises on multi-step problems.

Does more test time compute always help?

No. It helps most on hard problems with checkable answers and helps little on easy questions or open-ended writing. Gains also level off: each extra increment of thinking buys less.

Is test time compute expensive?

It can be. Reasoning tokens are billed as output tokens, so a hard question at high effort can cost many times more than the same question at low effort. Routing only difficult requests to high effort keeps costs in check.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog