AI Glossary Term

What does “Zero-Shot Learning” mean?

Definition

Solving tasks without task-specific examples by relying on prior general knowledge.

How Zero-Shot Learning works

Diagram for Zero-Shot Learning, steps in order: Task described in words, no examples; then Model uses general knowledge; then Answer.Task described in words, no examplesModel uses general knowledgeAnswer

Example

You ask a language model, 'Classify this review as positive or negative', with no examples. It does it correctly because its pre-training already covered similar tasks.

Why it matters

It lets you try new tasks quickly. Accuracy is usually lower than with examples or fine-tuning, so verify the results.

Common questions

Zero-shot vs few-shot?

Zero-shot gives no examples; few-shot includes a handful in the prompt.

How does it work?

Skills and knowledge learned during pre-training generalize to new instructions.

When does it fail?

On unusual tasks or ambiguous instructions, where examples would clarify what is wanted.

Learn more in our free guides

Test yourself

See also