Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matters

Boshi Wang, Sewon Min, Xiang Deng, Jiaming Shen, You Wu +2 more
12/20/2022
432 citations
cs.CL

Official code: sunlab-osu/Understanding-CoT (88 stars, Jupyter Notebook, last commit 2023-06-01).

Abstract

Chain-of-Thought (CoT) prompting can dramatically improve the multi-step reasoning abilities of large language models (LLMs). CoT explicitly encourages the LLM to generate intermediate rationales for solving a problem, by providing a series of reasoning steps in the demonstrations.

Show full abstract

Despite its success, there is still little understanding of what makes CoT prompting effective and which aspects of the demonstrated reasoning steps contribute to its performance. In this paper, we show that CoT reasoning is possible even with invalid demonstrations - prompting with invalid reasoning steps can achieve over 80-90% of the performance obtained using CoT under various metrics, while still generating coherent lines of reasoning during inference. Further experiments show that other aspects of the rationales, such as being relevant to the query and correctly ordering the reasoning steps, are much more important for effective CoT reasoning. Overall, these findings both deepen our understanding of CoT prompting, and open up new questions regarding LLMs' capability to learn to reason in context.

View on arXivView PDF

Code Implementations(1)

887Jupyter Notebook, PythonDec 20, 20223 years ago

Similar Papers

Cite this paper

@article{wang2022towards,
  title  = {Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matters},
  author = {Boshi Wang and Sewon Min and Xiang Deng and Jiaming Shen and You Wu and Luke Zettlemoyer and Huan Sun},
  year   = {2022},
  eprint = {2212.10001},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10001}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.10001.svg)](https://codeofpaper.com/paper/2212.10001)

Discussion