Paper commentary
Large Language Models are Zero-Shot Reasoners
- Problem Few-shot exemplars are the usual way to elicit multi-step reasoning from large language models, and the original chain-of-thought work did not report zero-shot baselines. The open question is whether a fixed zero-shot trigger phrase can elicit the same behaviour.
- Method Appends the fixed phrase "Let's think step by step" to each question, then runs a second prompt that extracts the answer in the required format.
- Results Raised MultiArith accuracy for text-davinci-002 from 17.7 to 78.7 and GSM8K accuracy from 10.4 to 40.7.
Few-shot exemplars as the usual route to reasoning
Large language models are commonly steered with a few worked examples in the prompt, and chain-of-thought prompting goes further by writing those example answers as step-by-step reasoning. That approach lifted PaLM on GSM8K from 17.9% to 58.1% in the reported comparison, but the zero-shot baseline was not part of the original study.
The authors ask whether the reasoning ability depends on those exemplars at all, or whether a zero-shot prompt can prompt the model to write intermediate steps itself. They test a single fixed trigger phrase on tasks where standard zero-shot prompting usually fails, and compare it with the few-shot variants that use the same exemplars.
How the trigger phrase and two prompts work
Zero-shot-CoT adds the same phrase to every question, whatever the task, so no per-task exemplars or templates are written. The phrase is intended to cue a reasoning path before the answer, so the model's output is a chain of steps rather than a bare answer.
The first prompt asks for the reasoning, which is the reasoning extraction stage. The output of that stage is then followed by an answer-format prompt, which is the second stage, so that the final answer can be parsed. The zero-shot baseline needs only the answer-format prompt. Few-shot prompts skip the second stage by writing the exemplar answers in the target format, so the model imitates that format.
After generation, answer cleansing keeps the first span that satisfies the answer format: the first number for arithmetic and the first large letter for multiple-choice questions. Few-shot and Few-shot-CoT outputs are parsed from the text after the phrase The answer is, and if that phrase is absent, the search starts from the end of the output.
Zero-shot-CoT against zero-shot across benchmarks
The evaluation covers 12 datasets in four categories of reasoning, and every method uses greedy decoding, so zero-shot results are deterministic. All comparisons in this block use text-davinci-002 as the model.
On MultiArith accuracy rose from 17.7 to 78.7, and on GSM8K from 10.4 to 40.7, with the same model and the same zero-shot answer prompt. Table 1 shows the same pattern on four of the six arithmetic datasets, and the two easier datasets, SingleEq and AddSub, are roughly on par with the baseline.
On the symbolic and logical tasks the gains are larger. Last Letter goes from 0.2 to 57.6, Coin Flip from 12.8 to 91.4 on the left-side setting, and Shuffled Objects from 31.3 to 52.4. On CommonsenseQA the left-side accuracy is 64.6 under Zero-shot-CoT against 68.8 under zero-shot, so there is no gain there, and the authors note that many generated chains are still logically sound.
Table 1 lists StrategyQA at 54.8 under Zero-shot-CoT and 12.7 under zero-shot on the left-side setting, while the text summarises commonsense tasks as showing no gain, so the commonsense conclusion depends on which measure is read.
Comparison with few-shot baselines and PaLM
Table 2 uses the same 8 examples from Wei et al. for the few-shot baselines, with text-davinci-002 as the model. Zero-shot-CoT reaches 78.7 on MultiArith and 40.7 on GSM8K, against 33.8 and 15.6 for few-shot prompting with 8 samples.
Few-shot-CoT with 8 samples is higher, at 93.0 on MultiArith and 48.7 on GSM8K, so the zero-shot trigger does not match hand-crafted step-by-step exemplars. Adding the trigger phrase to the start of each exemplar answer gives 92.8 on MultiArith and 51.5 on GSM8K, which is the Zero-Plus-Few-Shot-CoT row.
On PaLM 540B, zero-shot prompting gives 25.5 on MultiArith and 12.5 on GSM8K, while Zero-shot-CoT gives 66.1 and 43.0. With self consistency added on top of Zero-shot-CoT, PaLM 540B reaches 89.0 on MultiArith and 70.1 on GSM8K, and this combination is a separate setting from the single-sample trigger.
How model size changes the effect
Figure 3 plots MultiArith for original GPT-3 and Instruct GPT-3 and GSM8K for PaLM.
Without the trigger phrase the zero-shot curve stays mostly flat as model size grows, whereas with the trigger the score rises with size for the GPT-3 families and PaLM. Below a certain size the trigger phrase does not help, which the authors relate to the few-shot results of Wei et al.
Sensitivity to the wording of the trigger
Table 4 compares ten trigger templates on MultiArith with text-davinci-002, and the default phrase scores 78.7. Other instructive templates range from 77.3 down to 45.7, and a misleading template, Don't think. Just feel., scores 18.8.
The spread shows that accuracy depends on the phrasing, so the phrase is not interchangeable with any instruction that asks for care.
Limitations
On CommonsenseQA, Zero-shot-CoT often lists several answer choices when it cannot narrow the answer to one, and Table 3 gives an example of this.
Greedy decoding makes the zero-shot results deterministic, while each few-shot experiment was run once with a fixed seed, and the order of in-context examples can affect results.
The training data of the evaluated LLMs is not public, so the origin of the zero-shot reasoning ability cannot be traced to a specific source.
Zero-shot reasoning as a broad capability
Earlier zero-shot work targeted single tasks or required manual prompt engineering per task, whereas this trigger is one template across tasks. The authors also report that Zero-shot-CoT raises zero-shot performance for Instruct GPT-3, the original GPT-3 and PaLM, and they treat it as orthogonal to instruction tuning.
The authors argue that consistent gains across arithmetic and non-arithmetic tasks make memorisation an unlikely explanation, and they read the result as a task-agnostic multi-step capability. This is an interpretation of the measured gains, not a proof of the underlying mechanism.
Paper info
- Authors
- Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, Yusuke Iwasawa
- Venue
- arXiv · Preprint
- First published
- 2022-5-24
- Added
- 2026-10-20
- Updated
- 2023-1-29
- Version
- v4
- arXiv
- 2205.11916
- Category
- cs.CL · cs.AI · cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, Yusuke Iwasawa (2022). Large Language Models are Zero-Shot Reasoners. arXiv:2205.11916v4. https://arxiv.org/abs/2205.11916v4
BibTeX
@misc{kojima2022large,
title = {{Large Language Models are Zero-Shot Reasoners}},
author = {Takeshi Kojima and Shixiang Shane Gu and Machel Reid and Yutaka Matsuo and Yusuke Iwasawa},
year = {2022},
eprint = {2205.11916},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2205.11916v4}
}