Adding eight step-by-step worked examples to a prompt, without updating a single model weight, pushed PaLM 540B from 17.9% to 56.9% accuracy on GSM8K and beat a fine-tuned GPT-3 175B verifier trained on thousands of labeled rationales (55%). Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou at Google Research tested five model families (LaMDA, GPT-3, PaLM, UL2 20B, and Codex) and showed that eliciting intermediate reasoning turns flat scaling curves into steep gains.
Shifting from (input, output) pairs to (input, chain of thought, output) triples made test-time token generation a core capability axis alongside model scale and in-context demonstrations, proving frozen transformers held latent multi-hop structure that direct-answer prompts could not tap.
- Up to +43.4 points on GSM8K: Codex (
code-davinci-002) jumped from 19.7% to 63.1% (65.4% with a post-hoc Pythonevalcalculator), PaLM 540B rose from 17.9% to 56.9%, and GPT-3 175B (text-davinci-002) climbed from 15.6% to 46.9%. - Sharp emergence near 100B parameters: chain-of-thought prompting hurt models under 10B parameters (LaMDA 8B fell from 3.2% to 1.6%; GPT 6.7B fell from 4.0% to 2.4%; PaLM 8B fell from 4.9% to 4.1%) before unlocking large gains at 62B and 137B+.
- Three controls rule out cheap shortcuts: prompting LaMDA 137B for dots (
...), putting reasoning after the answer, or writing bare equations without prose all scored at or below the 6.5% standard baseline on GSM8K (6.4%, 6.1%, and 5.4%). - Length generalization works, yet traces stay unverified: given only two-word exemplars, PaLM 540B hit 94.8% on three-word and 63.0% on four-word last-letter concatenation (vs. 0.2% and 0.0% standard), but 54% of sampled LaMDA 137B errors came from broken semantic understanding or incoherence.
Why standard prompting and naive alternatives break
Standard few-shot prompting feeds pairs of (question, answer) and asks for the final number immediately, leaving no workspace beyond one forward pass. On single-step MAWPS SingleOp problems, PaLM 540B already scored 94.1% with standard prompting. On multi-step MultiArith or GSM8K problems, standard prompting stalled at 42.2% and 17.9%.
Chain-of-thought prompting swaps each (input, output) exemplar for (input, chain of thought, output). Using one fixed set of eight exemplars, the authors tested five arithmetic datasets (GSM8K, SVAMP, ASDiv, AQuA, and MAWPS) and five commonsense tasks (CSQA, StrategyQA, Date Understanding, Sports Understanding, and SayCan).
Section 3.3 ran three ablations on LaMDA 137B and PaLM 540B to test simpler hypotheses. Every alternative failed on multi-step GSM8K:
- Equation only: outputting only an equation dropped LaMDA 137B GSM8K accuracy to 5.4%, below standard prompting (6.5%) and chain of thought (14.3%). In Appendix A.4, on a ping-pong question (4 points in the first 20 minutes, 25% more in the second 20 minutes), equation-only prompting mashed minutes into points as
(4 + 20 * 0.25) = 6, while prose kept units straight. It helped only on shorter 1-to-2 step problems in SVAMP (35.1% vs. 29.5%) and ASDiv (45.9% vs. 40.1%). - Variable compute only: replacing reasoning with dots (
...) matching the equation’s character count scored 6.4% on GSM8K, 28.0% on SVAMP, and 39.4% on ASDiv on LaMDA 137B. Extra token steps without semantic state do not buy reasoning. - Reasoning after the answer: generating the explanation after the final number scored 6.1% on GSM8K and 38.6% on ASDiv, showing intermediate tokens must precede and condition the answer rather than merely priming context knowledge.
Emergence, robustness, and generalizing past prompt length
Why did chain-of-thought prompting hurt small models and surge only near 100B parameters? Wei et al. audited 45 errors made by PaLM 62B on GSM8K (20 semantic understanding, 18 one-step missing, and 7 hallucination, repetition, or symbol-mapping errors) and checked whether PaLM 540B resolved them (Appendix A.1). Scaling fixed 6 of 20 semantic errors, 12 of 18 one-step omissions, and 4 of 7 other errors. Below 10B parameters, models lacked enough symbol mapping and coherence to stay on track over longer outputs, often looping or dropping parseable final answers.
Even with sound logic, raw token prediction still botched arithmetic. In Table 1, passing generated equations through a post-hoc Python eval calculator raised LaMDA 137B from 14.3% to 17.8% on GSM8K and from 57.9% to 69.3% on MAWPS, and nudged PaLM 540B from 56.9% to 58.6% on GSM8K.
Because the reasoning stays in natural language, the mechanism transferred to commonsense and symbolic tasks:
- Commonsense gains track multi-hop tasks: on PaLM 540B, Sports Understanding jumped from 80.5% to 95.4% (beating an unaided sports enthusiast at 84%), Date Understanding rose from 49.0% to 65.3%, StrategyQA rose from 68.6% to 77.8% (Section 4 text reports 75.6% vs. 69.4% prior best), and SayCan robot planning improved from 80.8% to 91.7%. On CSQA, gains were flat on PaLM 540B (78.1% to 79.9%) and negative on GPT-3 175B (79.5% to 73.5%) and Codex (82.3% to 77.9%).
- Length generalization beyond prompt examples: given only two-word exemplars for Last Letter Concatenation (
"Amy Brown" -> "yn"), PaLM 540B standard prompting collapsed to 0.2% (three words) and 0.0% (four words), while chain of thought hit 94.8% and 63.0% (Table 5). On four-flip Coin Flip, PaLM 540B jumped from 54.8% to 90.2%. - Robust across authors, with task caveats: Annotators B and C, a concise prompt style, and three random eight-shot sets from GSM8K crowd workers all beat standard prompting on LaMDA 137B (15.5%, 17.6%, 11.1%, and 12.6% to 12.7% vs. 6.5%). Still, Coin Flip swung from 99.6% (Annotator A) to 71.4% (Annotator C), and list reversal worked for only one of three co-authors.
Trace how chain-of-thought succeeds and fails
Headline accuracy hides how differently models fail across scales and prompt designs. Step through five actual examples from the paper’s error analysis and ablation appendices to see what breaks in small models, why equation-only shortcuts misfire, and how a model can still land on the right number for the wrong reason.
Select a case (or use Left and Right arrow keys) to compare the problem, the broken trace, what fixed it or why it slipped, and the paper's category.
Unit conversion resolved by model scale
PaLM 62B vs 540BTracy cuts a 4-foot wire into 6-inch pieces. PaLM 62B multiplies feet by inches directly; PaLM 540B converts feet to inches first.
- Broken trace (PaLM 62B)
- 'She cut the wire into 6 inch pieces. This means she got 4 * 6 = 24 pieces. The answer is 24.'
- Fixed trace (PaLM 540B)
- 'The wire was 4 feet long. This means it was 4 * 12 = 48 inches long... 48 / 6 = 8 pieces. The answer is 8.'
- Error category
- Semantic understanding error. In the 45-error PaLM 62B audit, scaling to 540B fixed 6 of 20 semantic errors.
- Builder takeaway
- Implicit unit conversions fail silently when model capacity is below the emergence threshold.
Direct equation translation mixes quantities
Ablation A.4Mike plays ping pong for 40 minutes, scoring 4 points in the first 20 minutes and 25% more in the second 20 minutes.
- Broken trace (Equation only)
- LaMDA 137B outputs '(4 + 20 * 0.25) = 6. The answer is 6.' It multiplies 20 minutes by 0.25 instead of 4 points.
- Fixed trace (Chain of thought)
- 'In the second 20 minutes, he scored 25% more points. 4 x 1.25 = 5... So he scored 9 points in total.'
- Measured evidence
- On GSM8K, equation-only prompting scored 5.4% on LaMDA 137B vs. 14.3% for full natural language steps.
- Builder takeaway
- Prose steps bind numbers to their semantic units before arithmetic turns them into symbols.
Plausible logic with one swapped variable
LaMDA 137B auditJill works 50 weeks a year, 35 hours teaching ($20/hr) and 15 hours coaching ($30/hr). The model multiplies hours by wage instead of weeks.
- Broken trace (LaMDA 137B)
- 'she works 50 x 35 = 1750 hours as a teacher and 15 x 30 = 450 hours as a coach.' It used $30 instead of 50 weeks.
- Audit classification
- Symbol mapping error: the prose structure is valid, and changing only the equation numbers fixes the reasoning.
- Measured prevalence
- Accounted for 16% of 50 sampled LaMDA 137B GSM8K errors, alongside 8% pure calculator errors.
- Builder takeaway
- Fluent prose can hide silent variable aliasing; an external calculator cannot fix wrong inputs.
Stopping one arithmetic step too early
LaMDA 137B auditKelian has one recipe with 20 instructions and a second with twice as many. How many instructions must she read for both dishes?
- Broken trace (LaMDA 137B)
- 'The other has twice as many instructions... So the second one has 40 instructions. So Kelian has to read 40 instructions.'
- Audit classification
- One-step missing error: adding a single final step (20 + 40 = 60) repairs the entire chain.
- Measured prevalence
- Represented 22% of LaMDA 137B errors; scaling PaLM from 62B to 540B fixed 12 of 18 errors in this bucket.
- Builder takeaway
- Models frequently emit an intermediate sub-result as the final answer when prompts do not force full aggregation.
Correct final number from an incomplete chain
False-positive traceOf 36 penguins sunbathing, one-third swim and one-third eat dinner. How many remain sunbathing? The model stops early and gets 12 by accident.
- Coincidental trace (LaMDA 137B)
- 'One-third of them jump in... So that is 12 penguins. Another one-third go inside... So that is 12 penguins. The answer is 12.'
- What went wrong
- The model never computed 36 - 12 - 12 = 12; it simply echoed the last computed third, which happened to equal 12.
- Audit findings
- Occurred in 1 of 50 correct GSM8K answers (plus 6 minor imperfections), and occurs much more often in binary or multiple choice.
- Builder takeaway
- Exact-match answer grading alone overstates genuine multi-step reasoning reliability.
Source: Wei et al. (2022), Appendices A.1, A.4, D.1, and D.2.
If you skip the tabs, the five empirical failure modes boil down to these concrete patterns:
- Scale fixes implicit world knowledge: PaLM 62B multiplied
4 feet * 6 inches = 24directly, whereas PaLM 540B inserted the missing4 * 12 = 48 inchesconversion step. - Equation-only prompts drop semantic bindings: without prose to anchor units, LaMDA 137B multiplied 20 minutes by a 25% point increase, explaining why equation-only trailed CoT by 8.9 points on GSM8K.
- Symbol mapping errors evade calculators: in 16% of sampled LaMDA 137B mistakes, the model wrote coherent reasoning sentences while plugging the wrong constant (
15 x 30instead of15 x 50) into the equation. - One-step omissions accounted for 22% of LaMDA 137B errors: models frequently returned an intermediate quantity (
40) instead of finishing the final aggregation (20 + 40 = 60), a failure mode that scaling from 62B to 540B cut by two-thirds. - Correct answers can still mask broken reasoning: in 1 of 50 audited “correct” LaMDA 137B GSM8K responses, the model echoed an intermediate
12instead of subtracting36 - 12 - 12, and binary or multiple-choice benchmarks hide even more accidental matches.
Where chain-of-thought falls short, and what changed since
Three limitations from Section 6 and Appendix D still govern how engineers deploy reasoning traces today.
First, a plausible chain of thought is not guaranteed to be faithful or factual. In LaMDA 137B’s 50-error GSM8K sample, 54% of wrong answers had major semantic or incoherent flaws (for instance, setting 110 - 30 = 80 and 110 - 80 = 30 instead of solving g + (g - 30) = 110). The authors explicitly warn that binary and multiple-choice questions make coincidental agreement between flawed chains and right answers far more common. Subsequent research confirmed that even strong models omit influential prompt cues from their written rationales, documented in studies on chain-of-thought faithfulness and modern reasoning traces.
Second, the original method used greedy decoding with no verifier or search. Wei et al. noted that generating multiple paths and scoring them with a verifier was a natural next step. Follow-up work on self-consistency majority voting (Wang et al., 2022a) and process supervision directly addressed single-path fragility by sampling diverse chains and rewarding valid intermediate steps rather than lucky final numbers.
Third, elicitation in 2022 required ~100B+ checkpoints and paid a token-latency tax. Serving 540B models with long multi-sentence rationales is expensive, and small models degraded under few-shot CoT. Modern post-training largely removed the 100B barrier through synthetic reasoning distillation and reinforcement learning on verifiable rewards, shifting current engineering challenges toward trimming post-commitment padding and preserving chain-of-thought monitorability for safety oversight.
For teams building LLM applications today, the practical lesson from Wei et al. remains straightforward: never rely on single-pass direct answers for multi-step logic, never confuse fluent intermediate text with verified computation, and pair step-by-step generation with deterministic tools (code execution, calculators, or unit tests) wherever variables and arithmetic carry real consequences.


