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

> Adding 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.

- arXiv: https://arxiv.org/abs/2201.11903
- Authors: Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, Denny Zhou
- Published: 2022-01-28
- Topic: Reasoning
- Visual carousel: https://instaxiv.com/p/2201.11903
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Show a few worked examples and big models start reasoning step by step

**56.9%** GSM8K with PaLM 540B, up from 17.9%

## Same model, same question; only the exemplar changes

![Figure 1](https://cdn.instaxiv.com/figures/2201.11903/figure1.webp)

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. (Figure 1)

## 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.

## The gain appears only at scale

| Method | Standard | Chain of thought |
| --- | --- | --- |
| LaMDA 137B | 6.5 | 14.3 |
| GPT-3 175B | 15.6 | 46.9 |
| **PaLM 540B (+39.0 pts)** | **17.9** | **56.9** |

_GSM8K solve rate (%). The prior best, 55%, came from fine-tuned GPT-3 with a verifier._

## 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.

## 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.

Best used when: Multi-step arithmetic, commonsense or symbolic tasks on very large models.

## Key takeaways

- 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.

## Links

- arXiv: https://arxiv.org/abs/2201.11903
- PDF: https://arxiv.org/pdf/2201.11903

## Citation

```bibtex
@article{wei2022chainofthought,
  title   = {Chain-of-Thought Prompting Elicits Reasoning in Large Language Models},
  author  = {Wei, Jason and Wang, Xuezhi and Schuurmans, Dale and Bosma, Maarten and Ichter, Brian and Xia, Fei and Chi, Ed and Le, Quoc and Zhou, Denny},
  journal = {arXiv preprint arXiv:2201.11903},
  year    = {2022},
  url     = {https://arxiv.org/abs/2201.11903}
}
```
