AI Glossary Term

What does “Few-Shot Learning” mean?

Definition

Learning or adapting behavior from only a small number of examples.

How Few-Shot Learning works

Diagram for Few-Shot Learning, steps in order: Prompt with 2-3 worked examples; then New input in the same format; then Model follows the pattern; then Output in the same format.Prompt with 2-3 worked examplesNew input in the same formatModel follows the patternOutput in the same format

Example

You show a model two product reviews labeled with sentiment, then paste a third review with no label. The model infers the pattern and labels it, without any retraining.

Why it matters

Few-shot prompting lets people adapt a model quickly with a handful of examples rather than a large labeled dataset.

Common questions

How is few-shot different from fine-tuning?

Few-shot gives examples in the prompt at run time and changes no weights. Fine-tuning updates the model's weights.

How many examples count as few?

Usually between about two and a dozen.

Does the choice of examples matter?

Yes. Clear, varied, correctly labeled examples tend to help, and sloppy ones can mislead the model.

Learn more in our free guides

Test yourself

See also