Reasoning AI Models: How 'Thinking' Models Actually Work
Education

Reasoning AI Models: How 'Thinking' Models Actually Work

A new class of models does not answer right away; it 'thinks' first. Here is what that thinking really is, why it solves certain problems, what it costs, and why you do not need it for every task — without hiding behind jargon.

Short answer

A reasoning model is a language model that produces intermediate steps internally before answering and spends extra computation on them. Such models are largely trained with reinforcement learning on verifiable tasks and can do better at multi-step math, code and planning. The price is more tokens, cost and latency, so turn thinking off for simple work and, for hard work, compare settings on your own test set.

What is a reasoning model?

A reasoning model is a language model that produces intermediate steps internally before giving its answer and spends extra computation on those steps. When you ask a classic language model a hard question, you are watching an extraordinarily fast reflex: based on the statistics of the vast text it has seen, the model predicts the next word, then the next, and pours out the answer in one pass, without pausing to think. That works well for simple questions. But for a multi-step math problem, a twisty logic puzzle, or a layered piece of legal reasoning, blurting out the first word that comes to mind can lead to the wrong answer.

People are the same. We answer 'two plus two' without thinking; but asked to 'multiply seventeen by twenty-three,' we stop, put the intermediate steps on paper, and work through them one at a time. The psychologist Daniel Kahneman calls this 'fast' versus 'slow' thinking. Reasoning models are an attempt to give AI that slow thinking: instead of answering immediately, running an internal thinking process first.

What does it mean for a model to 'think'?

A reasoning model's 'thinking' is not magic; at its core it is the model producing a series of intermediate steps for itself before reaching an answer. This is called chain-of-thought. The model breaks the problem into parts, solves each in turn, checks the intermediate results, and only at the end of this chain delivers a final answer. It produces more words — but most of those words are aimed at its own reasoning, not at you.

One of the foundational papers on the idea is Wei and colleagues' 2022 study of chain-of-thought prompting. It reports that generating a series of intermediate reasoning steps significantly improves large language models' ability to perform complex reasoning, with gains on arithmetic, commonsense and symbolic reasoning tasks. For example, prompting a 540-billion-parameter model with just eight chain-of-thought examples achieved what was then state-of-the-art accuracy on the GSM8K math word problems. Today's reasoning models get this behaviour not only from prompting but from training.

The best analogy is a student following the instruction to 'show your work.' A student who writes only the result cannot catch a slip in one step; a student who writes every step can re-read their own work and spot the error. Reasoning models likewise feed the intermediate steps they generate back in as input for the next step.

What is test-time compute?

Test-time compute means giving a model more computation, that is, more thinking time, while it produces an answer instead of making the model bigger; it is also called inference-time compute. In the classic approach, the way to make a model smarter was to make it bigger and train it on more data, so most of the investment went into training. Reasoning models use a different lever: keep the model the same, but give it more computation while it is producing the answer. The model can try several solution paths, review its own answer, abandon a dead end and take another route.

When this is more efficient than scaling the model has been tested. Snell and colleagues' study of scaling test-time compute finds that the effectiveness of different approaches varies critically with the difficulty of the question. A strategy that allocates computation per question improved efficiency by more than 4× compared with picking the best of N answers. In a comparison with matched compute, test-time compute could outperform a 14× larger model on questions where the smaller model already had a reasonable success rate. So the gain is not universal: on the hardest questions, where the model never succeeds, thinking longer does not deliver the same return. These models answer more slowly; on the right kind of problem they can be more accurate.

How are these models trained?

Teaching a model to 'think well' runs largely through reinforcement learning. The model is given a problem, allowed to produce its own chain of thought, and rewarded when the answer it reaches is correct. This is especially powerful in domains like math and code where the answer can be verified: because correctness can be checked exactly, the model gradually discovers for itself which kinds of thinking steps lead to the right answer.

What is striking is this: the model may not need to be told 'think like so' step by step. DeepSeek's DeepSeek-R1 paper reports that reasoning ability can be incentivised through reinforcement learning alone, without human-labelled reasoning trajectories, and that behaviours such as self-reflection, verification and adapting strategy emerged during that process. According to the paper, the model performs best on verifiable tasks such as mathematics, coding competitions and STEM fields, and the reasoning patterns of large models can be used to improve smaller ones.

What are their strengths, costs and limits?

Reasoning models often do better at multi-step, logic-heavy tasks: hard math, complex code, scientific problem-solving, planning, and analysis that requires layered reasoning. But this ability is not free. Thinking longer means more computation, more time, and more cost; answers come more slowly and the price per query goes up.

Anthropic's extended thinking documentation makes this cost concrete. Thinking tokens are part of the billed output tokens, and a usage field in the response shows how many of them were internal reasoning. The thinking budget is a target rather than a strict cap; larger budgets allow more thorough reasoning, but with diminishing returns that depend on the task and at the cost of higher latency. The documentation recommends starting near the minimum for simple tasks and increasing gradually. In the adaptive thinking mode used by Anthropic's newer models, the model decides on each request whether and how much to think, and at lower effort settings it may skip thinking entirely on easy inputs.

