Evaluating Models on Reasoning Tasks
Prompting for step-by-step reasoning is not a substitute for training data that demonstrates it.
Why a Bare Answer Is Not Enough
Suppose you want a language model to reason through a problem before it commits to an answer. The simplest approach is to ask it to show its work in the prompt. That only works if the model already knows how to show its work, so a more basic question sits behind the prompt: where does that skill come from? This section approaches chain-of-thought reasoning from the training data side. The question to keep in mind is what the example responses in a finetuning dataset must look like if a model is going to learn to think in steps.
How Each Step Feeds the Next
The word chain is doing real work. In a chain-of-thought response, each step is built on the step before it. The final answer is therefore supported by a sequence of smaller claims rather than appearing from nowhere. A response of this kind states a fact, performs an operation on that fact, and then uses the result of that operation as the input to the next operation. Because every link is visible, a reader can check each one in order.
The diagram above uses a made-up problem, not one from the source, to show the pattern. The fact at the start is used once, the first operation produces a number, and that number is the input to the second operation. If you removed the intermediate line 12, the final answer 10 would no longer be visibly connected to the facts it depends on.
Final-Answer-Only Versus Step-by-Step Responses
Consider two training examples a dataset builder might write for a question about nitrogen. In the first, the instruction asks for the boiling point of nitrogen, and the response is a single value, -320.4F. The response contains no reasoning at all. In the second, the instruction explicitly asks the model to reason step by step, and the response walks through a problem one stage at a time before arriving at the total. Both examples come from the same research source and illustrate the two response styles side by side.
The contrast is not only about length. The bare answer gives the reader a result to accept, while the chain-of-thought response gives the reader a sequence of claims to check. The second style is what the course means by a visible chain supporting the final answer.
Where a Model Learns to Show Its Work
What do you think happens?
A model is trained only on examples that give bare final answers. When it meets a hard multi-step question, what is it most likely to produce?
Reveal answer
A bare final answer with no intermediate steps
A model learns the patterns that appear in its training examples. If every example jumps straight to a final answer, the model has little reason to produce intermediate steps, even on a hard question.
The source makes this point directly: to teach a model to generate step-by-step responses, its training data should include chain-of-thought responses. The skill is not reliably supplied by the prompt alone. A prompt can ask for steps, but if the examples the model learned from never showed reasoning, the request has no matching pattern to draw on.
The evidence cited in the source supports this. In work by Chun et al. (2024), adding step-by-step responses to finetuning data improved performance on chain-of-thought tasks for models of several different sizes. For some tasks, accuracy nearly doubled. The improvement is attributed to the data, which is why the construction of chain-of-thought examples matters for anyone building a training set.
Tracing a Worked Chain
Tracing how a result passes forward
A basket holds 4 apples. Maya has 3 baskets and eats 2 apples. How many apples are left?
- 1State the fact
Each basket holds 4 apples, and there are 3 baskets. This is the starting information the chain depends on.
- 2First operation
Multiply the basket count by the apples per basket: 3 x 4 = 12. The response states 12 as a total, which is a checkable intermediate result.
- 3Pass the result forward
The value 12 becomes the input to the next operation. The second step does not restart from the original facts; it uses 12.
- 4Second operation
Subtract the apples eaten: 12 - 2 = 10. This step is only meaningful because 12 was already established.
- 5Final answer
The answer 10 is supported by the visible sequence, so a reader can verify each link.
10 apples are left.
Notice what would go wrong if the middle step were missing. A response that jumped from the facts directly to 10 would still be correct, but it would give the reader nothing to check. A model trained on responses like the one above learns to produce intermediate results in the same order, which is exactly the behavior the source describes.
Mistakes When Reading Chain Examples
Common mistake Treating any response that mentions numbers as a chain of thought
What it looks likeA response that lists the question's numbers and then states the answer, with no operation linking them.
Why it failsIn a chain, each step is built on the step before it. Listing facts without an operation that uses them does not form a chain.
Do this insteadCheck that each intermediate result is used as the input to a later step.
Common mistake Assuming a model will reason step by step because the prompt asks it to
What it looks likeWriting Show your work at the end of a prompt and expecting a reliable chain from a model that was only trained on bare answers.
Why it failsThe source states that a model learns the patterns in its training examples, and prompting alone does not supply that pattern.
Do this insteadMake sure the finetuning data includes CoT responses that demonstrate the steps.
Common mistake Counting a correct final answer as evidence of reasoning
What it looks likeThe bare answer -320.4F is correct for the nitrogen question, but the response shows no reasoning at all.
Why it failsA correct result without steps gives no visible chain for the reader to check.
Do this insteadJudge a chain-of-thought response by whether its intermediate steps are present and linked, not only by its final value.
Common mistake Confusing the length of a response with the presence of a chain
Why Step-by-Step Data Is Scarce
If chain-of-thought data helps so much, why not simply collect plenty of it? The source identifies the bottleneck: generating multi-step responses is slow and laborious. Explaining how to solve a problem step by step is far more demanding than writing down only the final answer. A bare answer such as 9 takes seconds to record, while a step-by-step response requires the writer to state each intermediate value correctly and in order. Because of this extra effort, chain-of-thought datasets are less common than other instruction datasets.
Practice Tracing a New Chain
A box holds 5 pens. Ali buys 2 boxes and then gives away 3 pens. Write a chain-of-thought response in which each step states a fact, performs one operation, and passes its result forward. Then state the final answer and identify which step depends on the result of the step before it.
Hints
- Start by writing the fact about pens per box.
- Your first operation should produce a total number of pens, and that total should be the input to the next step.
- Check that removing any single step would break the link to the final answer.
Key Takeaways
- A chain-of-thought response states intermediate steps, and each step is built on the result of the step before it, so the final answer is supported by a visible chain.
- A bare final-answer response, such as the nitrogen boiling point -320.4F, gives the reader a result without any reasoning to check.
- A model learns to produce step-by-step output when its training data includes chain-of-thought responses; prompting alone does not supply that pattern.
- Adding step-by-step responses to finetuning data improved performance on chain-of-thought tasks across several model sizes, and for some tasks accuracy nearly doubled.
- Chain-of-thought datasets are scarce because writing multi-step responses is slower and harder than writing a final answer, which shapes how such datasets must be built.