On this page(16)
- What Is Zero Shot Prompting and How Does It Differ From Few-Shot Prompting?
- How Zero Shot Prompting Works Inside a Large Language Model
- Which Tasks Zero Shot Prompting Handles Well and Which It Does Not
- How to Write a Zero Shot Prompt That Gets Reliable Results
- Does Zero Shot Prompting Actually Save Money and Latency Compared to Few-Shot?
- Why Zero Shot Prompts Fail and How to Diagnose the Failure
- When to Choose Zero Shot Prompting Over Few-Shot, Chain-of-Thought, or Fine-Tuning
- How Zero Shot Prompting Changed With Reasoning Models and Long-Context LLMs
- Frequently Asked Questions About Zero Shot Prompting
- What does zero shot mean?
- What is the difference between zero-shot learning and zero shot prompting?
- What is zero shot inference?
- What is an example of a zero shot prompt?
- Is zero shot better than few shot prompting?
- Can zero shot prompting hallucinate?
- Where to Start With Zero Shot Prompting in Your Own Workflow
Zero shot prompting is asking a large language model to perform a task from a plain instruction alone, with no worked examples in the prompt. This guide covers how that works inside the model, which tasks it handles, how to write a prompt that survives production, what it costs against few-shot, and why the default flipped in 2025 and 2026. As of September 08, 2026, reasoning-class models deliberate on their own, which has moved the bare instruction from fallback to default.
- 78.7%: MultiArith accuracy for text-davinci-002 once “Let’s think step by step” was appended to a zero-shot prompt, up from 17.7%, per Kojima et al., 2022.
- 20 of 25: tasks on which Google’s instruction-tuned 137-billion-parameter FLAN model beat zero-shot 175-billion-parameter GPT-3, per Wei et al., 2021.
- 400 million: image-and-caption pairs OpenAI’s CLIP trained on to match ResNet-50’s ImageNet accuracy in zero-shot mode, 2021.
- No gain: adding chain-of-thought exemplars left the Qwen2.5 models no better than zero-shot chain-of-thought on math reasoning, per an EMNLP 2025 Findings study.
What Is Zero Shot Prompting and How Does It Differ From Few-Shot Prompting?
Zero shot prompting means asking a large language model to perform a task from a natural-language instruction alone, with no worked examples in the prompt. Few-shot prompting adds one or more input/output pairs for the model to imitate. That is the entire difference: examples, or none.
Here is a zero shot prompt in its plainest form: “Classify the following customer review as positive, negative, or neutral: [review].” Nothing in that prompt shows the model what a “positive” verdict looks like. It has to work out the label meanings, the decision boundary, and the output format from the instruction plus whatever it absorbed in pretraining. A few-shot version of the same task would first show three labeled reviews, then hand over the fourth.
The three-way vocabulary comes from OpenAI. Brown et al.’s 2020 GPT-3 paper, “Language Models are Few-Shot Learners”, trained a 175-billion-parameter model and evaluated it under zero-shot, one-shot, and few-shot conditions using the prompt alone, with no gradient updates or fine-tuning. GPT-3 could translate, answer questions, do arithmetic, and unscramble words from instructions by themselves. On some benchmarks it came close to fine-tuned systems of the day. On others it trailed them badly, and the paper said so.
| Mode | What the prompt contains | What the model relies on | Where it fits |
|---|---|---|---|
| Zero-shot | Instruction only | Pretraining plus instruction tuning | Tasks with an obvious expected output |
| One-shot | Instruction plus one example | One pattern to mirror | Formats that are awkward to describe in words |
| Few-shot | Instruction plus several examples | Pattern matching across demonstrations | Ambiguous labels, strict tone or style |
One phrase causes real confusion: zero-shot learning. That older machine-learning term describes a classifier assigning inputs to categories it never saw labeled examples of, usually by matching against auxiliary descriptions of those categories. OpenAI’s CLIP model from 2021 is the textbook case. Trained on 400 million image-and-caption pairs pulled from the internet, it matched the original ResNet-50’s ImageNet accuracy in zero-shot mode without touching any of ImageNet’s 1.28 million labeled training images. The classes were described in words, and the model transferred.
Zero-shot prompting is the LLM-era version of that same idea, applied through an instruction instead of through model architecture or class embeddings. When someone says “zero shot” about a chat model, this is what they mean. The “zero” counts demonstrations inside the prompt. The model’s training data is a separate matter entirely.
How Zero Shot Prompting Works Inside a Large Language Model
What could a custom AI agent take off your plate?
We build production-grade AI systems that quietly handle the busywork, so your team can focus on the work that actually matters.
Zero shot prompting works because the model already learned the task during pretraining, and the instruction steers its next-token predictions toward the right part of that knowledge. The weights never change. What changes is which continuation looks most probable.
The mechanism has three stages, and the third is the one most explainers skip:
- Pretraining supplies the knowledge. Predicting the next token across enormous text corpora forces the model to internalize translations, summaries, labeled datasets, question-and-answer threads, and code.
- The instruction conditions the output. A prefix like “Translate the following to French:” makes French tokens the likely continuation. A prefix like “Return only JSON” shifts the distribution again.
- Instruction tuning makes the conditioning reliable. The base model gets fine-tuned on many tasks phrased as plain-language instructions before anyone types a prompt at deployment.
Why does stage three matter so much? A model trained only on next-token prediction is a text continuer. Ask it a question and a perfectly plausible continuation is a second question. What surprises people the first time they call a raw base model through an API is how often it does exactly that. GPT-3’s zero-shot scores trailed its few-shot scores partly for this reason.
Google’s FLAN work fixed that. Wei et al.’s 2021 paper “Finetuned Language Models Are Zero-Shot Learners” took a 137-billion-parameter model, fine-tuned it on more than 60 NLP tasks rewritten as natural-language templates, and then tested it on tasks it had never seen. The tuned model beat zero-shot GPT-3, a model with 175 billion parameters, on 20 of 25 evaluated tasks. It also beat few-shot GPT-3 on ANLI, RTE, BoolQ, AI2-ARC, OpenbookQA, and StoryCloze. A smaller model given instructions outperformed a larger model given examples.
Instruction tuning “substantially improves zero-shot performance on unseen tasks,” in the words of Wei et al.’s 2021 FLAN paper.
BigScience’s T0 model reached the same conclusion from a different direction. Sanh et al.’s multitask prompted training, presented as an ICLR 2022 spotlight, produced an encoder-decoder model whose zero-shot results often beat models up to 16 times its size.

