Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
TL;DR. Few-shot prompts normally pair each question with its answer. Chain-of-thought (CoT) prompting adds the intermediate reasoning in words before each answer. With 8 such exemplars, large models start writing their own steps for new questions. On GSM8K, PaLM 540B goes from 17.9% to 56.9% with greedy decoding and no fine-tuning. Small models do not benefit, and are often hurt.
Why it matters now. Every reasoning model today generates intermediate text before answering. CoT is the paper that showed this works, how to test whether the steps matter (the §3.3 ablations), and the open question of whether the steps are real reasoning. It is also the starting point for self-consistency, test-time compute scaling and CoT monitoring.
Key idea
Section titled “Key idea”A standard few-shot prompt is . A CoT prompt replaces each with , where is a short chain of reasoning steps written by hand. The model then generates and for the test question, so the answer is sampled from
Nothing is trained. The paper gives four reasons why this might help (§2): it decomposes multi-step problems and spends more computation on them; it gives a readable trace that might be debugged; it applies to any task people can solve in language; and it works with any large off-the-shelf model.
Setup (§3.1). The same 8 hand-written exemplars are used for all maths sets except AQuA (4 exemplars). Models are GPT-3 (350M–175B), LaMDA (420M–137B), PaLM (8B, 62B, 540B), UL2 20B and Codex. Decoding is greedy.
Controls (§3.3). Three variants test why it works: equation only, dots of matched length (extra tokens with no content), and the chain written after the answer.
Key results
Section titled “Key results”- Arithmetic (Table 2). PaLM 540B: GSM8K 17.9 → 56.9, SVAMP 69.4 → 79.0, ASDiv 72.1 → 73.9, AQuA 25.2 → 35.8, MAWPS 79.2 → 93.3. GPT-3 175B: GSM8K 15.6 → 46.9. Codex: GSM8K 19.7 → 63.1. An external calculator lifts PaLM 540B on GSM8K to 58.6.
- Scale (Table 2). On GSM8K, PaLM 8B goes 4.9 → 4.1, 62B 9.6 → 29.9, 540B 17.9 → 56.9.
- Error analysis (§3.2). For LaMDA 137B on GSM8K, 48 of 50 correct answers had correct chains. Of 50 wrong answers, 46% were almost correct and 54% had major semantic or coherence errors. Going from PaLM 62B to 540B fixes many one-step-missing and semantic errors.
- Robustness (§3.4, Fig. 6). Chains written by three different annotators, a more concise style, and exemplars sampled from the GSM8K training set all beat standard prompting by a wide margin.
- Commonsense (§4). PaLM 540B with CoT reaches 75.6% on StrategyQA (prior best 69.4%) and 95.4% on BIG-bench sports understanding (an unaided sports enthusiast scores 84%).
- Symbolic (§5). On last-letter concatenation and coin-flip tracking, PaLM 540B with CoT is near 100% in domain and generalises to longer inputs than the exemplars, where standard prompting fails.
Limitations & open questions
Section titled “Limitations & open questions”- Is it reasoning? The authors leave open whether the network is actually reasoning (§6).
- No guarantee of correct chains. Correct answers can come from wrong chains, and wrong chains are common on hard problems.
- Only large models benefit, which made the method expensive to serve in 2022.
- Exemplar sensitivity. Results vary across annotators and exemplar sets, as in all few-shot prompting.
- Faithfulness of the written chain to the internal computation is not tested. This became a research area of its own.
Connections
Section titled “Connections”- Next steps on decoding: Self-Consistency samples many chains and votes. Compute-optimal test-time scaling and s1 scale the idea up. Why We Think surveys the whole line.
- Foundations: in-context learning from GPT-3. Whether “emergent” gains are real is debated in emergent abilities and the emergence mirage.
- Are the chains honest? CoT faithfulness, CoT monitorability and obfuscation under CoT monitoring.
- IR and agents: multi-step prompting pipelines such as DSP and Baleen-style multi-hop retrieval build on generating intermediate text. LLM relevance assessors such as UMBRELA raise the same question of whether reasoning before the label helps.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
In Table 2, LaMDA 137B solves 14.3% of GSM8K with chain of thought. The error analysis of 50 wrong answers finds 46% "almost correct" (calculator, symbol-mapping or one-step-missing errors). Estimate the accuracy if all minor errors were fixed, then give a rough 95% interval for that estimate given that it rests on 50 samples.
What a strong answer covers
- Wrong answers are 85.7% of the set. Fixing 46% of them gives 14.3 + 0.46 × 85.7 ≈ 53.7%.
- The 46% is a sample proportion from n = 50: standard error ≈ √(0.46 × 0.54 / 50) ≈ 0.070, so a 95% interval is about 32% to 60%.
- That maps to roughly 42% to 66% accuracy, a wide range that should be stated with the estimate.
- The real-world counterpart is the external calculator: it only moves PaLM 540B from 56.9 to 58.6, because most remaining errors are not arithmetic.
- What if…
Section 3.3 tests three alternatives: equation only, a string of dots of matched length, and the chain of thought placed after the answer. State which hypothesis each variant isolates and what the results imply about why chain of thought helps.
What a strong answer covers
- Equation only tests whether the benefit is just writing the equation. It helps on one- or two-step datasets but not much on GSM8K, whose questions are hard to turn into an equation without natural-language steps.
- Dots test whether extra tokens (more computation) alone help. They perform about like standard prompting.
- Reasoning after the answer tests whether the prompt just activates relevant knowledge. It also performs about like the baseline, so the answer must depend on the steps written before it.
- Conclusion: the gain comes from generating intermediate steps in language that the answer is conditioned on, not from length or priming alone.
- Mechanism
Chain of thought hurts small models: PaLM 8B goes from 4.9 to 4.1 on GSM8K and LaMDA 420M from 23.5 to 8.3 on AQuA, while PaLM 540B goes from 17.9 to 56.9 on GSM8K. Explain, using how autoregressive decoding conditions the answer on generated text, why the same prompt can help one model and hurt another.
What a strong answer covers
- With chain of thought the answer is generated after, and conditioned on, the model's own steps. A wrong step propagates to the answer.
- Small models copy the format but write fluent, illogical chains (the paper's qualitative finding), so conditioning on them is worse than answering directly.
- Each generated token gets a fixed amount of computation, so a chain gives more serial steps, but only a model that can do each step reliably benefits.
- The 62B → 540B error analysis supports this: scaling fixes many one-step-missing and semantic-understanding errors.
- Critique
The paper reports that chain of thought provides "an interpretable window" into the model. Using the paper's own evidence and its stated limitations, critique this claim.
What a strong answer covers
- The authors themselves say it remains open whether the network is actually reasoning, and that correct chains are not guaranteed.
- Among 50 correct answers, two came from wrong chains that reached the right answer by coincidence, so a correct answer does not certify the chain.
- The "after the answer" ablation shows the answer depends on the chain in this setup, but dependence is not the same as the chain being a faithful account of the computation.
- Later work measures this directly, with interventions on the chain and with monitoring under optimisation pressure, and finds chains can be unfaithful or obfuscated.
- Design
You use an LLM as a relevance assessor for TREC-style qrels and want to know whether asking it to reason before the label improves agreement with human judges. Design the experiment, including controls borrowed from this paper.
What a strong answer covers
- Conditions: direct label; reasoning then label; label then reasoning; matched-length filler before the label. Same exemplars and model across conditions.
- Metric: agreement with human qrels (e.g. Cohen's kappa) and the effect on system rankings (Kendall's τ between rankings from LLM and human qrels).
- Vary model size, since the paper suggests small models can be hurt by reasoning, and vary exemplar authors to check robustness.
- Inspect a sample of reasoning texts for coincidentally correct labels, and report cost in tokens per judgment.
- Connect
Chain-of-thought prompting uses greedy decoding to produce one chain. Explain how Self-Consistency and later test-time compute work change this single choice, and what each change buys.
What a strong answer covers
- Self-Consistency samples many chains and takes a majority vote over final answers, which on PaLM 540B lifts GSM8K from 56.5 (greedy) to 74.4.
- Snell et al. add a verifier and sequential revisions and choose the mix per question difficulty, saving up to 4× compute compared with best-of-N.
- s1 and RL-trained reasoners make the chain itself longer and controllable, instead of relying on exemplars.
- All three keep the core idea of this paper: the answer is conditioned on generated intermediate text.