Back to Glossary
techniques

Few-Shot Learning

AI ability to learn new tasks from just a handful of examples.

Share:

Definition

Few-shot learning allows models to adapt to new tasks with minimal training examples, typically 2-10 examples.

In-Context Learning: Modern LLMs perform few-shot learning by including examples in the prompt:

``` Translate English to French: cat -> chat dog -> chien house -> ? ```

Advantages: - No fine-tuning required - Quick adaptation - Lower data requirements

Techniques: - Prompt engineering with examples - Meta-learning approaches - Prototype-based methods

Applications: - Rapid prototyping - Low-resource languages - Specialized classifications

Examples

Showing an LLM 3 examples of your coding style before asking it to write new code.

Want more AI knowledge?

Get bite-sized AI concepts delivered to your inbox.

Free intelligence briefs. No spam, unsubscribe anytime.

Discussion