[Summary] Chain of Thought Prompting Elicits Reasoning in Large Language Models Explained

Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed H. Chi, F. Xia, Quoc Le, Denny Zhou · 2022 · Neural Information Processing Systems · 12663 citations

Paper Summary and Key Insights

This summary breaks down the key contributions, methodology, results, and applications of this research paper. Use the sections below to understand the paper's context, main ideas, and significance.

This hub page explores "Chain of Thought Prompting Elicits Reasoning in Large Language Models," a seminal paper from 2022 that significantly advanced our understanding of how large language models (LLMs) can perform complex reasoning tasks.

Context

Despite the remarkable advancements in natural language processing driven by the scaling of large language models, these sophisticated systems have historically struggled with tasks requiring multi-step reasoning. While LLMs excel at generating coherent text and performing simple question-answering, their performance on complex arithmetic, commonsense, and symbolic reasoning problems often remains limited. Traditional few-shot prompting, which provides models with a few input-output examples, proves inadequate for these intricate challenges, and the alternative of finetuning a separate model for each task is computationally expensive and requires extensive labeled datasets. This inherent limitation in reasoning capability has posed a significant barrier to developing truly intelligent and versatile AI systems capable of tackling real-world problems that demand more than superficial pattern matching.

The core problem, therefore, lies in unlocking the latent reasoning potential within these massive models without resorting to costly and task-specific training. Addressing this challenge is crucial for extending the utility of LLMs beyond mere language generation to more robust problem-solving, enabling them to decompose complex queries, follow logical steps, and arrive at accurate conclusions. This paper directly confronts this limitation, proposing a simple yet profoundly effective method to bridge the gap between language generation and genuine reasoning.

Key Contributions

  • The paper introduces Chain-of-Thought (CoT) prompting, a novel method that significantly enhances the ability of large language models to perform complex reasoning by providing intermediate reasoning steps as exemplars.
  • It demonstrates that these advanced reasoning abilities are not explicitly programmed but rather emerge naturally in sufficiently large language models when exposed to CoT demonstrations.
  • Researchers show that CoT prompting dramatically improves performance across a diverse range of tasks, including arithmetic, commonsense, and symbolic reasoning.
  • The approach achieves state-of-the-art accuracy on challenging benchmarks like GSM8K (math word problems) with a 540B-parameter model, surpassing even finetuned GPT-3 with a verifier, as highlighted in the abstract and Figure 2.
  • The work underscores several attractive properties of CoT prompting, including its capacity to decompose multi-step problems, offer an interpretable window into model behavior, and its broad applicability across various language-based reasoning tasks.
  • It establishes the robustness of CoT prompting, showing its effectiveness across different annotators, exemplar sets, their ordering, and various large language models, as detailed in Section 3.4 and Figure 6.

Method (Simple Explanation)

The core innovation of this paper lies in Chain-of-Thought (CoT) prompting, a straightforward yet powerful technique designed to elicit multi-step reasoning in large language models. The approach builds on the existing paradigm of few-shot prompting, where a model is given a few examples to guide its behavior on a new task. However, standard few-shot prompting typically provides only input-output pairs, which often falls short for tasks requiring complex reasoning.

To address this, the authors augment each exemplar in the prompt with a "chain of thought"—a series of intermediate natural language reasoning steps that logically lead to the final answer. For instance, as illustrated in Figure 1, instead of merely showing "Question: [math problem] A: [answer]," CoT prompting presents "Question: [math problem] A: [step 1]. [step 2]. [step 3]. The answer is [final answer]." This simple modification encourages the language model to generate its own sequence of intermediate steps when faced with a new problem, effectively decomposing complex problems into manageable sub-problems.

This method enables models to allocate additional computation to problems requiring more reasoning steps, provides an interpretable window into the model's decision-making process, and is broadly applicable to any task that humans can solve via language. The researchers manually composed a small set of such chain-of-thought exemplars (typically eight) for various benchmarks, demonstrating that this minimal intervention can unlock significant reasoning capabilities in sufficiently large, off-the-shelf language models without requiring extensive finetuning.

Results

  • Chain-of-thought prompting consistently and significantly improved performance across arithmetic, commonsense, and symbolic reasoning tasks, often doubling or tripling solve rates compared to standard prompting, as shown in Tables 2, 4, and 5.
  • The ability to benefit from chain-of-thought reasoning is an emergent property of model scale, with substantial performance gains observed primarily in models with approximately 100 billion parameters or more, as depicted in Figure 4.
  • On the challenging GSM8K benchmark of math word problems, a PaLM 540B model, when prompted with just eight chain-of-thought exemplars, achieved state-of-the-art accuracy, outperforming even finetuned GPT-3 with a verifier (Figure 2).
  • The performance gains from CoT prompting were notably larger for more complicated, multi-step problems like GSM8K, while improvements were minimal or negative for simpler, single-step tasks (Section 3.2, Appendix Table 3).
  • Ablation studies confirmed that the natural language reasoning steps themselves are crucial, as variations such as "equation only" or "variable compute only" prompting did not yield comparable improvements, indicating that the semantic understanding of the steps is key (Figure 5).
  • The effectiveness of chain-of-thought prompting proved robust across different human annotators, varying sets of exemplars, and diverse language models (LaMDA, GPT-3, PaLM, UL2, Codex), as detailed in Section 3.4 and Figure 6.

Applications

  • Enhanced AI Assistants: By enabling LLMs to break down complex user queries into logical steps, CoT prompting can lead to more accurate and helpful responses from virtual assistants, especially for multi-step instructions or problem-solving.
  • Improved Educational Tools: Language models can generate step-by-step solutions for math word problems or scientific reasoning tasks, offering students not just answers but also clear, natural language explanations of the problem-solving process.
  • More Reliable Robotic Control: For tasks requiring a robot to execute a sequence of actions based on natural language instructions, CoT prompting can help the model generate a coherent "plan" of intermediate steps, as demonstrated with the SayCan dataset (Figure 3).
  • Advanced Scientific Discovery: Researchers could leverage CoT-enabled LLMs to reason through complex scientific literature, synthesize information, and propose multi-step hypotheses or experimental designs, accelerating discovery processes.

Why it Matters

This paper marks a pivotal moment in the development of large language models, revealing that a simple prompting technique can unlock sophisticated reasoning capabilities previously thought to be beyond their reach. The discovery that "chain of thought" reasoning is an emergent property of model scale fundamentally shifts our understanding of LLM intelligence, suggesting that these models, when sufficiently large, possess an inherent capacity for logical decomposition that can be activated with minimal guidance. This means that instead of merely pattern-matching, LLMs can be coaxed into exhibiting a form of structured thought, moving them closer to genuine artificial intelligence.

The implications are far-reaching: it paves the way for more capable, versatile, and interpretable AI systems that can tackle a broader spectrum of complex problems without the need for extensive, task-specific finetuning. This work not only provides a practical method for improving LLM performance but also opens new avenues for research into the nature of emergent abilities, how to induce reasoning in smaller models, and how to ensure the factual correctness of generated reasoning paths. Ultimately, Chain-of-Thought prompting represents a significant step towards building AI that can reason with human-like clarity and precision, fostering greater trust and utility in advanced language technologies.

Using SpatialRead to Understand This Paper

  • SpatialRead can help clarify the intricate experimental setups described in Section 3.1, allowing readers to highlight specific sentences about benchmarks or prompting variations and engage in focused AI conversations for deeper understanding.
  • Understanding the detailed performance comparisons across various models and benchmarks, such as those presented in Table 2 (Standard prompting versus chain of thought prompting on five arithmetic reasoning benchmarks), becomes clearer when using SpatialRead to query AI models about specific numerical results or trends.
  • The tool's ability to access multiple AI models (OpenAI, Perplexity, Gemini, Anthropic) offers nuanced explanations of complex concepts like "emergent abilities" (Section 3.2) or the findings from the ablation studies (Section 3.3, Figure 5), catering to different learning styles.
  • When encountering the detailed error analysis in Appendix D, particularly the examples of incorrect chains of thought in Tables 10 and 11, SpatialRead's screenshot feature allows capturing these figures and querying AI about the specific types of errors and their implications.
  • SpatialRead facilitates a deeper dive into the robustness experiments discussed in Section 3.4 and illustrated in Figure 6, enabling users to ask AI about the impact of different annotators or exemplar orders on model performance.
  • For readers interested in the broader context, SpatialRead can assist in navigating the extensive related work section (Section 7 and Appendix C), helping to summarize or explain how this paper connects to prior research on intermediate steps, natural language explanations, and program synthesis.

Download SpatialRead → Open access PDF →