Few-Shot Learning
Learning from a handful. Few-shot learning lets a model handle a new task after seeing only a few examples, rather than thousands.
- Term
- Few-shot learning
- Is
- Generalizing from a few examples
- Common in
- Large language model prompting
- Contrast
- Zero-shot learning and fine-tuning
Parts of speech & senses
- Few-shot learning is a machine learning technique in which a model generalizes to a new task from only a few labeled examples, most familiar today as giving a large language model a handful of examples in its prompt. "A few-shot prompt with three examples fixed the model's formatting."
What few-shot learning is
Few-shot learning is the ability of a model to take on a new task after seeing only a small number of examples — a few, rather than the thousands a traditional model would need. You show the model the pattern with a handful of demonstrations, and it generalizes to new cases of the same kind. In modern practice, the most common form lives inside prompts to a large language model (LLM): you write a few input-and-output examples directly in the prompt, and the model imitates the pattern on the next input. Ask it to classify support tickets, and instead of describing the rules, you show three labeled tickets and let it label the fourth. The examples teach the task on the spot, without retraining anything.
What makes this work is that a large pretrained model already carries broad knowledge from its training; the few examples do not teach it language or facts from scratch — they point that latent capability at your specific task and format. This is why few-shot prompting is so useful in marketing and operations: you can steer a model to write in a house style, extract fields from messy text, or sort feedback into categories just by showing it a few well-chosen examples. The quality of those examples matters enormously. A few clear, representative, correctly formatted demonstrations can transform the output; a few sloppy or unrepresentative ones can mislead the model as confidently as good ones guide it.
Few-shot versus zero-shot and fine-tuning
Few-shot learning sits between two neighbors. Zero-shot learning gives the model no examples at all — just an instruction — and relies entirely on what it already knows, as in "Classify this ticket as billing, technical, or other." Few-shot adds a handful of worked examples to that instruction, showing rather than only telling. The difference is often decisive: a task the model fumbles zero-shot, because it guesses the wrong format or category boundaries, it frequently nails once it sees two or three examples of exactly what you want. So the practical rule is to try zero-shot first for its simplicity, and reach for few-shot when the model needs to see the pattern, not just hear it described.
Fine-tuning is the heavier neighbor on the other side. Where few-shot learning teaches the task at inference time through examples in the prompt and changes nothing about the model, fine-tuning actually retrains the model's weights on many labeled examples, permanently adapting it to the task. Fine-tuning can outperform few-shot when you have lots of data and a stable, high-volume task, because the knowledge is baked in and costs no prompt space each time. But it is slower, costlier, and less flexible — every change means retraining. Few-shot learning is the fast, cheap, adjustable option: no training run, just examples you can edit in seconds. The choice is a trade-off between the convenience of few-shot and the depth and efficiency of a fine-tuned model.
Using few-shot learning well
Using few-shot learning well is mostly about choosing examples. Pick demonstrations that are clear, correct, and representative of the real range of inputs, including the tricky edge cases you want handled a certain way. Match the format exactly to what you want back, because the model copies structure as faithfully as content. Order and phrasing matter more than people expect, so it is worth testing variations. Keep the set small but sufficient — enough to show the pattern, not so many that they crowd the prompt or contradict each other. And start simple: try zero-shot, and add examples only where the model actually needs them, since every example costs space and attention.
The traps are unrepresentative or incorrect examples that teach the wrong pattern, examples whose formats quietly conflict so the model cannot tell what you want, and cramming in so many that the prompt bloats without improving results. Another is reaching for few-shot when the task really needs fine-tuning — high volume, lots of data, a fixed target — or, conversely, building an expensive fine-tune for something a few examples would have solved. The subtlest trap is trusting the fluent output too much: few-shot learning makes a model imitate a pattern convincingly, which is not the same as getting the answer right, so the results still need checking. Used well, it is the fastest way to steer a capable model; used badly, it confidently learns your mistakes.
Synonyms & antonyms
Synonyms
Antonyms
Origin & history
Few-shot learning names the small number of examples, or shots, a model is given; the term gained prominence with large language models that learn tasks from prompt examples.
Etymology: source.
Usage trends
Search interest for this term over the last five years:
Common questions
- What is few-shot learning?
- A machine learning approach where a model generalizes to a new task from only a few examples. Today it most often means placing a handful of input-output examples in a large language model's prompt so the model imitates the pattern on new inputs.
- How is few-shot different from zero-shot learning?
- Zero-shot gives the model only an instruction and no examples. Few-shot adds a handful of worked examples, showing the pattern rather than just describing it. Tasks a model fumbles zero-shot it often handles well once it sees two or three examples.
- When should you fine-tune instead of using few-shot?
- Fine-tuning fits high-volume, stable tasks with lots of labeled data, since it retrains the model's weights and needs no examples in each prompt. Few-shot fits fast, flexible, lower-volume work where you want to adjust behavior instantly without retraining.
Resources & people to follow
- referenceRGM analysis — definitions, senses, and usage verified per term
Curated, non-competitor resources verified per term.
Related training
Disciplines
Areas of marketing where few-shot learning is a core concern: