Notes

Zero-Shot Prompting

Ask an assistant to "translate this into Portuguese" and it does, without being shown a single translated pair first. That is zero-shot prompting: the task is stated in the instruction and no worked examples are supplied.

Why it works at all

Pretraining has already shown the model what a summary, a translation or a sentiment label looks like; instruction tuning then taught it to treat a request as a request rather than as text to continue. The prompt therefore carries only the task description, which has concrete consequences:

  • the context stays short, leaving room for the actual document and cutting cost per call;
  • nothing anchors the output format, so a model left to choose returns prose where you wanted a label, or restructures its JSON between calls;
  • local conventions — your six in-house ticket categories, your house date format — are invisible unless the instruction spells them out.
Getting more from it

Most zero-shot failures are instruction failures. Name the output format, define each label, say what to do when the input does not fit the task, and the gap to few-shot narrows sharply. Appending "let's think step by step" recovers much of chain-of-thought's gain on arithmetic and logic with no demonstrations at all, and the structured-output modes of current APIs enforce the schema a prompt can only request. Treat zero-shot as the baseline: run it first, keep it if your evaluation holds, and spend tokens on examples only where it demonstrably breaks. The same instruction transfers unevenly between models, so re-run that baseline after every model swap.

Zero-shot prompting states a task in the instruction alone, with no worked examples in the context. It relies on pretraining plus instruction tuning to supply the task format, and keeps prompts short and cheap — at the cost of weaker control over output shape and no implicit way to convey local conventions. It is the baseline every prompt should be measured against before paying tokens for few-shot examples.

Zero-shot prompting means simply asking. You tell the assistant what you want — "summarise this in three bullet points" — and give it no sample answers to copy. It can usually comply, because it has read enough summaries to know what one is, and because it was later trained to follow instructions rather than just carry on the text. The trade-off is control. With nothing to imitate, the assistant decides the details itself, so the shape of the answer wanders from one attempt to the next. The cure is a clearer request: say exactly what form you want, and most of the wandering stops.