Chain-of-Thought (CoT)
Chain-of-Thought (CoT) is a prompting and training technique in which a language model is encouraged to reason step-by-step before producing its final answer — improving accuracy on math, logic, and multi-hop reasoning in large models (in Wei et al., 2022, GSM8K math accuracy more than doubled for the largest GPT and PaLM models).
AIDOLS Research Team · Editorial standards
Full definition
CoT was demonstrated by Wei et al. (2022) with few-shot examples of stepwise reasoning; Kojima et al. (2022) then showed that simply adding "Let's think step by step" elicits it with no examples (zero-shot CoT). The 2024–2025 reasoning-model wave (OpenAI o1/o3, DeepSeek R1, Anthropic's extended thinking) extends CoT into post-training: models are trained to spend variable amounts of inference compute on reasoning before answering.
Why it matters
CoT and reasoning models change AI unit economics: they spend more inference compute, and so more money, per answer in exchange for higher accuracy on hard tasks. For high-stakes workflows (financial analysis, medical reasoning, code generation, legal research) the trade-off is usually worth it.
Example
On the GSM8K math benchmark, Google's PaLM 540B rose from 17.9% accuracy with standard prompting to 56.9% with chain-of-thought prompting (Wei et al., 2022), without any change to the model.
Next steps
Related terms
- Prompt EngineeringPrompt engineering is the practice of designing the inputs to a language model — instructions, examples, role definitions, output formats, and constraints — to reliably produce a desired output without changing the model's weights.
- Large Language Model (LLM)A Large Language Model (LLM) is a deep neural network — almost always a transformer — trained on hundreds of billions to trillions of words to predict the next token, and to generate, summarize, translate, or reason over text.
- Inference CostInference cost is the dollar cost of running a trained AI model in production — per request, per user, or per business outcome — and the operating expense that determines whether an AI feature has positive unit economics at scale.
- Few-Shot / Zero-Shot LearningFew-shot learning is the ability of a model to perform a new task given only a handful of examples at inference time; zero-shot learning is the same idea with no examples — the model relies entirely on its pretraining and the natural-language instruction.
More training & optimization terms
- HallucinationAn AI hallucination is when a language or generative model produces content that is plausible-sounding but factually incorrect, fabricated, or unfaithful to its sources — one of the biggest failure modes of LLMs in regulated and high-stakes domains.
- QuantizationQuantization is the technique of representing a neural network's weights and activations with fewer bits — 8-bit, 4-bit, or even lower — to dramatically reduce memory footprint, inference cost, and latency, usually with only 0–2% quality loss.
- DistillationKnowledge distillation is the practice of training a smaller "student" model to mimic the outputs of a larger, higher-quality "teacher" model — capturing most of the teacher's quality at a fraction of the inference cost.
Source & further reading
Primary source: Wei et al. — "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models" (2022).
Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/chain-of-thought/.