Papers / LLMs
Chain of thought (2022)
Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Show the model worked examples that reason step by step, and it starts reasoning step by step too.
Why it matters
A change to the prompt alone unlocked multi-step math and logic, and the gain appeared only in the largest models. The idea of spending more computation on writing out reasoning before answering led directly to the reasoning models trained with reinforcement learning, such as OpenAI o1 and DeepSeek-R1.
- Year
- 2022
- Authors
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, Denny Zhou
- Venue
- NeurIPS 2022
- Data
- GSM8K
The idea
In a few-shot prompt, write out the intermediate reasoning for each example answer, not just the answer. The model imitates the format and works through new problems one step at a time.
The result
With eight such examples, the 540-billion-parameter PaLM reached state-of-the-art accuracy on GSM8K, beating a fine-tuned GPT-3 with a verifier. Smaller models gained little.
The data
Builds on
- GPT-3 (2020): A 175-billion-parameter language model that learns new tasks from a few examples in its prompt.
Led to
- ReAct (2022): Prompt a language model to alternate thoughts with actions, read what each action returns, and keep going until the task is done.
- Self-consistency (2022): Sample many chains of thought instead of one, and take the most common final answer.
- DeepSeek-R1 (2025): Reasoning learned through reinforcement learning on checkable answers, released with open weights.
