Skip to content

What is Chain-of-Thought?

Also known as: CoT

Chain-of-Thought (CoT) is a prompting technique that asks an AI model to generate intermediate reasoning steps before giving a final answer, helping it solve complex problems more reliably.

Instead of jumping straight to an answer, CoT prompting guides the model to break a task into explicit logical steps, similar to how humans show their work on math or logic problems.

It can be triggered with few-shot examples that include step-by-step reasoning or with simple zero-shot instructions like 'think step by step.' This elicits more structured thinking from large language models.

The approach improves performance on arithmetic, commonsense, and symbolic reasoning tasks by making the model's intermediate logic visible and correctable.

Example

When asked 'If John has 3 apples and buys 2 more, then eats 1, how many does he have?', a CoT prompt leads the model to write: 'John starts with 3. He buys 2 more, so 3+2=5. He eats 1, so 5-1=4. Answer: 4.'

Why it matters

CoT has become a standard method to boost reasoning accuracy in large language models without additional training, making AI outputs more reliable and interpretable for complex tasks.

Frequently asked questions

No, it helps with many reasoning tasks including logic puzzles, commonsense questions, and multi-step planning.