C.W.K.
Stream
Lesson 02 of 05 · published

Test-Time Compute Scaling — What 'Thinking Longer' Actually Buys

~12 min · reasoning, tts, inference

Level 0Scout
0 XP0/41 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

The core mechanism

Test-time compute scaling (TTS) is the practice of spending more inference compute — i.e., generating more intermediate tokens — on harder problems. Same model weights, same training, but the model is allowed to spend variable amounts of computation per request. A trivial question gets a direct answer. A hard one gets thousands of internal reasoning tokens before the final response.

Why this works

Each additional reasoning token gives the model another step to update its hidden state, refine intermediate beliefs, and self-correct. For problems where the answer is not in cache (math, multi-step coding, planning), more thinking tokens empirically yield measurably better answers. For problems that are essentially retrieval ("capital of France"), more tokens are wasted compute.

The economic shape

TTS converts inference budget into capability. Where pretraining converts compute into weights that already know things, TTS converts compute into thought processes that figure things out. They are different kinds of capability acquisition with different cost curves.

Empirical evidence

OpenAI's o-series, DeepSeek-R1, and Anthropic's extended thinking all show similar pattern: doubling thinking-token budget yields meaningful gains on hard reasoning benchmarks (Frontier Math, ARC-AGI), with diminishing returns. Below a certain threshold the model fails entirely; above a saturation point extra thinking helps little. The shape is roughly logarithmic.

The control surface — thinking budgets

Modern reasoning APIs expose explicit budget controls — Claude's budget_tokens, Gemini's thinking budget, OpenAI's reasoning effort levels. These let the developer decide how much TTS to spend per request. This is the practical knob most production teams care about: latency vs quality is now an explicit dial, not a fixed model property.

What TTS does not do

TTS does not turn a fundamentally weak model into a strong one. If the underlying model lacks the knowledge or skill, more thinking tokens just produce more incorrect text. TTS amplifies what the model already knows; it does not create knowledge from nothing.

Code

Calling a reasoning model with explicit thinking budget·python
from anthropic import Anthropic

client = Anthropic()
response = client.messages.create(
    model="claude-sonnet-4-7-1m",
    max_tokens=4096,
    thinking={"type": "enabled", "budget_tokens": 8000},
    messages=[{"role": "user", "content": "Prove that sqrt(2) is irrational."}],
)

# The response includes thinking blocks AND the final answer.
for block in response.content:
    if block.type == "thinking":
        print("[thinking]:", block.thinking)
    elif block.type == "text":
        print("[answer]:", block.text)
Adaptive budget strategy (pseudocode)·python
def call_with_adaptive_budget(prompt, *, hint_difficulty=None):
    if hint_difficulty == "trivial":
        return llm(prompt, thinking_budget=0)        # standard mode
    if hint_difficulty == "medium":
        return llm(prompt, thinking_budget=2000)
    return llm(prompt, thinking_budget=16000)         # hard problems

External links

Exercise

Take any reasoning model you have access to. Run the same hard problem (a multi-step math word problem or a logic puzzle) at three different thinking budgets — small, medium, large. Note how the answer changes (or doesn't) and how cost scales. This is the cheapest way to internalize the TTS curve for the model you actually use.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.