FDEInterviews logo
NeurIPS 2022

Chain-of-Thought Prompting Elicits Reasoning in Large Language Models

The 2022 Google paper that showed examples with their working shown, not just their answers, can triple a large model's accuracy on multi-step problems.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2022
AUTHORS
Wei, Wang, Schuurmans, Bosma, et al.
FROM
Google Research, Brain Team
PUBLISHED
Jan 2022 · NeurIPS 2022
CITED BY
22,956Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

GPT-3 showed that a few examples in a prompt could teach a model a task. But on problems that need several steps, such as a math word problem, few-shot prompting did poorly, and making the model bigger did not help much. The examples showed the question and the answer, and the model was expected to jump straight from one to the other.

The Google team changed one thing: they rewrote the examples to include the working. Instead of "A: The answer is 11", the example says "Roger started with 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11." The model, seeing eight examples like that, writes out its own steps before answering. They called this a chain of thought.

On GSM8K, a benchmark of grade-school math word problems, PaLM 540B went from 17.9% correct to 56.9%, beating the previous best, a GPT-3 model fine-tuned on the training set with a separate verifier. Similar gains showed up on commonsense and symbolic tasks.

Two findings travel further than the headline. The trick only works on large models: below roughly 100 billion parameters, models wrote fluent nonsense and did worse. And the paper's ablations show that what helps is the reasoning in language, not just extra tokens or a written equation. This is the idea under every "think step by step" prompt and every reasoning model since.

THE IDEA, VISUALLY
WHAT CHANGES IN THE PROMPT STANDARD EXAMPLE Q: A team has 12 seats and adds 3 seats a month for 4 months. How many seats now? A: The answer is 24. CHAIN-OF-THOUGHT EXAMPLE Q: A team has 12 seats and adds 3 seats a month for 4 months. How many seats now? A: 3 seats × 4 months = 12 new seats. 12 + 12 = 24. The answer is 24. Eight examples like this, written by hand. No fine-tuning, no new data, the same frozen model. GSM8K SOLVE RATE, PALM Appendix Table 2 4.9 4.1 8B 9.6 29.9 62B 17.9 56.9 540B prior best 55, fine-tuned + verifier standard chain of thought
Show the working, not just the answer. The only change is inside the few-shot examples, and it pays off only once the model is large enough.
Research notes: the problem, approach and results
3.2×

GSM8K accuracy for PaLM 540B, from 17.9% with standard prompting to 56.9% with chain of thought

8examples

hand-written chains of thought in the prompt, and no fine-tuning at all

~100Bparams

roughly where the benefit appears; smaller models wrote fluent but illogical chains and got worse

THE PROBLEM

Few-shot prompting worked for lookups and pattern tasks but stalled on problems that need several steps, and bigger models barely helped.

THE IDEA

Write the few-shot examples with their intermediate reasoning in plain language, so the model writes its own reasoning before answering.

THE RESULT

PaLM 540B went from 17.9% to 56.9% on GSM8K math word problems, past a fine-tuned model with a verifier, using eight hand-written examples.

02

Why it matters to an FDE

Chain of thought is now built into the models: reasoning models do it without being asked, and many APIs expose a setting for how much they "think". The paper is still the best guide to when that thinking is worth paying for.

It helps on multi-step problems and not much else. The paper's own breakdown shows gains were largest on the hardest problems and "either negative or very small" on single-step ones. A customer's pipeline that routes, extracts or classifies may get slower and more expensive with reasoning turned on and no more accurate. Measure it on their task before switching it on everywhere.

Reasoning costs tokens. Each chain adds output tokens, which are slower and usually pricier than input tokens. A worked answer that is ten times longer than a bare answer is roughly ten times the generation time for that request.

A plausible chain is not a correct one. The authors say plainly that there is "no guarantee of correct reasoning paths". In their own error review, a wrong answer often came with a chain that was nearly right. For any workflow where the reasoning is shown to a user or an auditor, the steps need checking, not just the final answer.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 49 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The ideas to keep, what the ablations ruled out, and the misreadings to avoid

    Free account
  2. 04How it works

    The prompt format, the setup, the error analysis and the calculator trick, with a diagram

    Premium
  3. 05The numbers that matter

    The gains by model and benchmark, and the cases where chain of thought hurt

    Premium
  4. 06Try it yourself

    The paper's calculator trick as an auditor for any chain of thought, run on three model outputs

    Premium
  5. 07Where it breaks

    The limits the authors list, and what the field learned afterwards

    Premium
  6. 08Using it on a deployment

    Where to turn reasoning on, how to keep it from leaking, and how to verify it

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →