---
title: "Automatic Chain of Thought Prompting in Large Language Models"
description: "This paper proposes Auto-CoT, which builds the examples automatically. 9 references, cited by 466 papers here."
authors: ["Zhuosheng Zhang", "Aston Zhang", "Mu Li", "Alex Smola"]
year: 2022
venue: "arXiv:2210.03493"
source: "https://arxiv.org/abs/2210.03493"
doi: "10.48550/arxiv.2210.03493"
arxiv: "2210.03493"
licence: "CC BY-SA 4.0 (arXiv)"
licence_url: "http://creativecommons.org/licenses/by-sa/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/zhang-2022-automatic-chain-thought-prompting-large/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/zhang-2022-automatic-chain-thought-prompting-large/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Automatic Chain of Thought Prompting in Large Language Models

# Automatic Chain of Thought Prompting in Large Language Models

**Authors:** [Zhuosheng Zhang](https://md.research.elamur.ai/free/en/authors/zhuosheng-zhang/), [Aston Zhang](https://md.research.elamur.ai/free/en/authors/aston-zhang/), [Mu Li](https://md.research.elamur.ai/free/en/authors/mu-li/) and [Alex Smola](https://md.research.elamur.ai/free/en/authors/alex-j-smola/) · **Year:** 2022 · **Venue:** arXiv:2210.03493 · **Licence:** [CC BY-SA 4.0 (arXiv)](http://creativecommons.org/licenses/by-sa/4.0/)

**Links:** [Publisher's page](https://arxiv.org/abs/2210.03493) · [PDF](https://arxiv.org/pdf/2210.03493) · [DOI 10.48550/arxiv.2210.03493](https://doi.org/10.48550/arxiv.2210.03493) · [arXiv 2210.03493](https://arxiv.org/abs/2210.03493) · [OpenAlex](https://openalex.org/W4304194220)

**Citations:** 229 citations (OpenAlex, 2026-10-14) · [466](https://md.research.elamur.ai/free/en/papers/zhang-2022-automatic-chain-thought-prompting-large/cited-by/) in our library, of the 151,627 papers whose bibliographies we read

## Summary
Chain-of-thought prompting works best when a model sees a few worked examples, but writing those examples by hand is slow and has to be redone for each task. This paper proposes Auto-CoT, which builds the examples automatically. The test questions of a dataset are encoded and grouped into a few clusters. One representative question is taken from each cluster, and GPT-3 (text-davinci-002) writes its reasoning chain using the zero-shot trigger "Let's think step by step". Simple heuristics on the generated rationale screen out unsuitable chains. The authors found that picking demonstration questions by similarity to the test question backfires. Similar questions tend to share the same zero-shot reasoning mistakes, so the errors reinforce each other, while spreading the questions across clusters dilutes them. On ten arithmetic, commonsense and symbolic benchmarks, Auto-CoT matches or beats hand-written Manual-CoT. The result shows that strong few-shot reasoning prompts can be produced without human annotation, using only unlabeled questions.

## Key points
- Evaluation covers ten datasets in three groups:
  - arithmetic: MultiArith, GSM8K, AddSub, AQuA, SingleEq, SVAMP
  - commonsense: CSQA, StrategyQA
  - symbolic: Last Letter Concatenation, Coin Flip
- Auto-CoT scores against Manual-CoT with GPT-3:
  - MultiArith: 92.0 vs 91.7
  - GSM8K: 47.9 vs 46.9
  - Coin Flip: 99.9 vs 97.2
  - CSQA: 74.4 vs 73.5
- In a pilot study on MultiArith, similarity-based Retrieval-Q-CoT (82.8) did worse than Random-Q-CoT (86.2). When gold annotated chains were used instead, retrieval came out ahead.
- With Codex as the model, Auto-CoT stays competitive. It leads Manual-CoT on GSM8K (62.8 vs 59.4) and AddSub (91.9 vs 84.6) but trails on MultiArith (93.2 vs 96.8).
- Auto-CoT holds up with wrong demonstrations: on MultiArith its accuracy does not drop much even when 50% of the demonstrations are wrong. A streaming variant, Auto-CoT*, processes batches of m = 30 questions and reaches Manual-CoT level from the second batch onward.

## Interesting ideas
- When examples come from a noisy generator, choosing them for diversity across clusters works better than choosing nearest neighbours, because neighbours tend to repeat the same error.
- Cheap structural checks on generated rationales, such as counting line breaks to bound the number of steps, filter bad outputs without any gold labels.
- Robustness is measured by deliberately mixing a controlled share of wrong demonstrations into the prompt and tracking how accuracy degrades.
- A streaming bootstrap reuses the system's own earlier answers as a growing pool of worked examples for later inputs.
- Clustering unlabeled questions shows that they fall into recurring problem types, and each cluster yields a representative example.

## For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

- **I1** (learn): When picking LLM-teacher silver sentences for training, sample across clusters of syntactic or lexical types so that one systematic teacher mistake cannot dominate a batch.
- **I2** (learn): Silver parses or frames from the teacher tiers could be screened with similarly simple shape rules (depth, arc count, root count) before witness parsers vote on them.
- **I3** (learn): The same dose-response test can serve as a negative control, by injecting a known fraction of corrupted silver trees and checking whether parser accuracy degrades gracefully or collapses.
- **I4** (answer): The maths word-problem solver could store solved problems with their explicit solution traces and retrieve diverse past cases as templates for new ones.
- **I5** (answer): School-course test questions could be clustered by their frame structure to discover question types and route each type to a dedicated reader strategy.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

## Institutions

- [Amazon](https://md.research.elamur.ai/free/en/companies/amazon/) — Company, Seattle, United States · 131 works · 41,807 citations

📚 Shelves (5): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 19,503 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 18,805 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 17,959 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 17,789 works · [👁️ Computer Vision and Pattern Recognition](https://md.research.elamur.ai/free/en/shelves/computer-science/computer-vision-and-pattern-recognition/) · 3,621 works

🧭 Topics (2): [🧠 Language models & pretraining](https://md.research.elamur.ai/free/en/topics/language-models/) · 4,145 works · [🧮 Reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) · 1,948 works

💡 Concepts (1): [💡 Few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) · 45 works

## Appears in

Agglomerations: [🏙️ Seattle](https://md.research.elamur.ai/free/en/agglomerations/seattle/)

## Cite

Cite as: Zhuosheng Zhang, Aston Zhang, Mu Li and Alex Smola. 2022. Automatic Chain of Thought Prompting in Large Language Models. arXiv:2210.03493.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@misc{zhang2022automatic,
  title = {{Automatic Chain of Thought Prompting in Large Language Models}},
  author = {Zhuosheng Zhang, Aston Zhang, Mu Li and Alex Smola},
  year = {2022},
  doi = {10.48550/arxiv.2210.03493},
  eprint = {2210.03493},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2210.03493}
}
```

- [← previous Red Teaming Language Models with Language Models](https://md.research.elamur.ai/free/en/papers/perez-2022-red-teaming-language-models-language/)
- [next → Atlas: Few-shot Learning with Retrieval Augmented Language Models](https://md.research.elamur.ai/free/en/papers/izacard-2022-atlas-few-shot-learning-retrieval/)
- [↑ back to papers of 2022](https://md.research.elamur.ai/free/en/papers/2022/)

## References

9 references, 8 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter,… — [Language Models are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/)
2. Romal Thoppilan, Daniel De Freitas, Jamie Hall, Noam Shazeer, Apoorv Kulshreshtha, Heng-Tze Cheng, Alicia Jin, Taylor Bos, Leslie Baker, Yu Du, YaGuang Li, Hongrae Lee, Huaixiu Steven Zheng, Amin Ghafouri, Marcelo Menegali, Yanping Huang, Maxim Krikun, Dmitry Lepikhin, James Qin, Dehao Chen, Yuanzho… — [LaMDA: Language Models for Dialog Applications](https://md.research.elamur.ai/free/en/papers/thoppilan-2022-lamda-language-models-dialog-applications/)
3. Jack W. Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, Eliza Rutherford, Tom Hennigan, Jacob Menick, Albin Cassirer, Richard Powell, George van den Driessche, Lisa Anne Hendricks, Maribeth Rauh, Po-Sen… [find](https://scholar.google.com/scholar?q=Jack+W%2E+Rae%2C+Sebastian+Borgeaud%2C+Trevor+Cai%2C+Katie+Millican%2C+Jordan+Hoffmann%2C+Francis+Song%2C+John+Aslanides%2C+Sarah+Henderson%2C+Roman+Ring%2C+Susannah+Young%2C+Eliza+Rutherford%2C+Tom+Hennigan%2C+Jacob+Menick%2C+A)
4. Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emi… — [PaLM: Scaling Language Modeling with Pathways](https://md.research.elamur.ai/free/en/papers/chowdhery-2022-palm-scaling-language-modeling-pathways/)
5. Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. In Thirty-sixth Conference on Neural Information Processing Systems (NeurIPS 2022), 2022a. URL https://arxiv.org/abs/2201.11903. — [Chain-of-Thought Prompting Elicits Reasoning in Large Language Models](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/) [↗](https://arxiv.org/abs/2201.11903)
6. Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. [Large language models are zero-shot reasoners](https://md.research.elamur.ai/free/en/papers/kojima-2022-large-language-models-zero-shot/). In Thirty-sixth Conference on Neural Information Processing Systems (NeurIPS 2022), 2022. URL https://arxiv.org/abs/2205.11916. [↗](https://arxiv.org/abs/2205.11916)
7. Subhro Roy and Dan Roth. [Solving general arithmetic word problems](https://md.research.elamur.ai/free/en/papers/roy-2015-solving-general-arithmetic-word-problems/). In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1743–1752, Lisbon, Portugal, 2015. Association for Computational Linguistics. doi: 10.18653/v1/D15-1202. URL https://aclanthology.org/D1… [↗](https://aclanthology.org/D1…)
8. Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. [CommonsenseQA: A question answering challenge targeting commonsense knowledge](https://md.research.elamur.ai/free/en/papers/talmor-2019-commonsenseqa-question-answering-challenge-targeting/). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume…
9. Ari Holtzman, Peter West, Vered Shwartz, Yejin Choi, and Luke Zettlemoyer. Surface form competition: Why the highest probability answer isn’t always right. In Proceedings of the 2021 [Conference on Empirical Methods in Natural Language Processing, pages 7038–7051, 2021](https://md.research.elamur.ai/free/en/papers/holtzman-2021-surface-form-competition-why-highest/). doi: 10.18653/v1/2021.emnlp-ma…

*Updated 30 October 2026*

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
