g↗genai/ learner
How GenAI works / Lesson 10

Reasoning models

Some models are built to spend effort on a problem before they reply. What changes when they do, and what can you trust about the steps they show?

Concept + interactive labBeginner friendly

Some models work first, then answer.

Think of a student sitting a test. One student writes the answer straight away. Another jots rough working first, and may spot a mistake and fix it, though they can also miss one. A reasoning model is built to work like the second student: it writes working text before it gives its final answer.

It is still a language model writing one piece of text at a time, as in how a model predicts the next token. The difference is that it was trained to write useful working first.

A multi-step number puzzle shows the model reading constraints, trying an answer, checking it, fixing an error, and giving a valid answer. Panels compare a quick reply with a reasoning model, explain training versus prompting and work cost, and caution that shown steps are not a verified record.
Reasoning can help catch mistakes; check the result itself.
Key idea: a reasoning model gives itself room to think in text before it commits to an answer, and it was trained to use that room well.

Watch one question get worked through.

Here is a small puzzle. There is no maths in it, you only use the clues.

Asha, Ben and Chen each own a different pet: a cat, a dog or a fish.
Clue 1: Asha is allergic to fur, so she cannot have a pet with fur.
Clue 2: Chen does not have the cat.
Who has which pet?

A quick reply

It answers at once: “Asha has the cat, Ben has the dog, Chen has the fish.” It just matched names to pets in the order they were listed. That breaks Clue 1, because a cat has fur. Nothing checked it.

A reasoning model

It writes its working first. In this lesson’s toy, it goes:

  1. Read the clues. Write down what we know.
  2. Make a guess. The same order as before.
  3. Check the guess. A cat has fur, so Asha cannot have it. The guess is wrong. Only the fish has no fur, so Asha gets the fish. Chen cannot have the cat, so Chen gets the dog. Ben gets the cat.
  4. Check again. Both clues now hold.

That is the whole idea: guess, check, fix, check again. In the next section you can mix and match. Pick how the model answers, and change how much working it gets.

Note: these steps are scripted for the lesson. A real reasoning model writes its own working, and it differs each time.

Compare a quick reply with reasoned work.

Try the lab in this order:

  1. Leave the pet puzzle and the quick model. It answers at once, and the answer breaks a clue.
  2. Switch to the ordinary model told to show its steps.
  3. Switch to the reasoning model and raise the work slider one step at a time. Watch the answer change at step 3, and the cost keep rising.
  4. Pick the one-step fact and see extra work add cost without changing the answer.
01 / Mix and match: same question, three ways to answerSIMULATION
Question
How it answers
Only the reasoning model uses this setting.

Question: Asha, Ben and Chen each have a different pet: a cat, a dog or a fish. Clue 1: Asha is allergic to fur, so she cannot have a pet with fur. Clue 2: Chen does not have the cat. Who has which pet?

Does not match the worked answer

Answer: Asha: cat, Ben: dog, Chen: fish

No intermediate text was written. The reply starts with the answer.

Toy cost: 8 units of generated text · Worked answer: Asha: fish, Ben: cat, Chen: dog

Everything here is invented: both questions are hand-picked, the “toy trace” is written in advance and not produced by a model, the cost units are made up, and the rule that the answer changes at the third step is a simplification. A real reasoning model does not step through a fixed script, and its output varies. What is real is the general pattern: working through intermediate text before answering can help on multi-step problems, costs extra time and generated text, and often adds little on a one-step question (in this toy, nothing). The toy also does not show how any specific product displays reasoning, which differs between products.

The difference is training, not a magic phrase.

You can ask any chat model to “think step by step”, and that often helps, because the written steps become context for the tokens that follow. But the model is still behaving the way its earlier training shaped it. Reasoning models get extra training aimed at this behaviour. Providers have described approaches that reward correct final answers on problems where the answer can be checked, such as maths and code, so the model learns which kinds of working tend to lead somewhere. Details differ between providers and are often not fully published.

  • It costs more. Working text is generated text. It takes time and, with paid APIs, it is usually billed. The lab’s cost units are invented, but the direction is real.
  • It helps most on multi-step problems. Maths, planning, tricky code and puzzles with a catch benefit. A simple lookup or rewrite usually does not, as the quick fact showed.
  • It can still be wrong. More working tends to help on average, but how much depends on the model and the task, and it can be wasted. It does not turn a model into a checker of facts, and it can reason at length toward a wrong answer.
  • Often there is a dial. Some products and APIs let you set how much the model may work, which is the idea behind the lab’s slider.

Shown steps are not a verified record.

When an app shows you reasoning, you are reading text. Some products show the model’s working, some show a shorter summary written for display, and some show nothing. In the lab, pick the pet puzzle, set the reasoning model to 3 or more steps, and compare “summary” with “full work”: the summary leaves out the discarded first attempt. That is a toy, but the caution is real. Research has found that written reasoning does not always reflect what actually drove the answer, so a clean explanation is not proof of how the answer was reached.

Treat the steps as useful evidence you can check, not as a window into the model’s inner process. For work that matters, check the result itself, for example by recomputing it, running the code, or reading a trusted source, as covered in why models make things up.

Habit: choose a reasoning setting for hard, multi-step tasks, skip it for simple ones, and verify the answer either way.
✎ Try it yourselfKnowledge check · Practice only

Check your understanding.

A teammate says that adding “think step by step” to any prompt turns an ordinary model into a reasoning model, and that the steps it prints prove how it got its answer. What is the best response?
THE TAKEAWAY

Take this with you.

Reasoning models are trained to work through a problem before they answer, which helps on multi-step tasks and costs time and money. Asking for steps is not the same thing, and the steps you see are text, not a verified record. Check the result.

Review: From base model to assistant →