Skip to main content
CodeLint.Dev Dev Tools
AI Tools 10 min read By CodeLint.Dev Team

Thinking Tokens: How Test-Time Compute Rewrote the AI Scaling Playbook

For a decade, AI progress had one recipe: bigger model, more data, more training compute. Around 2024 that curve flattened enough that the frontier labs reached for a second axis — spend compute at inference time instead, letting models generate long private chains of reasoning before answering. Two years on, every frontier system ships with a thinking mode, reasoning traces are billed as output tokens, and the scaling debate has moved from "how big is the model" to "how long should it think." This piece covers how test-time compute actually works, what the benchmarks do and don't show, why models overthink, and how to tune reasoning budgets when your own money is on the meter.

Try the tool
LLM Sampling Parameters Guide
Master temperature, top-p & reasoning knobs →

The Second Scaling Axis

The insight that reset the field: for a fixed model, accuracy on hard problems rises — often dramatically — with the amount of computation spent per query. OpenAI's o1 (late 2024) demonstrated it publicly; DeepSeek's R1 (January 2025) showed the capability could be trained with straightforward reinforcement learning on verifiable problems and released open-weights, collapsing the moat within months. By 2026 the technique is table stakes: GPT-5.x routes between fast and thinking paths automatically, Claude exposes extended thinking with a controllable budget, and Gemini's Deep Think tier targets olympiad-grade problems.

What "thinking" mechanically is: the model emits a long private chain of intermediate tokens — exploring approaches, checking arithmetic, backtracking — before producing the visible answer. Nothing mystical happens; the model is buying more forward passes' worth of computation and using its own output as working memory. Three properties follow directly:

  • Gains concentrate where verification exists. Math, code, logic, and structured analysis — domains where wrong paths can be caught internally — improved from graduate level to competition-winning (gold-medal IMO performances landed in 2025). Open-ended prose barely moves.
  • The cost distribution grew a fat tail. A hard query can silently consume 10,000+ reasoning tokens to yield a 200-token answer — billed at output rates ($25–30 per million at July 2026 frontier list prices).
  • Latency became a product decision. Thinking answers take seconds to minutes. The UX question "is this answer worth 40 seconds" now has to be answered per feature, not per model.

What the Benchmarks Show — and Hide

