How does zero-shot learning work?
The term spread through the language-model world with the 2020 paper that introduced GPT-3. Brown and colleagues tested the model in three settings. In the zero-shot setting the model sees no demonstrations at all, only a natural-language instruction describing the task [1]. One-shot adds a single example to that instruction, and few-shot adds several. In none of them are the model's weights updated; the task is specified entirely through text [1].
A concrete case: "Translate this sentence into French: The cat is asleep." There is no example translation in the prompt, only a description of the job. If the model produces a correct translation, it has done the task zero-shot.
Is zero-shot learning only for language models?
No. OpenAI's CLIP learns from images paired with the text that describes them. After training it can refer to visual concepts named in natural language, which lets it transfer to a new classification task without training on that task's dataset [2]. The authors reported that CLIP matched the accuracy of the original ResNet-50 on ImageNet zero-shot, without using any of the 1.28 million labelled training images ResNet-50 had been trained on [2].
How is it different from few-shot learning?
The difference is the number of examples in the prompt. The GPT-3 paper's main finding was that few-shot performance rose sharply as models got larger, in some tasks reaching fine-tuned systems [1]. A common workflow is to try a zero-shot prompt first and add a handful of examples if the output format or accuracy falls short.