Artificial Intelligence

Few-Shot Learning

A technique where a model learns to perform a task from only a few examples provided in the prompt. Instead of training on thousands of examples, the model generalizes from just 2-5 demonstrations.

Why It Matters

Few-shot learning makes AI accessible without massive datasets or fine-tuning. It enables rapid prototyping and adaptation to new tasks with minimal effort.

Example

Showing an LLM three examples of converting casual text to formal text, then asking it to convert a fourth — the model learns the pattern from just those examples.

Think of it like...

Like a quick learner who watches a chef make a dish three times and can then reproduce it — they grasp the pattern quickly from minimal demonstration.

Related Terms