Skip to content
Back to the AI glossary

Glossary · AI concepts & terminology

Zero-shot and few-shot learning

In short

A model solves a task with no (zero-shot) or only a few (few-shot) examples in the prompt, without being retrained.

Reference: General AI knowledge

What it means

Large language models can solve tasks they were never specifically trained for. In the zero-shot approach the prompt only describes the task, for example: assign this enquiry to one of the departments sales, service or accounting. In the few-shot approach a few solved examples are added to the prompt. Brown and colleagues showed in 2020 that large models improve markedly through such examples in context alone, without their weights being changed. They called this in-context learning.

The practical difference from classic supervised learning is considerable. Instead of labelling thousands of examples and training a model, you write a good instruction and a few examples. That lowers the entry barrier and shifts quality assurance. Whether the model solves the task reliably only becomes clear after a test, and performance can change with every new model version the provider releases.

In practice and in the audit

For many office tasks, few-shot is entirely sufficient: pre-sorting enquiries, reading data from delivery notes, bringing texts into a set tone. Choose the examples in the prompt carefully. They should show typical cases and borderline cases and contain no personal data. Measure the hit rate on a sample of real cases that are not in the prompt. ISO/IEC 42001 requires in A.6.2.4 that verification and validation are defined, and that also applies to a solution consisting only of a prompt and examples.

If performance is not sufficient, the next step is usually a better knowledge base via RAG or fine-tuning with your own data. ISO/IEC 23053:2022 describes transfer learning in 7.7, where knowledge from one task is used for another, with fine-tuning as a well-known example. Few-shot prompting manages without such further training. Record which model version was tested and repeat the test with every change.

References in standards and law

I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.

  • ISO/IEC 42001:2023, A.6.2.4Defining verification and validation, including for solutions made of prompt and examples.
  • ISO/IEC 23053:2022, 7.7Transfer learning and fine-tuning as a way to carry knowledge over to new tasks.
  • ISO/IEC 42001:2023, A.6.2.6Operation and monitoring, including when the provider changes the model.

Frequently asked questions

Does the model learn permanently from my examples in the prompt?

No. The examples only take effect within the request in question; the model’s weights do not change. Whether the provider later uses your inputs for its own training is a separate question and is set out in its contract terms.

Related terms

Further reading in the insights

Matching service

Examples and templates for your department

In the hands-on training your team develops prompts with suitable examples for its tasks and learns to check the hit rate on real cases.

To hands-on AI training

Author: Lars Zimmermann

Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.