Prompts & AI use

Zero-shot

AI-assisted editorial review:

Zero-shot prompting means asking a large language model (LLM) to perform a task from an instruction alone, without including any worked examples in the prompt. The GPT-3 paper (2020) defined the zero-shot setting as one where "no demonstrations are allowed and only an instruction in natural language is given," alongside one-shot and few-shot settings that add one or several examples.[1] OpenAI recommends trying this approach first with reasoning models, then adding examples if needed.[2]

What does Zero-shot mean in simple terms?

Picture a manager who does not hand you a template or a past sample, and simply says, "Summarise the meeting notes and post them." Zero-shot prompting works the same way: you give the model a clear instruction and get an answer straight away, with no "here is what a good answer looks like" examples. When GPT-3 was introduced, adding examples usually raised scores noticeably.[1] Newer reasoning models often do well without examples, so OpenAI advises trying zero-shot first and adding examples only if needed.[2]

How can Zero-shot be explained with an analogy?

It is like sending an outside contractor a one-line request with no sample document attached and trusting them to get the format right.

Where is Zero-shot used?

Case 1

OpenAI GPT-3 — Measuring zero-, one- and few-shot on the same model

The GPT-3 paper tested the same 175-billion-parameter model in three settings — zero-shot, one-shot and few-shot — without any fine-tuning.[1] On the closed-book TriviaQA quiz benchmark, accuracy was 64.3% zero-shot, 68.0% one-shot and 71.2% few-shot. The zero-shot score already beat a fine-tuned T5-11B model by 14.2 points.[1] The gap depended heavily on the task: on WebQuestions, the same model scored 14.4% zero-shot but 41.5% few-shot.[1]
Result: TriviaQA accuracy 64.3% → 68.0% → 71.2% (zero-, one- and few-shot GPT-3); WebQuestions 14.4% zero-shot vs 41.5% few-shot.[1]

Case 2

OpenAI CLIP — Zero-shot beyond text

The idea also applies to images. OpenAI's CLIP model was trained on 400 million image–caption pairs, and new categories can then be described in plain language, without collecting labelled training images for each one.[6] The paper reports that CLIP matched the ImageNet accuracy of the original ResNet-50 zero-shot, without using any of the 1.28 million training examples that ResNet-50 was trained on.[6] For a business, this means a first image-sorting system can sometimes be built from category names alone.
Result: ImageNet accuracy on par with the original ResNet-50, with zero ImageNet training examples.[6]

Case 3

Reasoning models — Benchmark gains and prompting guidance

In September 2024 OpenAI introduced o1, a model that "thinks before it answers" with an internal chain of thought.[5] On the 2024 AIME math exam, OpenAI reported that GPT-4o solved about 12% of problems on average, while o1 averaged 74% with a single sample per problem.[5] OpenAI's current guidance for reasoning models says they "often don't need few-shot examples to produce good results," so prompts should be written without examples first.[2] The announcement does not establish that these benchmark scores used a zero-shot prompt.
Result: AIME 2024 average 12% (GPT-4o) vs 74% (o1, single sample), as reported by OpenAI.[5]

Case 4

Translation and summaries — Everyday office tasks (illustrative)

Hypothetical example: a team translates supplier quotes from English and turns meeting notes into three-line summaries. A one-line instruction with a clear output format is often a good first try for this kind of task. Research on machine translation found that zero-shot translations are "relatively good" but still trail few-shot ones, and that about 70% of the gap can be closed by matching the writing style of the target text.[7] For outward-facing documents where house style matters, adding one or two sample passages or a short style description is a safer choice.
Result: One study closed about 70% of the zero-/few-shot translation gap by matching writing style.[7]

Try it today

  1. Pick one task you repeat often (classifying, summarising, extracting or translating) and decide the input and output format first.
  2. Write a zero-shot prompt with no examples: one clear instruction plus an explicit description of the output format.[4]
  3. Run the same 10 inputs through it and collect the results in a table, checking both format consistency and accuracy.
  4. Pull out only the cases where the format drifted or something was missing, and note the pattern.
  5. For those cases only, add 1–3 examples (few-shot) and measure the difference again.[2][3]

Limits and direction

Zero-shot output tends to wobble when the task or format is not clearly defined. In the GPT-3 paper, adding examples raised TriviaQA accuracy from 64.3% to 71.2%, and on some tasks the gap was much larger.[1] For internal classifiers with fuzzy category boundaries, or for tone-sensitive copy and translation, the meaning may be right while the style is off.[7] Details such as key names, nesting and how to handle empty values in structured data extraction also tend to drift, and a few examples are often the most direct fix.[3][4] Anthropic describes examples as "one of the most reliable ways" to steer output format, tone and structure, and recommends being explicit about the desired output when you do not use them.[4]

Two directions stand out. First, models keep getting better at following instructions without examples: reasoning models such as o1 posted large gains on hard benchmarks, and OpenAI now recommends trying zero-shot first with reasoning models.[2][5] Second, many systems keep zero-shot as the default and add examples only when needed, retrieving the stored examples most similar to the current input; a 2021 study found that this kind of retrieval consistently beat randomly chosen examples on GPT-3.[8] A practical approach is to build a zero-shot baseline, then add examples only for the cases that drift, balancing token cost and accuracy.[2][4]

Which concepts are related to Zero-shot?

  • Similar concept
    Prompt VersionA related prompting concept that often appears alongside zero-shot prompting.
  • Similar concept
    Prompt LibraryA related prompting concept that often appears alongside zero-shot prompting.
  • Similar concept
    Persona PromptingA related prompting concept that often appears alongside zero-shot prompting.

Which sources explain Zero-shot?

  1. Brown et al. — Language Models are Few-Shot Learners (arXiv 2005.14165, 2020-05-28) — https://arxiv.org/abs/2005.14165
  2. OpenAI — Reasoning best practices (OpenAI API Docs) — https://developers.openai.com/api/docs/guides/reasoning-best-practices
  3. OpenAI — Prompt engineering: Few-shot learning (OpenAI API Docs) — https://developers.openai.com/api/docs/guides/prompt-engineering
  4. Anthropic — Prompting best practices (Claude Platform Docs) — https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
  5. OpenAI — Learning to reason with LLMs (2024-09-12) — https://openai.com/index/learning-to-reason-with-llms/
  6. Radford et al. — Learning Transferable Visual Models From Natural Language Supervision (arXiv 2103.00020, 2021-02-26) — https://arxiv.org/abs/2103.00020
  7. Tan et al. — Narrowing the Gap between Zero- and Few-shot Machine Translation by Matching Styles (arXiv 2311.02310, 2023-11-04) — https://arxiv.org/abs/2311.02310
  8. Liu et al. — What Makes Good In-Context Examples for GPT-3? (arXiv 2101.06804, 2021-01-17) — https://arxiv.org/abs/2101.06804