This paper from Google Research introduces Chain-of-Thought (CoT) prompting, a simple yet remarkably effective method for improving the reasoning capabilities of Large Language Models (LLMs). By providing a few examples of step-by-step reasoning within a prompt, the authors demonstrate that LLMs can solve complex arithmetic, commonsense, and symbolic tasks that previously stymied even the largest models.
TL;DR
Chain-of-thought prompting elicits multi-step reasoning in LLMs by providing exemplars that include intermediate reasoning steps. This "emergent property" of scale allows models like PaLM 540B to achieve state-of-the-art results on math word problems, significantly outperforming standard prompting and even task-specific fine-tuned models.
What Problem Does This Paper Address?
While scaling up language models has led to impressive gains in many NLP tasks, multi-step reasoning—such as solving a math word problem or tracking the state of an object—has remained a significant challenge. Standard few-shot prompting, which provides only input–output pairs, often fails because the model attempts to jump directly to a final answer without "thinking through" the intermediate logic.
Prior attempts to solve this involved fine-tuning models on large datasets of human-written rationales, which is costly and results in models specialized for only one task. The authors sought a way to unlock general reasoning abilities in off-the-shelf LLMs without any additional training or gradient updates.
Methods
The core method is Chain-of-Thought Prompting. Instead of the standard few-shot approach of providing examples like Q: [Question] A: [Answer], the prompt is augmented with a "chain of thought"—a series of intermediate natural language reasoning steps.
As shown in Figure 1, the model is shown how a human might solve a similar problem step-by-step. When presented with a new test question, the model then generates its own chain of thought before arriving at the final answer. The authors tested this across various model families, including GPT-3, LaMDA, and PaLM, ranging from 350M to 540B parameters.
Datasets
The researchers evaluated CoT prompting across three main domains:
- Arithmetic Reasoning: GSM8K (grade school math), SVAMP, ASDiv, AQuA, and MAWPS.
- Commonsense Reasoning: CSQA (world knowledge), StrategyQA (multi-hop strategy), Date Understanding, Sports Understanding, and SayCan (robot planning).
- Symbolic Reasoning: Last letter concatenation (e.g., "Amy Brown" -> "yn") and Coin Flip (tracking heads/tails after multiple flips).
Key Insights and Ideas
- Reasoning as an Emergent Property: CoT prompting does not help (and can even hurt) small models. The ability to generate logical, helpful chains of thought only emerges in models with roughly 100B+ parameters.
- Computation Allocation: By generating a chain of thought, the model effectively allocates more tokens—and thus more computation—to harder problems before committing to a final answer.
- Robustness: The performance gains are not dependent on a specific linguistic style. The authors found that different annotators writing different chains of thought all yielded similar improvements.
- Length Generalization: In symbolic tasks, CoT prompting allows models to solve problems with more steps than they saw in the prompt (e.g., seeing 2-word examples but solving 4-word problems), a feat standard prompting cannot achieve.
Key Results
The most striking results were in arithmetic reasoning. On the GSM8K benchmark, PaLM 540B using CoT prompting achieved 57% accuracy, surpassing the previous state-of-the-art of 55% held by a GPT-3 model that was specifically fine-tuned on the dataset and used a dedicated verifier.
As seen in Figure 2, the jump from standard prompting (18%) to CoT prompting (57%) is massive. Similar dramatic improvements were observed across other benchmarks, such as StrategyQA and symbolic reasoning tasks.
Limitations and Future Work
- The "Reasoning" Question: The authors clarify that while the model emulates a reasoning process, it is still an open question whether the underlying neural network is actually "reasoning" in a human-like sense.
- Factuality: There is no guarantee that the generated chain of thought is factually correct, even if it leads to the right answer. Conversely, a model might produce a perfect chain but make a simple calculation error at the very end.
- Cost of Scale: Because CoT only works at massive scales (100B+ parameters), it is currently expensive to serve in real-world applications.
- Future Directions: The authors suggest exploring how to induce these reasoning abilities in smaller models and investigating methods to automatically generate chains of thought rather than relying on manual prompting.
Summary updated