Lesson 3.2 · 6 min
Chain of thought
Chain of thought means asking the model to write out its reasoning before it gives the answer. You can do it with one sentence, such as “Let’s think step by step”2, or by showing worked examples whose answers include the reasoning1.
Writing the steps gives the model room for problems that need several moves, and gives you a trail to check. If step 2 is wrong, you can see it.
In the anatomy, this is the Reasoning part. It belongs to the elicit reasoning family, with self-consistency and tree of thoughts.
Sources for this page
- Chain-of-thought prompting elicits reasoning in large language modelsWei et al. · Jan 2022 · arXiv 2201.11903
- Large language models are zero-shot reasonersKojima et al. · May 2022 · arXiv 2205.11916