In this article
Before you start
This page is one step of the how large language models are trained learning path.
Why interviewers ask this
Reasoning models change two things a system designer must budget: the quality of hard answers and the number of tokens paid for each one. Candidates report questions on this topic such as when to use supervised fine-tuning against reinforcement fine-tuning, and what to consider about the reasoning token budget, so the topic sits where training and serving meet.
A weak answer says "the model thinks step by step" and stops. A strong answer says where the thinking comes from (a training signal, not a prompt), who checks it, and what it costs at serving time. A Staff-level answer adds the limit: extra thinking helps only when the base model already solves the problem some of the time, and a cap on tokens can cut thinking off before the answer. The rubric below shows the difference line by line.
Reasoning models from first principles
- Reasoning model
- A reasoning model is a language model trained to generate a long sequence of intermediate steps, called reasoning tokens, before it writes the visible answer, so that harder problems get more computation than easy ones.
- Reasoning token
- A reasoning token is a token the model writes while working through a prompt, before the visible answer; some APIs (OpenAI's) hide these tokens and others (DeepSeek-R1) return them, but they fill the context window and are billed as output.
- Verifiable reward
- A verifiable reward is a training signal computed by a program that checks the final answer, such as a unit test for code or an answer match for maths, so no human has to grade each attempt.
- Test-time compute
- Test-time compute is the computation a model spends while answering one prompt, such as writing a longer reasoning trace or sampling several attempts, as opposed to computation spent during training.
In plain words
Think of an exam with scratch paper. A student who must write only the final answer guesses on hard questions. A student allowed to fill the paper with working checks each step and catches errors. The reasoning tokens are the scratch paper. The analogy breaks in two places: the model's paper is billed by the token, and a training process, not a teacher, taught it what good working looks like. Longer working on a hard question also means more tokens to pay for, which is why the cost step below matters.
In one precise sentence, a reasoning model is rewarded in training for correct final answers, and that pressure makes it write longer, self-checking working before it answers.
Step 1: Chain-of-thought prompting showed that writing steps first improves the answer
Writing out intermediate steps is called chain of thought. Wei et al. (2022), in "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models", showed it with prompts: eight worked examples in the prompt were enough for a 540-billion-parameter model to reach state-of-the-art accuracy on a grade-school maths benchmark. In the paper's Figure 1, the prompt's worked exemplar notes that two cans of three balls make six, then writes 5 + 6 = 11; the model copies that style on a new question.
Input: a question. Output: the steps, then the answer. The prompt supplied the habit. A reasoning model moves the habit from the prompt into the model's training; that framing is this page's own synthesis, not a claim by Wei et al. You now know what the model writes; the next step is how it learns to write it.
Step 2: Reinforcement learning with a checkable reward teaches the habit
DeepSeek reports that reasoning abilities can be incentivized through pure reinforcement learning, without human-labelled reasoning trajectories, on verifiable tasks such as mathematics, coding competitions and science. The model samples attempts, a program checks each final answer (the verifiable reward), and attempts that pass are made more likely. Patterns such as self-reflection, verification and strategy adaptation emerged in that setting.
Input: a prompt and a checker. Output: a policy that writes more useful working. Group-based update rules do this sampling efficiently; see group relative policy optimization (GRPO). Training with only human preference scores is a different route, compared with direct preference optimization in direct preference optimization (DPO) vs reinforcement learning from human feedback (RLHF).
Step 3: Reasoning tokens are billed and share the context window
Reasoning tokens are hidden in OpenAI's API but still occupy the context window and are billed as output tokens. OpenAI's guide says a request may use anywhere from a few hundred to tens of thousands of them. A Microsoft documentation example usage object shows 75 input tokens and 1,186 output tokens, of which 1,024 are reasoning. The visible answer is then 162 tokens, reasoning is 86.3% of the output, and billed output is 7.32 times what the user reads in that one example.1
The cap matters too: max_output_tokens covers reasoning, visible and non-visible formatting tokens, so a low cap can end a response before any visible text while input and reasoning tokens are still charged. Illustratively, with a cap of 1,000 and a problem that needs 4,000 reasoning tokens, the visible answer is empty.1 OpenAI recommends reserving at least 25,000 tokens when you start. An effort setting trades thinking for cost; for example, generative pre-trained transformer (GPT)-5 supports minimal, low, medium and high.
Step 4: More samples and longer thinking help until the base model is too weak
Test-time compute can also be spent on sampling several attempts and keeping the best, called best-of-N, with a checker to pick. If one attempt is right with probability 0.4 (illustrative) and the checker is perfect, the chance that at least one of eight is right is 0.9832.1 Real checkers err, so this is an upper bound.
Snell et al. (2024) study searching with a process reward model (PRM), a verifier that scores each step, and adaptive revision, on a PaLM 2 base model. They report a compute-optimal strategy that improves efficiency by more than 4x over best-of-N, and that a smaller model with non-trivial success can beat a 14x larger one at matched compute. The boundary, in the paper's body (Section 7): on the hardest questions or at high inference load, pretraining a larger model was the more effective use of compute. These findings come from that setting, not from reinforcement-learning-trained reasoning models.
Step-by-step description
- Reasoning tokens come before the answer.
- A checker rewards correct answers.
- Thinking is billed and capped.
- Extra attempts raise the odds.
- Reasoning tokens come before the visible answer.
- A program checks each final answer, the verifiable reward.
- Reasoning tokens are billed as output.
- Sampling several attempts and keeping the best is called best-of-N.
Text description of the diagram
- With a 0.4 chance per sample, eight samples give 0.9832.
- A perfect checker is assumed, so this is an upper bound.
Knowing it is half the job. Saying it is the other half.
Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.
Start Free Trial →The Staff-level answer
How do reasoning models work?
A reasoning model is a language model trained to spend tokens thinking before it answers. The training signal is reinforcement learning with a verifiable reward: the model samples attempts, a program checks the final answer, and attempts that pass are reinforced, so longer self-checking reasoning emerges without human-written steps. At serving time that thinking is real output: billed, counted in the context window and capped by the output limit, so I set an effort or token budget per task. Thinking longer helps when the base model already solves the problem sometimes; on problems the base model almost never solves, studies of test-time compute found a larger pretrained model the better use of compute.
What makes it Staff-level is that it ties the training signal to the serving bill and names where extra thinking stops paying.
The rubric
| Dimension | Weak answer | Strong answer | Staff answer |
|---|---|---|---|
| Definition | "It thinks step by step." | Writes reasoning tokens before the answer. | Separates trained behaviour from chain-of-thought prompting. |
| Training | "Trained on more data." | Reinforcement learning with a verifiable reward. | Adds why readability needed cold-start data and extra stages. |
| Serving cost | Not mentioned. | Reasoning tokens are billed as output and fill the context. | Sets an effort level and a cap, and reserves headroom. |
| Limits | "More thinking is always better." | Helps when the base model sometimes succeeds. | Notes that on prompts the base model almost never solves, a larger pretrained model may be the better use of compute. |
Three variants of this question
How are reasoning models different from LLMs?
A reasoning model is still a language model; the sources used here describe the difference in training and behaviour, not a new architecture. It is trained with reinforcement learning to emit reasoning tokens first, and a standard model answers directly. They do not settle whether the network design changes, so do not claim it.
When should you use SFT vs. RFT?
Supervised fine-tuning (SFT) trains on example answers someone wrote or collected; reinforcement fine-tuning (RFT) trains against a reward from a grader, and reinforcement learning with verifiable rewards (RLVR) is the case where a program checks the answer, a term used in Tulu 3. Usage of these names varies by vendor. Choose SFT when good demonstrations exist and style matters; choose a reward-based method when answers can be checked but writing the steps by hand is costly. See fine-tuning an LLM.
What are some considerations around the reasoning tokens budget in reasoning LLMs?
Reasoning tokens share the context window, are billed as output, and count toward the output cap, so reserve headroom and set the cap above the expected thinking. Watch for responses cut off with no visible text, and lower the effort level for easy tasks.
Common mistakes
- "Reasoning tokens are free because I never see them." (wrong) They are billed as output tokens and use context. (right) "Hidden is not free; I budget for them."
- "Chain-of-thought prompting and reasoning models are the same." (wrong) The first is a prompting technique; the second is trained to produce long reasoning by itself. (right) "Prompting supplies the habit; training builds it in."
- "Reasoning models need human-written step-by-step data." (wrong) DeepSeek reports reasoning incentivized by pure reinforcement learning on verifiable tasks. (right) "A checkable reward is enough to start; cold-start data fixed readability."
- "
max_output_tokensonly limits the visible answer." (wrong) It covers reasoning, visible and formatting tokens. (right) "I set it above expected thinking plus answer."
Follow-up questions
What makes reasoning models different?
Reasoning models write reasoning tokens, learned through reinforcement learning, before the visible answer, and those tokens are billed as output. A standard model spends one pass per output token on the answer alone.
Does more thinking always give a better answer?
No. In Snell et al.'s study of search and revision on a PaLM 2 model, extra test-time compute helped most where the base model had non-trivial success, and pretraining won on harder questions or heavy load (Section 7).
Can a small model reason too?
Yes, by learning from a large one. DeepSeek open-sourced six dense models from 1.5 billion to 70 billion parameters distilled from R1; the idea is covered in knowledge distillation and small language models.
Why did the first DeepSeek reasoning model need fixing?
R1-Zero, trained with large-scale reinforcement learning and no supervised step first, showed poor readability and language mixing. R1 added cold-start data and multi-stage training before reinforcement learning, per the arXiv abstract (v1).
What does a reasoning effort setting do?
It tells the model how much to think before answering, trading cost and delay for accuracy. Supported values depend on the model; for example, GPT-5 supports minimal, low, medium and high, so read the model page.
- A reasoning model writes reasoning tokens before its visible answer, and reinforcement learning with a checkable reward teaches it to.
- Chain-of-thought prompting supplies the habit in the prompt; a reasoning model builds it into training.
- Reasoning tokens are billed as output, fill the context window and count against the output cap.
- Extra thinking and more samples help most when the base model already succeeds some of the time.
- Say the training signal, the serving cost and the limit in that order.
Sources
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models (arXiv 2201.11903) — arXiv (Wei et al.), 10 Jan 2023
- DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning — Nature via PubMed Central (DeepSeek-AI), 17 Sep 2025
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (arXiv 2501.12948 v2) — arXiv (DeepSeek-AI), 4 Jan 2026
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (arXiv 2501.12948 v1) — arXiv (DeepSeek-AI), 22 Jan 2025
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models, Figure 1 (full text) — arXiv (Wei et al.), 10 Jan 2023
- Scaling LLM Test-Time Compute Optimally Can Be More Effective than Scaling Parameters for Reasoning (arXiv 2408.03314) — arXiv (Snell et al.), 6 Aug 2024
- Tulu 3: Pushing Frontiers in Open Language Model Post-Training (arXiv 2411.15124) — arXiv (Lambert et al.), 22 Nov 2024
- Scaling LLM Test-Time Compute Optimally Can Be More Effective than Scaling Parameters for Reasoning — ICLR 2025 (Snell et al.), 24 Apr 2025
- Reasoning models (API guide) — OpenAI Developers, 26 Oct 2026
- Azure OpenAI reasoning models — Microsoft Learn, 26 Oct 2026
- Model page with reasoning effort values — OpenAI Developers, 26 Oct 2026