Techniques & methods

Zero-Shot Learning

Zero-shot learning is the ability of a machine learning model to correctly handle tasks or classify inputs from categories it was never shown during training, by leveraging learned semantic relationships and broad pretrained knowledge.

Zero-shot learning (ZSL) is a machine learning paradigm in which a model successfully handles tasks or classifies items belonging to categories it never encountered during training. Rather than memorizing specific class examples, the model exploits structural knowledge — semantic descriptions, attribute vectors, or language embeddings — to bridge the gap between seen and unseen categories.

ZSL methods typically represent both training classes and unseen target classes as points in a shared semantic embedding space. A visual classifier maps an image to this space and identifies the nearest class representation, even if that class had zero training images. Large pretrained language models achieve zero-shot performance through a different route: pretraining on massive text corpora encodes broad world knowledge, and a well-crafted prompt alone is sufficient to elicit correct behavior on novel tasks without any additional examples.

The practical value of ZSL is substantial in domains where labeled data is scarce or expensive — medical imaging, rare species identification, or low-resource language processing. For enterprises deploying general-purpose AI, zero-shot capability reduces the cost and time required to handle new task types by eliminating the need for curated training sets for each one.

As of 2026, frontier models such as GPT-4o (OpenAI), Claude 3.5 and 3.7 (Anthropic), and Gemini 1.5 and 2.0 (Google) exhibit strong zero-shot performance across a broad range of benchmarks, often matching or exceeding specialized fine-tuned models from just a few years earlier. Multimodal zero-shot transfer — using text descriptions to classify images or audio — has become a standard evaluation axis, exemplified by CLIP (OpenAI, 2021) and its numerous successors.

Example

A content moderation system trained only on categories like 'spam' and 'hate speech' correctly classifies a new category, 'medical misinformation,' by providing a textual description of that category at inference time, with no additional labeled examples required.

Related terms

← Glossary