Zero-Shot Prompting

Category: Generative AI / LLM

Asking a language model to perform a task using only a natural language instruction, without providing any examples.

Full Explanation

Zero-shot prompting involves giving a language model a task description or instruction without any demonstration examples and relying on its pre-trained knowledge to produce the correct output. For example, simply asking "Classify the sentiment of this review as positive or negative: [text]" without showing any labeled examples. Zero-shot performance is a key measure of how well a model has generalized from its training data. Larger, more capable models tend to perform significantly better in zero-shot settings. The technique is attractive because it requires no task-specific data and is quick to implement, but it may produce less reliable results compared to few-shot prompting for complex or specialized tasks. Instruction-tuned models are specifically optimized for zero-shot task performance. Zero-shot capabilities have improved dramatically with each generation of language models.

Related Terms

More in Generative AI / LLM

Explore More