Back to Feed
Reasoning

Teaching Large Language Models To Reason

Original: Chain-of-Thought Prompting Elicits Reasoning in Large Language Models

Listen to the summary

Uses a voice available on your device

Audio options
On this page 4 sections
Related concepts 2 concepts

Key Takeaways

  • Large language models struggle with complex reasoning tasks like arithmetic, commonsense, and symbolic reasoning.
  • Augmenting exemplars with manually composed chains of thought allows models to break down complex problems.
  • Prompting PaLM 540B with eight chain-of-thought exemplars achieves state-of-the-art accuracy on the GSM8K benchmark, surpassing finetuned GPT-3 with a verifier.
  • PaLM 540B achieves 75.6% on StrategyQA, outperforming the prior state of the art of 69.4%.
  • PaLM 540B achieves 95.4% on sports understanding, outperforming an unaided sports enthusiast at 84%.

Summary & Methodology Analysis

Large language models often struggle with complex reasoning tasks such as arithmetic, commonsense, and symbolic reasoning when prompted to output answers directly. To address this, the authors introduce chain-of-thought prompting. Instead of using standard few-shot prompting where models skip straight to the answer, this method augments each exemplar with a manually composed chain of thought for an associated answer, forming input, chain of thought, and output triples. This allows the model to generate a series of intermediate reasoning steps before arriving at the final output.

The paper evaluates this method across multiple models and datasets, including GPT-3, LaMDA, PaLM, UL2 20B, Codex, GSM8K, SVAMP, ASDiv, AQuA, MAWPS, CSQA, StrategyQA, Date Understanding, Sports Understanding, SayCan, and SST-2. Scaling plays a crucial role, as the emergence of chain-of-thought reasoning only occurs at large model scales. For example, prompting PaLM 540B with eight chain-of-thought exemplars achieves state-of-the-art accuracy on the GSM8K benchmark, surpassing finetuned GPT-3 with a verifier. Furthermore, PaLM 540B achieves 75.6% on StrategyQA, outperforming the prior state of the art of 69.4%, and reaches 95.4% on sports understanding, outperforming an unaided sports enthusiast at 84%.

Despite these strong results, several limitations remain. Fully characterizing a model's computations that support an answer remains an open question. Additionally, manual annotation costs for chains of thought could be prohibitive for finetuning. There is also no guarantee of correct reasoning paths, which can lead to both correct and incorrect answers. Finally, because the emergence of chain-of-thought reasoning only happens at large model scales, it is costly to serve in real-world applications.

Interactive System Flowchart

Click diagram to expand and zoom

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What problem does this paper address?

The paper addresses how large language models struggle with complex reasoning tasks like arithmetic, commonsense, and symbolic reasoning.

Q2. What is the core solution proposed by the authors?

The core solution is generating a chain of thought, which is a series of intermediate reasoning steps, to significantly improve model performance.

Q3. What is the main takeaway regarding model scale?

The emergence of chain-of-thought reasoning only occurs at large model scales.

Q4. How is chain-of-thought prompting implemented in the methodology?

It is implemented by augmenting each exemplar in few-shot prompting with a manually composed chain of thought for an associated answer, using input, chain of thought, and output triples.

Q5. What is used as the baseline comparison?

Standard few-shot prompting is used as a baseline, where models output answers directly without intermediate reasoning steps.

Q6. What results were achieved on the GSM8K benchmark?

Prompting PaLM 540B with eight chain-of-thought exemplars achieves state-of-the-art accuracy on the GSM8K benchmark, surpassing finetuned GPT-3 with a verifier.

Q7. How did PaLM 540B perform on StrategyQA?

PaLM 540B achieves 75.6% on StrategyQA, outperforming the prior state of the art of 69.4%.

Q8. What was the performance on sports understanding?

PaLM 540B achieves 95.4% on sports understanding, outperforming an unaided sports enthusiast at 84%.

Q9. What are the limitations of chain-of-thought prompting noted in the paper?

Fully characterizing a model's computations remains an open question, manual annotation costs could be prohibitive for finetuning, there is no guarantee of correct reasoning paths, and large scale makes it costly to serve.

Flag an issue

What is wrong with this summary?

What is wrong?