The headline results are real: reasoning models saturated GPQA (PhD-level science), pushed SWE-bench Verified from ~40% to 70%+ over 2025, and made competition math a solved category. But three caveats matter for anyone quoting the numbers professionally:

  • Benchmark gains overstate production gains. Benchmarks are exactly the verifiable, self-contained domain where thinking shines. Production workloads — ambiguous requirements, messy context, retrieval dependence — see smaller, task-dependent lifts, and occasionally regressions when reasoning models second-guess correct simple answers.
  • Overthinking is a measured phenomenon. Multiple 2025 studies documented accuracy declining past a reasoning-length sweet spot: models talk themselves out of right answers, hallucinate constraints, or burn budget re-verifying. More thinking is not monotonically better; the optimal budget is task-specific and empirically findable.
  • Reasoning traces are not faithful explanations. Interpretability work (including Anthropic's) shows the visible chain of thought doesn't reliably reflect the computation that produced the answer — models sometimes reach conclusions for unstated reasons and write plausible justifications. Treat traces as a useful debugging artifact, not as audit-grade explanation.

The honest summary for 2026: test-time compute genuinely extended the capability frontier — it is why the "scaling is dead" takes of 2024 aged badly — but it is a precision tool with a cost curve, not a universal quality slider.

The Economics: Paying for Thought by the Token

Reasoning rewired LLM unit economics in three ways that show up on every serious bill:

  • Output-token share exploded. Pre-reasoning workloads were 80–95% input-dominated; a thinking-heavy workload can invert that, and output tokens cost 3–6x more per token. The same nominal "price per million" therefore understates reasoning costs — always model input and output separately.
  • Variance became the budgeting problem. Median cost per query might be $0.002 while the 99th percentile hits $0.50 — the fat tail, not the average, sizes your worst month. Per-request reasoning caps (max thinking tokens) are the control that matters.
  • Effort tiers became the real product segmentation. Providers now sell the same weights at multiple think-budgets (minimal/standard/extended; GPT-5.6's Sol/Terra/Luna tiers at $5/$30, $2.50/$15, $1/$6 per million). Choosing effort per request is the new model routing — and often a bigger cost lever than choosing the model itself.

The production pattern that wins in 2026: classify difficulty first, think second. A cheap router (or the provider's auto-router) sends the easy 80% of traffic down a no-thinking path at small-model prices, reserving extended reasoning for the queries whose value justifies a fat-tail draw. Teams that skip the router pay reasoning prices for reformatting JSON.

Tuning It: Budgets, Sampling, and Verification

  • Find the knee empirically. For a representative task set, sweep reasoning budgets (e.g., 1k / 4k / 16k thinking tokens) and plot accuracy versus cost. Nearly every task shows a knee past which accuracy flatlines or dips — set the cap there, not at the maximum.
  • Sampling parameters interact with thinking. Reasoning paths generally want low temperature (determinism keeps derivations on rails), while some providers fix or recommend specific sampling for thinking modes entirely. If you're still hand-tuning temperature and top-p from 2023 folklore, re-baseline: the defaults changed generations ago.
  • Verification beats longer thinking. For correctness-critical outputs, one model generating + a cheap independent check (unit tests, schema validation, a small-model judge) reliably outperforms doubling the thinking budget — at lower cost. Structure catches what introspection misses.
  • Cache what surrounds the thought. Thinking tokens themselves aren't reusable, but the long system prompts and context that precede them are — prompt caching still cuts the input side 50–90% on reasoning workloads.
  • Log thinking-token counts per request. It's the single most diagnostic series for both cost spikes and quality regressions — a sudden jump in median thinking length usually means your inputs changed shape before your outputs visibly degraded.

Frequently Asked Questions

What is test-time compute?
Compute spent at inference rather than training: the model generates long private reasoning chains — exploring, checking, backtracking — before answering, effectively buying more computation per query. It became the frontier's second scaling axis when pretraining returns slowed around 2024, demonstrated publicly by OpenAI's o1 and open-sourced in spirit by DeepSeek R1 in January 2025. By 2026 every major provider ships controllable thinking modes billed as output tokens.
Do reasoning models actually perform better?
Dramatically so on verifiable domains — math, code, logic, structured science — where they took benchmarks from graduate-level to competition-gold (IMO gold-medal performances, GPQA saturation, SWE-bench Verified from ~40% to 70%+ during 2025). Gains are much smaller on open-ended tasks, and measured "overthinking" studies show accuracy can decline past an optimal reasoning length. Production lift is real but task-dependent: benchmark deltas are the ceiling, not the expectation.
Why are reasoning models expensive?
Thinking is billed as output tokens — the expensive kind, $25–30 per million at July 2026 frontier rates versus ~$5 for input. A hard query can burn 10,000+ invisible reasoning tokens for a 200-token answer, and costs have a fat tail: the 99th-percentile query can cost 100x the median. Controls that work: per-request thinking-token caps, effort tiers (providers sell minimal/standard/extended budgets), difficulty-based routing so easy traffic skips thinking entirely, and prompt caching on the input side.
Can I trust a model's chain-of-thought as an explanation?
Not as a faithful one. Interpretability research through 2025 showed reasoning traces don't reliably reflect the internal computation — models sometimes reach answers for unstated reasons and produce plausible-sounding justifications, and can even be nudged by hidden hints they never mention. Traces are genuinely useful for debugging failure modes and spotting derailments, but for high-stakes decisions, verify outputs structurally (tests, independent checks) rather than auditing the prose.
How should I set temperature and sampling for reasoning models?
Follow the provider's reasoning-mode guidance first — several fix or constrain sampling during thinking phases. General 2026 practice: low temperature (0–0.3) for math, code, and derivations where one wrong token derails a chain; moderate values only for creative work; and re-baseline any settings inherited from 2023-era folklore, since defaults and effective ranges shifted across model generations. Then spend your tuning effort where the leverage is: reasoning budget caps and difficulty routing move cost and quality far more than decimal-point temperature changes.

Ready to try LLM Sampling Parameters Guide?

Free, private, and runs entirely in your browser — no sign-up, no server, no data sent anywhere.

Open LLM Sampling Parameters Guide