The practical takeaway: zero-shot reliability is a training decision the vendor made before you ever opened a prompt box. The recipe stuck. It’s the reason a bare instruction works at all.
Which Tasks Zero Shot Prompting Handles Well and Which It Does Not
Zero shot prompting handles classification, extraction, summarization, translation, question answering, and simple code generation well, and it struggles with niche terminology, exact formatting or style, and long multi-step work. The dividing line is whether you can fully describe the desired output in a sentence or two.
Google’s Gemini documentation draws the same line. Its prompt design guidance, current as of September 2026, recommends a direct instruction with no examples “for straightforward tasks where the expected output is obvious,” and reserves examples for work that needs precise formatting or stylistic control. IBM’s explainer lists the same core set: text classification, information extraction, question answering, summarization, and code or text generation.
Where a single instruction usually suffices:
- Sentiment or category labels with clear, mutually exclusive options
- Pulling names, dates, amounts, or IDs out of unstructured text
- Summarizing a document to a stated length
- Translating between well-resourced languages
- Answering factual questions the model can answer from pretraining
- Generating a short, self-contained function in a mainstream language
IBM’s IT-ticket example shows both sides of the line. A single zero-shot instruction correctly assigned priority levels to support tickets. The few-shot version of the same task needed three sample tickets to reach comparable reliability on more ambiguous inputs. Anyone who has run a classifier like this knows the shape of it. The first ten tickets look fine. The trouble starts around ticket forty, when one message mentions both a cosmetic typo and a production outage, and the label has to pick.
Where zero-shot tends to break down:
- Specialized vocabulary. If the task and its terminology were thin in the pretraining data, no phrasing of the instruction fills the gap. Instruction tuning narrows this weakness without closing it.
- Tight format or tone requirements. Describing a house style in words is harder than showing it, which is why format control is the most common reason to add an example.
- Long multi-step problems. Chains of dependent reasoning are where instruction-only prompts have historically been weakest, though that picture has shifted with newer models.
Most of the prompt engineering that survives contact with production starts with an honest placement of the task in one of those two columns. Guess wrong in the optimistic direction and you’ll find out in the evaluation set.
How to Write a Zero Shot Prompt That Gets Reliable Results
A reliable zero shot prompt states the task’s intent, its constraints, and its exact output format in plain words, because the model has nothing else to work from. With no examples to infer from, every assumption you leave unstated becomes a coin flip at inference time.
Google’s Gemini documentation frames the same rule bluntly: ambiguity in the instruction is “your enemy,” and the prompt should spell out intent, constraints, and format. OpenAI’s developer guidance adds a structural rule. Put the static instructions first and the variable user content last. The reason is partly about cost, but it also reads better for the model, which sees the rules before the data.
Four things belong in every zero shot prompt:
- Role or context. Who is answering, and for whom. “You are a claims analyst at a health insurer” changes the vocabulary the model reaches for.
- Intent. The one thing the output must accomplish, stated as a verb: classify, extract, summarize, translate.
- Constraints. Length, allowed labels, what to do when the input doesn’t fit, whether to guess or abstain.
- Output format. A schema, a field list, or a literal template. “Return only JSON” without a schema produces JSON with different keys on different calls.
Here is the difference in practice.
Before:
“ Summarize this contract. [contract text] “
After:
“` You are a paralegal preparing a briefing note for a commercial lawyer. Summarize the contract below for a reader who has not seen it. Rules:
- 120 words or fewer
- Name the parties, the term, the termination clause, and any payment amounts
- If a required item is absent from the text, write “not stated” for that item
- Do not add legal advice
Output format (JSON, these keys only): {“parties”: “”, “term”: “”, “termination”: “”, “payments”: “”, “summary”: “”}
Contract: [contract text] “`
The second prompt is longer, yet it is still zero-shot. Nothing in it shows a finished summary. It describes one.
The mistake I see most often in production prompts has nothing to do with wording. A prompt works in the playground because the person testing it silently fills in the missing constraints in their head, then judges the output as “fine.” Ship that prompt to a queue of real inputs and the unstated rules stop being enforced. The abstain instruction (“write not stated”) is the single line that separates prompts that survive week two from prompts that get rewritten.
Two smaller habits pay off. Keep the instruction block identical across calls, and version it like code. And when you need to change behaviour, change one line and rerun the evaluation set, because a rewrite of three lines at once tells you nothing about which one moved the number.
Does Zero Shot Prompting Actually Save Money and Latency Compared to Few-Shot?
Yes, a zero shot prompt costs less and returns faster per call because it sends fewer input tokens, but the saving disappears if lower reliability forces retries or human review. The per-call arithmetic is easy. The per-task arithmetic is the one that matters.
Take an illustrative case, since the right numbers depend on your tokenizer and your examples. Suppose the instruction block runs 60 tokens and each worked example runs 90 tokens. A three-example few-shot prompt then carries 330 tokens of fixed prefix before the user’s input. The zero-shot version carries 60. That is 270 extra input tokens on every call, and at one million calls a month the difference is 270 million input tokens billed for context the model has, in principle, already learned.
| Cost factor | Zero-shot | Few-shot (three examples) |
|---|---|---|
| Fixed prefix per call (illustrative) | 60 tokens | 330 tokens |
| Extra tokens over 1 million calls | 0 | 270 million |
| Time before first output token | Shorter, less prefix to process | Longer, more prefix to process |
| Prompt-cache benefit | High, prefix is small and stable | High, if the examples never change |
| Hidden cost when accuracy slips | Retries, human review | Fewer retries on ambiguous inputs |

