Robots Atlas>ROBOTS ATLAS
Reasoning

Zero-shot-CoT

2022ActivePublished: 10 September 2026Updated: 10 September 2026Published
Key innovation
Showed that a single, task-agnostic trigger phrase ('Let's think step by step') elicits multi-step reasoning in a large language model with zero exemplars (zero-shot), removing the need for hand-crafted chain-of-thought demonstrations.
Category
Reasoning
Abstraction level
Pattern
Operation level
Inference
Use cases
Multi-step arithmetic (GSM8K, MultiArith, AQUA-RAT)Symbolic reasoning (last-letter concatenation, coin flip)Logical and commonsense reasoningRapid prototyping of reasoning prompts without an exemplar setAutomatically generating reasoning demonstrations for Auto-CoT

How it works

The method runs in two sequential prompting stages on the same model: 1) Reasoning extraction: the trigger phrase 'Let's think step by step' is appended to the question, and the model autoregressively generates an explicit chain of intermediate reasoning steps. 2) Answer extraction: the generated chain is concatenated back into the prompt together with an answer-forcing phrase (e.g. 'Therefore, the answer (arabic numerals) is'), and the model produces the final, parseable answer. The whole procedure uses one fixed template across all tasks — no exemplars and no task-specific tuning. Output quality increases with model scale.

Problem solved

Classic few-shot Chain-of-Thought requires hand-crafted, task-specific reasoning exemplars — this is costly, brittle, and generalizes poorly to new task types. Zero-shot-CoT removes the need for exemplars entirely: one task-agnostic trigger phrase unlocks multi-step reasoning on any task, revealing the latent reasoning abilities of large language models.

Components

Reasoning trigger phraseReasoning activator (stage 1)

A universal, task-agnostic phrase appended to the question that induces the model to generate an explicit reasoning chain. Its exact wording materially affects performance.

"Let's think step by step"The original, best-performing phrase from Kojima et al.
"Let's work this out step by step to be sure we have the right answer"A variant later optimized by APE (Automatic Prompt Engineer).

Official

Reasoning extractionChain-of-thought generation

First model pass: question + trigger phrase as input, a chain of intermediate reasoning steps as output.

INUser query with the appended trigger phrase.
OUTAn explicit, multi-step natural-language reasoning trace.
Answer extractionFinal-answer extraction

Second model pass: question + generated chain + answer-forcing phrase (e.g. 'Therefore, the answer is') as input, a parsed final answer as output.

INStage 1 prompt extended with the reasoning chain and an answer trigger.
OUTA final answer in a format suitable for automatic parsing.

Official

Implementation

Implementation pitfalls
Fragile final-answer parsingHigh

Without the second extraction stage the answer is buried in the reasoning text; naive regex parsing often fails across formats.

Fix:Use a dedicated answer-extraction stage with an explicit format-forcing phrase (e.g. 'the answer (arabic numerals) is').
No benefit on small modelsMedium

The effect is emergent — small models do not produce useful reasoning and may lose accuracy.

Fix:Apply the technique on large models; for small models consider reasoning distillation or other methods.
Sensitivity to trigger wordingMedium

Small changes to the trigger phrase can noticeably change results.

Fix:Use verified phrases (the original or the APE-optimized one) and validate on a held-out set.

Evolution

Original paper · 2022 · NeurIPS 2022 · Takeshi Kojima
Large Language Models are Zero-Shot Reasoners
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, Yusuke Iwasawa
2022
Few-shot Chain-of-Thought (predecessor)

Wei et al. show that step-by-step reasoning exemplars improve LLM reasoning — but require hand-crafted demonstrations per task.

2022
Zero-shot-CoT: 'Let's think step by step'
Inflection point

Kojima et al. prove that a single task-agnostic phrase elicits reasoning with no exemplars, dramatically improving zero-shot results (MultiArith 17.7%→78.7%, GSM8K 10.4%→40.7%).

2022
Self-Consistency (complementary)

Sampling many reasoning chains and majority voting further boosts accuracy — composes with Zero-shot-CoT.

2022
Auto-CoT: automating demonstrations

Zhang et al. use Zero-shot-CoT to auto-generate reasoning exemplars, building few-shot CoT without manual labor.

Hyperparameters (configurable axes)

Trigger phraseCritical

The exact wording of the reasoning-inducing phrase. It has a critical impact on performance.

Let's think step by stepDefault, best-performing phrase.
Let's work this out step by step to be sure we have the right answerAPE-optimized variant.
Answer extraction promptHigh

The stage-2 phrase that forces the final answer in a parseable format.

Therefore, the answer (arabic numerals) isFor numeric tasks.
Therefore, the answer isFor open-ended / choice tasks.
Model scaleHigh

Parameter count of the base model. The Zero-shot-CoT benefit is emergent — it appears only at large scale.

~175B (text-davinci-002)Strong accuracy gains.
540B (PaLM)Similar large gains.
Decoding strategyMedium

Sampling method (greedy vs sampling). Greedy yields a single chain; sampling enables combining with Self-Consistency.

greedy (temperature 0)Default in the original paper.
sampling (temperature > 0)Required for Self-Consistency.
Max reasoning lengthMedium

Token budget for the stage-1 reasoning chain — a trade-off between reasoning completeness and latency/cost.

128-256Typical for arithmetic tasks.

Computational complexity

Time complexity: O(T_r + T_a). Space complexity: O(n).

Compute bottleneck

Sequential autoregressive decoding of a long reasoning chain

The bottleneck is token-by-token generation of the long reasoning chain plus two sequential model passes, which increase end-to-end latency.

Depends on
Długość łańcucha rozumowaniaSkala modelu

Execution paradigm

Primary mode
Dense

Zero-shot-CoT is a prompting layer over the base model — it does not change the model's internal execution; all paths of the dense model remain active.

Activation pattern
All paths active
Routing mechanism

A prompting technique that runs on any dense language model without routing.

Parallelism

Parallelism level
Sequential

Multiple independent queries can be parallelized (batched), but not the steps within a single query.

Scope
Inference
Constraints
!Stage 2 (answer) depends on stage 1 (reasoning) output — they cannot be parallelized.
!Reasoning-chain tokens are generated one after another.

Hardware requirements

Primary

Zero-shot-CoT is a prompting layer — it runs on any hardware capable of serving the base model.

Good fit

In practice the large base models run on tensor-core GPUs; longer reasoning chains increase inference-throughput demand.