Why Does Chain-of-Thought (CoT) Boost Reasoning? A Four-Layer Deep Dive

Four-layer technical breakdown of why Chain-of-Thought prompting boosts large model reasoning ability.
This article unpacks why Chain-of-Thought (CoT) improves LLM reasoning through four layers: fixed per-token compute means more tokens enable deeper thinking; intermediate steps externalize working memory via attention; CoT prompts activate chain-reasoning patterns from pretraining; and DeepSeek R1's RL experiments show models independently evolve step-by-step reasoning. CoT has limits — it can hurt on simple tasks.
Introduction: The Depth Behind a Common Interview Question
In technical interviews for large model roles, "Why does Chain-of-Thought (CoT) significantly improve a model's reasoning ability?" is one of the most frequently asked questions. Most candidates answer with something like "it lets the model break down the problem step by step" — which points in the right direction, but lacks depth. The moment an interviewer follows up with "but why does thinking step by step improve reasoning?", most people hit a wall.
This article works from first principles to unpack the core logic behind Chain-of-Thought, and draws on DeepSeek R1's reinforcement learning experiments as empirical evidence — helping you build a systematic understanding of CoT.
Layer One: Fixed Compute, Token Count Determines Thinking Depth
To understand CoT, you first need to grasp a fundamental property of large models: the compute cost of generating each token is fixed, regardless of task difficulty. Whether the model is answering a simple question or tackling complex multi-step reasoning, the computational resources consumed per token are exactly the same.
This property is baked into how the Transformer architecture works. Every forward pass that generates one token requires a full round of multi-head attention computation and feed-forward network layers. That computation is determined by the model's parameter count — completely decoupled from problem difficulty. In a GPT-4-scale model, a single forward pass involves hundreds of billions of floating-point operations, but whether the input is "What is 1+1?" or "Prove the Riemann Hypothesis," the per-token compute cost is identical. This architectural constraint means that to handle more complex problems, the only legitimate path is to increase the number of tokens — not to hope that a single token can somehow carry more computation than the architecture allows.
This leads to the first key insight: a model's depth of reasoning is effectively determined by the number of output tokens it produces.
Take arithmetic as an example. If you ask a model to directly output the result of 123 × 456, it has to squeeze all the computation into a single (or very few) tokens, leaving almost no room for intermediate steps. But if you ask it to show its full working, dozens of tokens form a complete computation chain — giving the model ample "working space."

The first layer of CoT's essence: by increasing the number of output tokens, it extends the model's full computation chain, allowing complex operations that would otherwise be crammed into a single step to unfold across multiple steps.
Layer Two: Externalizing Working Memory
More compute alone doesn't fully explain the reasoning improvement. We also need to look at how the model's context mechanism works.
When generating text, a model can only read what has already been generated — it cannot look ahead. This means: if intermediate reasoning steps aren't written out, those intermediate results don't exist in the context, and later reasoning steps have no way to build on earlier conclusions.
Technically, the Transformer's attention mechanism allows the model to perform weighted retrieval over all previous tokens in the sequence when generating each new token. This is essentially an "addressable external memory" — as long as intermediate results exist as tokens in the context, subsequent computation steps can precisely retrieve and reuse them via attention weights. This stands in sharp contrast to the limitations of human working memory: human working memory holds roughly 7±2 chunks (Miller's Law), while a model's context window can span tens or even hundreds of thousands of tokens. By externalizing reasoning steps, there is theoretically no "memory capacity bottleneck."
A fitting human analogy: when doing 17 × 24 in your head, you have to simultaneously hold 17 × 4 = 68 and 17 × 20 = 340 in mind before adding them. The memory load is high and errors are easy to make. But write the steps on paper, do one simple operation at a time, and you can refer back to any prior result — the error rate drops dramatically.

CoT is like giving the model a "virtual scratch pad": all intermediate reasoning results are stored in the context, ready to be read and reused at any time via the attention mechanism. This is the second layer — externalizing the model's internal working memory, distributing the cognitive load of single-step reasoning across multiple steps.
Layer Three: Activating Chain-of-Reasoning Patterns from Pretraining
The third layer comes from the "pattern sedimentation" of pretraining data.
Pretrained language models learn by performing next-token prediction on massive corpora — a process that essentially compresses and extracts patterns from the breadth of human written knowledge. That pretraining data is saturated with chain-of-reasoning content: mathematical proofs, step-by-step derivations, code implemented line by line, academic arguments built layer by layer. By fitting to this data distribution, the model is forced to internalize the "premise → derivation → conclusion" pattern.
When we use CoT prompts like "Let's think step by step," we are statistically steering the model toward the region of the training distribution associated with "high-quality chain reasoning" — rather than the "give me the direct answer" region of low-quality Q&A. Conversely, when you ask for a direct answer, the model preferentially matches the concise Q&A pattern and jumps straight to a conclusion. This phenomenon is also categorized in large model research as a manifestation of "Emergent Abilities."
Specific prompt formats can activate the chain-of-reasoning capabilities the model acquired during pretraining. CoT prompts don't teach the model a new skill — they activate reasoning abilities it already has.
Empirical Evidence: The "Aha Moment" in DeepSeek R1
DeepSeek R1's reinforcement learning experiments provide strong empirical backing for the above theory.
The research team applied reinforcement learning directly to the base model, skipping the supervised fine-tuning (SFT) stage, to observe whether the model could independently develop reasoning logic. DeepSeek R1's core approach is outcome-based reinforcement learning — specifically using the GRPO (Group Relative Policy Optimization) algorithm, with the correctness of the final answer as the reward signal, rather than relying on human-annotated process supervision. At a certain point during training, an interesting phenomenon emerged: the model spontaneously produced self-review and self-verification statements like "Wait" and "Let me reconsider" — with no human-annotated demonstration samples at all. This behavior emerged entirely on its own.

