Show a few worked examples and big models start reasoning step by step
56.9%GSM8K with PaLM 540B, up from 17.9%
Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Wei et al., Google ResearchNeurIPS 20227 slides, 2 min
Figure 1, from the paper2/7
Same model, same question; only the exemplar changes
Standard prompting shows answers only, and the model answers 27. The chain-of-thought exemplar spells out the arithmetic, and the model imitates it to reach 9.
Before and after3/7
Scaling alone did not fix multi-step math
Standard prompting
Input-output exemplars teach the format but not the process. Accuracy on math word problems stays nearly flat as models grow.
Chain-of-thought prompting
Each exemplar includes the intermediate reasoning in plain language. No fine-tuning and no new data: eight hand-written examples in the prompt.
Reasoning is elicited by the prompt, not trained into the weights.
Results4/7
The gain appears only at scale
MethodStandard↑Chain of thought↑
LaMDA 137B6.514.3
GPT-3 175B15.646.9
PaLM 540B+39.0 pts17.956.9
GSM8K solve rate (%). The prior best, 55%, came from fine-tuned GPT-3 with a verifier.
How it works5/7
Why it works, according to the ablations
1
Not just more tokens
Outputting dots as long as a reasoning chain did not help, so the content of the steps matters.
2
Not just equations
Writing only the equation helped little on GSM8K. Natural-language steps carry the decomposition.
3
Not reasoning afterwards
Placing the chain after the answer gave no gain; the steps must come first and condition the answer.
The catch6/7
Reasoning traces are not guarantees
Emergent only at scale
Below roughly 100B parameters, chains were fluent but illogical and often hurt accuracy.
No proof of real reasoning
The authors note it remains open whether the network is actually reasoning.
Right answers, wrong paths
Some correct final answers came from flawed chains, so traces cannot be trusted blindly.
Takeaways7/7
Why it matters
Eight worked examples in a prompt can unlock multi-step reasoning without any training.
The benefit is emergent: absent in small models, large beyond 100B parameters.
This idea seeded zero-shot CoT, self-consistency and today's reasoning models.
1/7
15 upvotes on Hugging Face 7 slides, 2 min
Google ResearchAdding worked, step-by-step examples to a few-shot prompt lets large models solve multi-step problems. PaLM 540B jumps from 17.9% to 56.9% on GSM8K math, beating fine-tuned GPT-3 with a verifier.