Prompt caching narrows the gap. OpenAI’s 2026 prompt engineering guidance recommends placing static instructions before variable content specifically so the fixed prefix can be cached across calls. A few-shot prompt whose examples never change is also a stable prefix, so its extra tokens are mostly cached tokens. The zero-shot advantage on raw token volume is real, but smaller than the naive count suggests once caching is on.
Latency follows the same logic. Less prefix means less to process before the first output token arrives, and for a chat product that delay is what the user feels.
Then the other side of the ledger. One retry doubles the cost of that call. One human reviewer looking at a misclassified ticket costs more than any prompt prefix ever will. If a zero-shot prompt misfires on ambiguous inputs and a few-shot prompt catches them, the few-shot prompt is the cheaper one over the month. The only way to know is to measure both on the same evaluation set and price the failures, and that measurement is the point of the exercise.
Why Zero Shot Prompts Fail and How to Diagnose the Failure
Zero shot prompts fail for four documented reasons: the model is sensitive to surface wording, the instruction leaves too much unspecified, the model fills gaps with speculation, or the task was thin in pretraining. Each failure leaves a different fingerprint in the outputs, which is what makes diagnosis possible.
Surface-form brittleness. A 2025 NeurIPS workshop paper, LLMs Show Surface-Form Brittleness Under Paraphrase Stress Tests, re-ran Mistral-7B-Instruct and Qwen2.5-7B-Instruct on paraphrased versions of ARC-Easy and ARC-Challenge questions. Accuracy fell by what the authors call a “non-trivial” margin even though the questions meant the same thing. Their conclusion: some benchmark scores reflect memorized surface patterns rather than task understanding. The study covered 7-billion-parameter instruction-tuned models, so how far the finding extends to frontier models is an open question.
Underspecification. A 2026 study of prompt sensitivity in text classification found that much of the run-to-run variance traced back to vague zero-shot instructions, and that fully specified prompts varied far less. Brittleness and vagueness compound each other. A loose prompt gives the model more room to react to wording.
Speculative generation. A 2025 survey in Frontiers in Artificial Intelligence on whether hallucinations trace to prompting strategy or model behaviour identifies vague, ungrounded instructions as a driver of speculative output. Zero-shot prompts have no examples to anchor against, so a question the model can’t answer becomes an invitation to invent. Work on “null-shot” prompting from 2024 pushed this further: a prompt that references material which doesn’t exist can pull fabricated content out of the model on demand. Better phrasing reduces the risk. It does not remove it.
Pretraining coverage. If your domain’s terminology was rare in the training corpus, no instruction supplies the missing knowledge. Instruction tuning narrows this gap. Retrieval, of the kind a RAG pipeline provides, closes more of it by putting the missing facts in the context window.
A diagnostic map from symptom to fix:
| Symptom in the outputs | Likely cause | First fix |
|---|---|---|
| Same input, different labels across runs | Underspecified instruction | Add explicit label definitions and an abstain rule |
| Accuracy drops when you reword the prompt | Surface-form brittleness | Test three paraphrases, keep the most stable one, pin it |
| Confident claims absent from the input | Speculative generation | Instruct the model to quote or cite the source span, or ground with retrieval |
| Wrong on niche terms, right on everything else | Pretraining coverage gap | Supply a glossary in the prompt, or add one example per hard term |
| Right answer, wrong shape | Format underspecified | Give a literal schema, then consider one example |
The order of the fixes matters. Respecify first, because it costs nothing. Add a single example second. Switch technique last, once you have an evaluation set that shows the zero-shot version has stopped improving.
When to Choose Zero Shot Prompting Over Few-Shot, Chain-of-Thought, or Fine-Tuning
Choose zero shot prompting first whenever the output can be fully described in words, add examples when format or tone drifts, add “think step by step” for multi-step reasoning on older models, and fine-tune only when a niche domain resists every prompt. That order runs from cheapest to most expensive, and each step should be earned by a measured shortfall in the one before it.
The four options differ on four axes:
| Technique | Accuracy on ambiguous inputs | Format and tone control | Setup effort | Data needed |
|---|---|---|---|---|
| Zero-shot | Good on obvious tasks, weaker on edge cases | Depends entirely on the instruction | Minutes | None |
| Few-shot | Better on ambiguous labels | Strongest of the prompt-only options | Hours to pick and test examples | A handful of labeled examples |
| Zero-shot chain-of-thought | Large gains on arithmetic and multi-step problems | Same as zero-shot, plus longer outputs | One extra line | None |
| Fine-tuning | Best on specialized vocabulary | Baked into the weights | Days, plus a training pipeline | Hundreds to thousands of labeled records |
The chain-of-thought row deserves its own numbers. Kojima et al.’s 2022 NeurIPS paper showed that appending a single phrase, “Let’s think step by step,” with no demonstrations at all, raised text-davinci-002’s accuracy on MultiArith from 17.7% to 78.7% and on GSM8K from 10.4% to 40.7%. PaLM-540B showed similar gains. One sentence did what a set of worked examples had been thought necessary to do.

