Glossary termTechnique

Chain-of-Thought Prompting

Also known as: CoT, Chain-of-thought reasoning

Prompting technique that has a language model write out intermediate reasoning steps before its final answer, often improving accuracy on complex problems.

Chain-of-thought prompting asks a language model to show its work. Instead of jumping straight to an answer, the model generates a sequence of intermediate steps, such as breaking a word problem into parts, doing each calculation and then combining the results. This prompting approach can be triggered by including worked examples that display reasoning, or simply by instructing the model to reason step by step. Writing out steps gives the model more computation per answer and lets it condition later steps on earlier ones.

The technique was described in a 2022 paper by Jason Wei and colleagues at Google, which reported large gains on arithmetic, commonsense and symbolic reasoning tasks for sufficiently large models. A paper the same year by Takeshi Kojima and colleagues showed that a short instruction to think step by step, without examples, also helped. Follow-up methods include self-consistency, which samples several reasoning chains and takes a majority vote, and tree-structured searches over possible reasoning paths. The idea was later built into reasoning models trained to produce long chains of thought.

Chain-of-thought matters both for performance and for oversight. Visible reasoning can help users and developers understand how an answer was reached and spot errors. However, research has shown that a model's written reasoning is not always a faithful account of the computation that actually produced its answer, so it should not be treated as a guaranteed explanation. Interpretability and AI safety researchers study whether monitoring chains of thought can reliably detect problematic behavior, and how training pressures might make such reasoning less transparent.

Key points

  • Chain-of-thought prompting elicits intermediate reasoning steps before a final answer.
  • A 2022 Google paper by Jason Wei and colleagues reported large gains on reasoning benchmarks.
  • Simply instructing a model to reason step by step can improve its answers.
  • Written reasoning is not always a faithful record of how a model actually reached its answer.

Related entries

Glossary term

The practice of designing and refining instructions, examples and context given to a generative AI model to obtain more useful and reliable outputs.

Glossary term

Language model trained to generate extended reasoning before answering, trading extra computation at inference time for better problem solving.

Glossary term

Ability of a language model to perform a task from instructions or examples given in its prompt, without any change to its trained weights.

Glossary term

Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.

Glossary term

Research field that seeks to understand how AI models reach their outputs, by explaining their decisions or reverse-engineering their internal mechanisms.

Glossary term

Capabilities that appear in larger AI models but are absent or near random in smaller ones, rather than improving gradually with scale.