Does every task need a reasoning model?

No. For single-step tasks like 'summarize this email' or 'fix this sentence,' running a thinking model is both wasteful and needlessly slow; fast models do the job more cheaply and immediately. The right engineering decision is to recognize the task: simple, direct work goes to a fast model; multi-step, low-error-tolerance work goes to a thinking model. Mature systems usually use both, choosing by the job at hand.

TaskThinking settingWhy
Short summary, spelling fixes, simple classificationOff or lowExtra tokens add cost and latency without improving accuracy
Multi-step calculation, logic problemOnIntermediate steps make errors easier to catch
Debugging code, drawing up a planOn, medium or highSeveral paths may need to be tried
Policy or compliance question over documentsOn, together with retrieval (RAG)Every step of the reasoning should rest on a source
Live chat, autocompleteOffThe latency budget leaves no room for thinking
High-volume batch jobsThe lowest setting proven on a sampleToken cost is multiplied by the number of requests

Make the decision with a test. Run the same evaluation set with thinking off, low and high, and put accuracy, p95 response time, output tokens and cost per correct answer side by side. A hypothetical example: on a 200-question set, with thinking off the model answers 140 questions correctly (70%) and produces an average of 300 output tokens per question; with thinking on it answers 164 correctly (82%) but produces 2,000 output tokens per question. Output tokens per correct answer rise from 60,000 / 140 ≈ 429 to 400,000 / 164 ≈ 2,439, roughly 5.7 times as many. Whether the 24 extra correct answers are worth that cost depends on what a wrong answer costs you.

Is the chain of thought a model shows a reliable explanation?

Not always. In Anthropic's research “Reasoning models don't always say what they think”, models were given hints that influenced their answers, and the researchers checked whether the chain of thought mentioned the hint. Averaged across hint types, Claude 3.7 Sonnet mentioned the hint it used 25% of the time and DeepSeek R1 39% of the time. The researchers conclude that substantial work remains before chain-of-thought monitoring can be relied on to rule out undesirable behaviour. The practical consequence: treat a visible chain of thought as a debugging aid, not as audit evidence, and verify the result against sources or deterministic checks.

How does multi-step reasoning combine with grounded answers?

A detailed policy or compliance question is a textbook example of multi-step reasoning. The answer is rarely written in a single document; it usually requires weighing several rules, exceptions, prior decisions, and the specifics of the concrete situation together. This is exactly the kind of reasoning where a chain of thought helps: first isolate the relevant rules, then apply them to the facts, weigh conflicting provisions, check the exception, and only then reach a conclusion.

As important as the power of the reasoning is that every step has a basis. However well a model 'thinks,' in high-stakes work the answer must be tied to the actual source documents and data retrieved; otherwise a confident but unsupported line of reasoning is the most dangerous outcome. That is why reasoning should be paired with RAG (retrieval-augmented generation): the chain of thought builds the analysis, the retrieval layer grounds each step in a verifiable source. For the foundations, see our guide on how large language models work. When a smaller model needs to follow a domain's reasoning steps reliably, large language model training and fine-tuning is one option worth testing.

Key takeaways

  • Classic models produce the answer in one pass; reasoning models run an internal thinking process (chain-of-thought) before answering.
  • Test-time compute means giving the model more computation at answer time instead of making it bigger; the gain depends on question difficulty and does not appear on every question.
  • These models are trained largely with reinforcement learning: in verifiable domains (math, code) the correct answer is rewarded and the model discovers the reasoning strategies that work.
  • Thinking tokens are billed as output tokens; test thinking settings against cost per correct answer and latency.
  • A visible chain of thought does not always reflect the model's real reasoning; verify the result against sources or deterministic checks.
  • For multi-step work such as policy and compliance questions, pair reasoning with retrieval (RAG) so every step rests on a verifiable source.

Frequently asked questions

What is the difference between a reasoning model and a regular language model?

A regular language model produces the answer directly. A reasoning model produces intermediate steps before answering and spends extra computation on them. That can improve accuracy on multi-step problems, but it also raises cost and latency.

What is chain-of-thought?

It is a model producing intermediate reasoning steps while solving a problem. Wei and colleagues' 2022 study showed that these steps significantly improve large language models' performance on arithmetic, commonsense and symbolic reasoning tasks.

What is test-time compute?

It is giving a model more computation while it produces an answer instead of making it bigger, for example trying several solution paths or reviewing the answer. Snell and colleagues report that the gain varies with question difficulty and that, on suitable questions, it could outperform a 14× larger model.

Why are reasoning models more expensive?

Because the thinking steps are tokens too and are included in the billed output tokens. A larger thinking budget means more tokens and longer response times, with returns that diminish depending on the task.

Can I trust the thinking steps a model shows?

Not fully. In Anthropic's research, models often did not mention in their chain of thought the hint that influenced their answer. Use the chain of thought for debugging, and verify the result against sources or deterministic checks.

When should I not use a reasoning model?

For single-step or latency-sensitive work such as short summaries, spelling fixes, simple classification and live chat. There, extra thinking adds cost and latency without improving accuracy.

All articles