Papers › Large Language Models are Zero-Shot Reasoners

Large Language Models are Zero-Shot Reasoners

24 May 2022arXiv:2205.11916archive 2025-07-28

Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, Yusuke Iwasawa

Pretrained large language models (LLMs) are widely used in many sub-fields of natural language processing (NLP) and generally known as excellent few-shot learners with task-specific exemplars. Notably, chain of thought (CoT) prompting, a recent technique for eliciting complex multi-step reasoning through step-by-step answer examples, achieved the state-of-the-art performances in arithmetics and symbolic reasoning, difficult system-2 tasks that do not follow the standard scaling laws for LLMs. While these successes are often attributed to LLMs' ability for few-shot learning, we show that LLMs are decent zero-shot reasoners by simply adding "Let's think step by step" before each answer. Experimental results demonstrate that our Zero-shot-CoT, using the same single prompt template, significantly outperforms zero-shot LLM performances on diverse benchmark reasoning tasks including arithmetics (MultiArith, GSM8K, AQUA-RAT, SVAMP), symbolic reasoning (Last Letter, Coin Flip), and other logical reasoning tasks (Date Understanding, Tracking Shuffled Objects), without any hand-crafted few-shot examples, e.g. increasing the accuracy on MultiArith from 17.7% to 78.7% and GSM8K from 10.4% to 40.7% with large InstructGPT model (text-davinci-002), as well as similar magnitudes of improvements with another off-the-shelf large model, 540B parameter PaLM. The versatility of this single prompt across very diverse reasoning tasks hints at untapped and understudied fundamental zero-shot capabilities of LLMs, suggesting high-level, multi-task broad cognitive capabilities may be extracted by simple prompting. We hope our work not only serves as the minimal strongest zero-shot baseline for the challenging reasoning benchmarks, but also highlights the importance of carefully exploring and analyzing the enormous zero-shot knowledge hidden inside LLMs before crafting finetuning datasets or few-shot exemplars.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.11916")

Code

Syntology Ran 0 of 4 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run.

By repository: official repository: 1 sample from 1 repository, 0 ran; community (archive-listed): 3 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kojima-takeshi188/zero_shot_cot officialmentioned in papermentioned on GitHubpytorch report
skytliang/multi-agents-debate mentioned on GitHubGPL-3.0 report
zongqianwu/st-cot mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

4 samples harvested; 0 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4unverified

Licence: 1 of the 4 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

decoder_for_gpt3 kojima-takeshi188/zero_shot_cot/utils.py official repository unverified no licence file found · pointer only · 2a69062c931fd044 · report
find_by_prefix nicolay-r/reasoning-for-sentiment-analysis-framework/src/utils.py community (archive-listed) unverified MIT (permissive) · 019cef4a931d36cf · report
format_model_name nicolay-r/reasoning-for-sentiment-analysis-framework/src/utils.py community (archive-listed) unverified MIT (permissive) · 12eff61056f9a673 · report
parse_filepath nicolay-r/reasoning-for-sentiment-analysis-framework/src/utils.py community (archive-listed) unverified MIT (permissive) · 663cefba5b844a67 · report

Tasks

Arithmetic ReasoningCommon Sense ReasoningDate UnderstandingFew-Shot LearningGSM8KLogical ReasoningMath Word Problem Solving

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Arithmetic Reasoning GSM8K PaLM-540B (few-Shot-cot) Accuracy 58.1 #120 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K PaLM-540B (few-Shot-cot) Parameters (Billion) 540 #120 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Finetuned GPT-3 175B + verifier Accuracy 55.0 #127 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Finetuned GPT-3 175B + verifier Parameters (Billion) 175 #127 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Text-davinci-002-175B (zero-plus-few-Shot-cot (8 samples)) Accuracy 51.5 #133 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Text-davinci-002-175B (zero-plus-few-Shot-cot (8 samples)) Parameters (Billion) 175 #133 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K text-davinci-002 175B (2-shot, CoT) Accuracy 41.3 #138 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K text-davinci-002 175B (2-shot, CoT) Parameters (Billion) 175 #138 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K text-davinci-002 175B (0-shot, CoT) Accuracy 40.7 #140 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K text-davinci-002 175B (0-shot, CoT) Parameters (Billion) 175 #140 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K PaLM 540B (few-shot) Accuracy 17.9 #153 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K PaLM 540B (few-shot) Parameters (Billion) 540 #153 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Text-davinci-002-175B (0-shot) Accuracy 10.4 #160 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Text-davinci-002-175B (0-shot) Parameters (Billion) 175 #160 of 164 Archive leaderboard report
Arithmetic Reasoning MultiArith Text-davinci-002 (175B)(zero-shot-cot) Accuracy 78.7 #1 of 2 Archive leaderboard report
Arithmetic Reasoning MultiArith Text-davinci-002 (175B) (zero-shot) Accuracy 17.7 #2 of 2 Archive leaderboard report
Common Sense Reasoning ReCoRD GPT-3 175B (one-shot) F1 90.2 #40 of 45 Archive leaderboard report
Math Word Problem Solving SVAMP PaLM (zero-shot, CoT) Execution Accuracy 62.1 #14 of 26 Archive leaderboard report
Math Word Problem Solving SVAMP PaLM (zero-shot) Execution Accuracy 58.8 #15 of 26 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

PaLM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections