What is the difference between zero-shot and few-shot prompting?
Show the answer and explanation
Correct answer: C, Zero-shot gives only the task instruction; few-shot also adds a few worked input–output examples to the prompt, with no weight updates.
Explanation Prompt Engineering
Zero-shot prompting gives the model only the task description ("Classify this review as positive or negative"). Few-shot prompting adds a small number of worked examples (input → output pairs) before the real input. In both cases the weights stay frozen: the examples act only through the context. The terms were popularised by the GPT-3 paper (Brown et al., 2020).
Why the other descriptions are wrong:
- Few-shot does not update weights; training on labelled examples is fine-tuning, a separate step.
- Sampling several answers and taking the majority is self-consistency, not few-shot prompting.
- A zero-shot prompt still has an instruction; "shot" counts examples, not sentences of instruction.
Few-shot examples can help pin down the output format, label conventions and edge cases, at the cost of extra input tokens.
Interview tip: say "start zero-shot, add a few examples when the format or labels are ambiguous, and measure the gain on an eval set".