The vendors disagree on the default, and that disagreement is useful information. OpenAI’s developer guidance says to try zero-shot before reaching for few-shot with its current models. Anthropic’s Claude prompting best practices, current as of September 2026, still call examples “one of the most reliable ways to steer Claude’s output format, tone, and structure,” while advising developers to start with zero-shot or one-shot and add examples only if quality falls short. Read together, the two positions agree on the starting point and differ on how quickly to leave it.
My own rule of thumb after enough of these decisions: examples fix shape, instructions fix meaning. If the model gets the answer right in the wrong format, one example usually settles it. If the model gets the answer wrong, another example rarely helps, and the fix is a sharper instruction, a reasoning cue, or retrieval.
Fine-tuning sits last for a reason. It is the only option that requires a labeled dataset and a training run, and it is the only option that genuinely closes a pretraining coverage gap on specialized terminology. For a healthcare or financial-services workload whose vocabulary was rare in the training corpus, fine-tuning an LLM on in-domain records can outperform any prompt. It is also the option you cannot undo with a text edit. Exhaust the prompt-only ladder first, keep the evaluation set from those runs, and let the metrics make the case.
How Zero Shot Prompting Changed With Reasoning Models and Long-Context LLMs
Zero shot prompting became the default rather than the fallback between 2025 and 2026, because reasoning models now perform step-by-step thinking on their own and strong models have started ignoring worked examples in favor of the instruction. Two findings drove the shift.
The first came from an EMNLP 2025 Findings paper, Revisiting Chain-of-Thought Prompting: Zero-shot Can Be Stronger than Few-shot, which tested the Qwen2.5 series on mathematical reasoning. Adding traditional chain-of-thought exemplars did not improve accuracy over a zero-shot chain-of-thought prompt. That held even when the exemplars were generated by stronger models, Qwen2.5-Max and DeepSeek-R1.
“Models tend to ignore the exemplars and focus primarily on the instructions,” the authors reported in 2025.
Their reading is that exemplars now mostly shape output formatting. The reasoning itself comes from the instruction and the model.
The second shift is architectural. OpenAI’s o1 and o3-class models and Anthropic’s extended-thinking Claude models run built-in multi-step reasoning before answering. The “Let’s think step by step” cue that Kojima et al. popularized in 2022 was a workaround for models that would otherwise jump straight to an answer. On a model that already deliberates, the cue is redundant, and OpenAI’s developer documentation now says as much.
What has not changed is the disagreement about where examples still earn their place. Google Cloud’s Vertex AI ships a zero-shot prompt optimizer and a separate few-shot prompt optimizer as distinct modes, current as of September 2026, and Anthropic keeps examples in its recommended toolkit for format and tone. The field has moved the default, and kept the alternative.
Three consequences for anyone writing prompts in 2026:
- The prompt budget goes to rules, glossaries, and schemas instead of demonstrations.
- Reasoning cues belong in prompts for older or smaller models, and can be dropped for reasoning-class models.
- Examples are still the fastest fix for output shape, and the weakest fix for output correctness.
The Qwen2.5 finding covers mathematical reasoning on one model family. Whether it generalizes to classification, extraction, and long-form generation across other vendors is still being tested, and the honest answer is that it probably varies.
Curious what AI could do for your business?
No jargon and no hard sell. Just a friendly look at where AI fits, and where it doesn't.
Frequently Asked Questions About Zero Shot Prompting
What does zero shot mean?
Zero shot means the model receives no demonstrations of the task before performing it. The “shot” count is the number of worked examples in the prompt: zero, one, or a few. It says nothing about the model’s training data, which always contains related material.
What is the difference between zero-shot learning and zero shot prompting?
Zero-shot learning is the older machine-learning term for a classifier that labels inputs from categories it never saw labeled examples of, typically by matching against descriptions of those categories, as OpenAI’s CLIP did for images in 2021. Zero shot prompting is the same idea applied to a language model through a plain-language instruction. The first is a property of a model. The second is a way of using one.
What is zero shot inference?
Zero shot inference is a single model call in which the prompt contains only an instruction and the input, with no examples, and the model produces its answer from pretraining and instruction tuning alone. No weights change during the call. Every zero shot prompt produces a zero shot inference.
What is an example of a zero shot prompt?
“Extract the invoice number, total amount, and due date from the text below. Return JSON with the keys invoice_number, total, and due_date. Write null for any field that is missing.” That prompt describes the task and the output shape without showing a finished answer, which is what makes it zero-shot.
Is zero shot better than few shot prompting?
Neither wins everywhere. OpenAI’s guidance in 2026 recommends trying zero-shot first, and an EMNLP 2025 study found that chain-of-thought exemplars no longer improved the Qwen2.5 models on math reasoning. Anthropic’s documentation in 2026 still recommends examples for steering format and tone. Zero-shot is the better starting point, and few-shot remains the better fix for output shape.
Can zero shot prompting hallucinate?
Yes. A 2025 survey in Frontiers in Artificial Intelligence identifies vague, ungrounded instructions as a driver of speculative generation, and zero shot prompts have no examples to anchor against. An explicit abstain rule (“write not stated if the text does not say”) and retrieval of source material both reduce the risk without eliminating it.
Where to Start With Zero Shot Prompting in Your Own Workflow
Start every new LLM task zero-shot, measure it, and escalate only when the numbers say you must. The sequence takes an afternoon:
- Write the instruction with role, intent, constraints, an abstain rule, and a literal output schema.
- Build an evaluation set of 50 to 100 real inputs, including the ambiguous ones that show up around ticket forty.
- Run three paraphrases of the same prompt and record the spread. A wide spread means respecify before anything else.
- Add one example only when the failures are about shape. Add a reasoning cue only on a model that does not deliberate on its own.
- Fine-tune last, and only with the evaluation set from steps two through four as proof.
Treat the prompt as an attack surface too. NIST’s 2024 Generative AI Profile (NIST-AI-600-1) names prompt injection as a risk for any prompt-driven system, and a zero shot prompt that reads user content is exactly that. Pin the instruction, version it, and test it against hostile inputs before it meets a production queue.






