Lably
Skip to content

Zero-shot learning

Problem setup in machine learning

  • 4 min read
  • 4 chapters

Related on Lably

Through Machine learning, Computer vision and Natural language processing

Zero-shot methods generally work by associating observed and non-observed classes through auxiliary information that encodes observable distinguishing properties of objects. For example, given a set of images of animals to be classified, along with auxiliary textual descriptions of what animals look like, a model which has been trained to recognize horses, but has never been given a zebra, can still recognize a zebra when it also knows that zebras look like striped horses. This problem is widely studied in computer vision, natural language processing, and machine perception.

Background and history

The first paper on zero-shot learning in natural language processing appeared in a 2008 paper by Chang, Ratinov, Roth, and Srikumar, at the AAAI'08, but the name given to the learning paradigm there was dataless classification. The first paper on zero-shot learning in computer vision appeared at the same conference, under the name zero-data learning. The term zero-shot learning itself first appeared in the literature in a 2009 paper from Palatucci, Hinton, Pomerleau, and Mitchell at NIPS'09. This terminology was repeated later in another computer vision paper and the term zero-shot learning caught on, as a take-off on one-shot learning that was introduced in computer vision years earlier.

In computer vision, zero-shot learning models learned parameters for seen classes along with their class representations and rely on representational similarity among class labels so that, during inference, instances can be classified into new classes.

In natural language processing, the key technical direction developed builds on the ability to "understand the labels"—represent the labels in the same semantic space as that of the documents to be classified. This supports the classification of a single example without observing any annotated data, the purest form of zero-shot classification. The original paper made use of the Explicit Semantic Analysis (ESA) representation but later papers made use of other representations, including dense representations. This approach was also extended to multilingual domains, fine entity typing and other problems. Moreover, beyond relying solely on representations, the computational approach has been extended to depend on transfer from other tasks, such as textual entailment and question answering.

The original paper also points out that, beyond the ability to classify a single example, when a collection of examples is given, with the assumption that they come from the same distribution, it is possible to bootstrap the performance in a semi-supervised like manner (or transductive learning).

Unlike standard generalization in machine learning, where classifiers are expected to correctly classify new samples to classes they have already observed during training, in zero-shot learning, no samples from the classes have been given during training the classifier. It can therefore be viewed as an extreme case of domain adaptation.

Since 2020, the term has also been used to refer to large pre-trained models that accomplish tasks that they have never seen in their training data. In computer vision, CLIP has been trained on 400 million image-text pairs, and is able to classify images based on natural language prompts into specific categories while having the same accuracy as the supervised ResNet-50 model in ImageNet without seeing any of its training data. In NLP, GPT-3 was tested in zero-shot, one-shot and few-shot scenarios, where the model completes a task based on the description provided in a text prompt without updating the model parameters.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication