LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Training & Optimization

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.

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/sv/glossary/few-shot-learning/.