The team named this the "Aha Moment." The logic is clear: with answer correctness as the reward signal, the model discovered through massive trial and error that adding reflection and self-checking steps significantly improved accuracy — so it retained that reasoning behavior. The deeper reason the "Aha Moment" occurs is that the model already had self-verification capabilities encoded in its parameter space (from pretraining); the RL reward signal acted as a "selection pressure" that amplified this latent ability and made it a stable part of its output behavior — mathematically analogous to natural selection in evolutionary biology.
This experiment overturns a common misconception: CoT is not an external trick imposed on the model by humans — it is the optimal reasoning strategy the model independently evolves to maximize task accuracy. It also proves that step-by-step reasoning and self-verification are already stored in the model's parameters. Direct questioning fails to trigger them; a CoT prompt manually activates them; reinforcement learning teaches the model to judge the context and activate the reasoning chain on its own initiative.
Where CoT Falls Short: Why It Can Hurt on Simple Tasks
A common follow-up question: why does CoT provide minimal benefit — or even backfire — on simple tasks?
There are two main reasons:
First, simple tasks can be solved in a single step. Forcing them into a multi-step format introduces a large number of extra tokens, and each additional token is one more opportunity for an error to creep in. Researchers call this "Hallucination Cascade" — small errors at each step can be amplified in subsequent steps, ultimately producing a wrong answer. Empirical data also shows that smaller models (under ~10 billion parameters) see limited gains or even performance degradation with CoT, because they lack sufficient baseline reasoning capacity; forcing step decomposition only accumulates more errors.
Second, lengthy derivations consume valuable context window space, crowding out critical input information and causing key content to be lost.

CoT therefore has a clear scope of applicability: it only yields positive returns when task complexity exceeds the model's single-step reasoning capacity. In practice, engineers typically need to decide dynamically whether to enable CoT based on task type. Blindly applying it to simple tasks usually does more harm than good.
The Model Interview Answer: A Four-Layer Structure
If this question comes up in an interview, here's the recommended four-layer structure:
1. Underlying compute logic: Large models are built on the Transformer architecture, where the forward pass compute cost per token is fixed. More output tokens means a longer and deeper computation chain, providing sufficient working space for complex reasoning.
2. Context memory mechanism: Step-by-step derivation stores intermediate results in the context, which the attention mechanism can reuse — effectively externalizing working memory. This breaks through the human working memory limit of 7±2 chunks and reduces the difficulty of each individual reasoning step.
3. Pretraining pattern activation + empirical evidence: The step-by-step text format activates the chain-of-reasoning patterns the model learned during pretraining (a form of emergent ability). DeepSeek R1's GRPO reinforcement learning experiments show that models can spontaneously generate self-reflection statements, demonstrating that step-by-step reasoning is a native model capability — not an externally imposed trick.
4. Scope of applicability: On simple tasks, CoT can trigger hallucination cascades, increase error probability, and crowd out the context. Positive gains only emerge on complex reasoning tasks. The decision to use CoT should be made flexibly based on task difficulty.
Conclusion
The value of Chain-of-Thought lies not in teaching the model how to think, but in unlocking the reasoning potential it already possesses. CoT simultaneously addresses three problems — compute space, working memory, and pattern activation — and DeepSeek R1's experiments confirm it as the optimal strategy the model independently evolves toward. Truly understanding this allows you to accurately judge when to use CoT and when to skip it in real-world applications — putting this powerful technique exactly where it belongs.
Related articles

Disaster and Glory of the Apollo Program: The History We Must Revisit Before Returning to the Moon
From the fatal Apollo 1 fire to Apollo 8's daring lunar orbit to Apollo 11's successful landing—revisiting the disasters, fears, and compromises of the Apollo program and their lessons for today's return to the Moon.

Netflix Trust Exercise Turns Into Firing Trap: Where Are the Boundaries of Corporate Trust?
A Netflix employee was fired after sharing private info in a trust exercise. We analyze the risks of corporate trust exercises and how employees can protect themselves.

AMD CDNA5 Architecture Deep Dive: Technical Evolution and the AI Computing Competition Landscape
Deep analysis of AMD's CDNA5 architecture covering Chiplet packaging upgrades, HBM memory evolution, and low-precision compute optimization, examining how AMD challenges NVIDIA's AI chip dominance.