Few-shot / Zero-shot Learning
Few-shot learning is the ability of a model to perform a new task given only a handful of examples at inference time; zero-shot learning is the same idea with no examples โ the model relies entirely on its pretraining and the natural-language instruction.
Full definition
GPT-3 popularized in-context few-shot learning: rather than fine-tuning, you provide 1-10 examples in the prompt and the model infers the pattern. Modern frontier LLMs are often "good enough" zero-shot, but few-shot prompting still adds 5-20 percentage points of accuracy on harder tasks. Both are forms of in-context learning, where the model uses its frozen weights but adapts behavior based on the context window.
Why it matters
Few-shot and zero-shot learning are the reason LLM adoption is fast. New tasks ship in hours, not the weeks or months a fine-tuning project would require. Engineering organizations should default to prompting first, fine-tune only when data and stability requirements justify it.
Example
A product team builds a sentiment classifier in 30 minutes by prompting GPT-4o with 3 example reviews per class โ no labels, no training, no MLOps pipeline.
Related terms
- Prompt EngineeringPrompt engineering is the practice of designing the inputs to a language model โ instructions, examples, role definitions, output formats, and constraints โ to reliably produce a desired output without changing the model's weights.
- Fine-tuningFine-tuning is the process of further training a pretrained model on a smaller, task-specific dataset so it specializes in a particular style, domain, or behavior โ without retraining from scratch.
- Transfer LearningTransfer learning is the practice of using a model trained on one task as the starting point for a related task, dramatically reducing the data and compute required to reach high accuracy on the new task.
- Large Language Model (LLM)A Large Language Model (LLM) is a deep neural network โ almost always a transformer โ trained on hundreds of billions to trillions of words to predict the next token, and to generate, summarize, translate, or reason over text.
Source & further reading
Primary source: Brown et al. โ "Language Models are Few-Shot Learners" (GPT-3 paper) (2020).
Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/ko/glossary/few-shot-learning/.