What is meta-learning?

Meta-learning is a machine learning approach in which a model gains experience across many tasks rather than one and learns to adapt quickly to new tasks from few examples.

It is also called learning to learn. Transfer learning moves knowledge from one task to another, while meta-learning learns how to adapt fast across tasks. Few-shot learning is often the problem it tries to solve.

Topic
Machine learning, models and training
Also known as
Learning to learn

How meta-learning works

  1. Training consists of many small tasks, each split into a support set of a few examples and a query set.
  2. In the inner loop the model adapts to a task from its support set with a few gradient steps or by comparing examples.
  3. In the outer loop that adaptation's success on the query set is measured and the starting weights or adaptation strategy are updated.
  4. The result is a starting point or learning rule that performs well on a new task from only a few examples.

In more detail

Three core paradigms: optimisation-, metric- and model-based

Meta-learning methods generally fall into three families: optimisation-based (such as MAML and Reptile, which learn an adaptable weight initialisation), metric-based (such as Siamese and Prototypical Networks, which learn an embedding space where classes separate by distance without gradient updates) and model-based or amortised approaches (which encode task adaptation inside a recurrent or transformer memory). Each family trades off flexibility against training memory and second-order gradient cost.

N-way K-shot episodes and meta-overfitting

Episodic meta-learning is commonly framed as N-way K-shot classification (for example, 5 classes with 1 or 5 support examples each) and assumes test tasks come from the same task distribution as meta-training. If a domain experiences severe distribution shift or lacks enough diverse training tasks, meta-overfitting occurs and simple pre-trained feature extractors with linear probing often match or beat complex meta-learners.

Where explicit meta-learning still wins

In current enterprise stacks, explicit episodic meta-learning is rarely used for general text tasks, where foundation-model in-context learning, retrieval-augmented examples and LoRA-style PEFT dominate. However, explicit metric-based and optimisation-based meta-learning remains practical in edge vision, industrial anomaly detection, audio and sensor signals and ultra-low-latency compact models where hosting a large foundation model is infeasible.

Commonly confused terms

TermHow it differs
Multi-task learningMulti-task learning trains a single model to perform well simultaneously on a fixed set of known tasks, whereas meta-learning trains on many tasks specifically to maximise fast adaptation to unseen future tasks.

Why meta-learning matters for on-premises AI

If new, sparsely labelled classification tasks keep arising in-house, such as new product categories or fault types, meta-learning allows fast adaptation without training each from scratch. Large language models grasping a new task from examples in the prompt, in-context learning, is read as implicit meta-learning arising from broad pre-training; for many enterprise tasks that route is more practical than explicit meta-learning.

ON-PREMISES EXAMPLE

A hospital uses a meta-learned model to classify rare findings in images from different scanners; when a new scanner is added, a few labelled examples adapt the model to it.

Common questions

How does meta-learning differ from transfer learning?

Transfer learning carries what was learned on one task to another. Meta-learning learns from many tasks how to adapt quickly to new ones.

Do large language models do meta-learning?

In-context learning is often read as implicit meta-learning: the model grasps a new task from a few examples in the prompt without changing its weights.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.