AI Dictionary of Terms

Few-Shot Learning

A machine learning approach where models learn to perform tasks from only a handful of examples (typically 1-10), rather than requiring thousands or millions of training samples.

The Simple Version

Think about how a child learns what a “dog” is. You don’t need to show them a thousand different dogs. After seeing just two or three dogs — maybe a golden retriever, a poodle, and a chihuahua — the child understands the concept well enough to recognize other dogs they’ve never seen before.

That’s few-shot learning. Instead of needing massive amounts of data to learn something new, the AI can learn from just a few examples. You show it 2-3 examples of what you want, and it figures out the pattern.

For language AI, this means you can give it a few examples of how to format something, translate a phrase, or classify text, and it will understand the task and apply it to new inputs — all without any special training or reprogramming.

Detailed Explanation

Few-shot learning leverages a model’s pre-trained knowledge to generalize from minimal examples. In the context of large language models (LLMs), this is often called in-context learning — the model learns the task from examples provided in the prompt itself, without any gradient updates or parameter changes.

Approaches:

How it works in LLMs:

  1. Examples are formatted as input-output pairs in the prompt
  2. The model identifies the pattern from these examples
  3. When given a new input, it applies the learned pattern to generate the output
  4. No model weights are updated — the “learning” happens purely through context

Key factors for success:

Key Characteristics

Business Context

Few-shot learning is transformative for enterprises because it dramatically reduces the barrier to deploying AI for specific tasks:

Use cases:

Business advantages:

When to use few-shot vs. fine-tuning:

Real-World Analogy

Teaching a new employee a specific task by showing them 2-3 examples of how it’s done, rather than sending them to a week-long training course. They watch the examples, understand the pattern, and can immediately apply it to new situations.

Example Prompt

Scenario: You want an AI to classify customer support tickets by urgency.

The Prompt:

Classify the urgency of these customer support tickets as High, Medium, or Low.

Example 1: Ticket: “My order hasn’t arrived and I need it for tomorrow’s event.” Urgency: High

Example 2: Ticket: “I’d like to change my shipping address for an order placed last week.” Urgency: Medium

Example 3: Ticket: “Can you tell me more about your loyalty program?” Urgency: Low

Now classify this ticket: Ticket: “The website keeps crashing when I try to checkout.” Urgency:

The AI’s Response: High

Why this works:

To add more examples: Simply add Example 4, Example 5, etc. Most models handle 3-10 examples well.

Common Misconceptions

Sources & Further Reading