# Generalizing from a Few Examples: A Survey on Few-Shot Learning

Few-shot learning methods fall into groups by where they use prior knowledge

Yaqing Wang, Quanming Yao, James Kwok, Lionel M. Ni · arXiv · 2019-4-10

- **Problem** With only a few labeled examples, the empirical risk minimizer overfits and becomes unreliable, which is the core issue of few-shot learning.
- **Method** The authors sort methods by where prior knowledge enters: data, model, or algorithm. Data methods enlarge the training set, model methods shrink the hypothesis space, and algorithm methods alter the search.
- **Results** The survey places existing methods into one taxonomy tied to the unreliable empirical risk minimizer, and reviews the pros and cons of each category.

## Why a few examples break ordinary learning

Few-Shot Learning (FSL) asks a model to pick up a new task from a handful of labeled examples. Most recent successes depend on large data sets, such as ImageNet with 1000 classes. AlphaGo likewise learned from around 30 million recorded moves of human experts. Humans, by contrast, can learn a new task quickly by reusing what they already know, which is the gap FSL tries to close.

A learner minimizes the average loss on its training samples, the empirical risk, as a stand-in for the expected risk it can't compute. The total error splits into an approximation error, which depends on the hypothesis space, and an estimation error, which depends on the number of examples I. With few examples the estimation error stays large, so the empirical risk minimizer overfits.

The authors call this the core issue of FSL: the minimizer is no longer reliable.

## Where prior knowledge can enter

The idea is to inject prior knowledge so the empirical risk minimizer becomes reliable again. Data methods enlarge the training set from I samples to a larger set, so a standard learner has more to fit. Model methods shrink the hypothesis space to a smaller one, so the same few samples can pin down a good hypothesis. Algorithm methods keep the hypothesis space and change how the search for the parameters runs.

A guided search depends on both the prior knowledge and the empirical risk minimizer, so the two can't be separated cleanly. This grouping asks where the knowledge is used, which is how the rest of the survey is organized.

## Enlarging the few samples

Hand-crafted rules are the simplest route, such as translation, flipping or rotation of images. These rules encode invariances, but designing them needs domain knowledge and they can be tied to one data set. The authors argue that no one can list every invariance, so manual augmentation alone is unlikely to solve FSL completely.

Learned methods go further by transforming each training sample with learned transformations. Other methods pull samples from weakly labeled or unlabeled data sets, using an exemplar SVM or label propagation, and then add the selected samples to the training set. Collecting such data is cheap, but selecting the right samples remains the hard part.

A generative adversarial network can also synthesize samples aggregated from similar data sets, because aggregated samples may not come from the target class.

## Shrinking the hypothesis space

Model methods start from a large enough hypothesis space and then restrict it using prior knowledge. A simple model would be too rigid for complicated real problems, which is why the space is kept large. Multitask learning shares or ties parameters across tasks, so the target task borrows structure from the source tasks. Parameter sharing reuses some layers, whereas parameter tying penalizes all pairwise differences of the task parameters.

Embedding learning maps each sample into a lower-dimensional space where similar samples lie close together. Prototypical Networks compare the query with one prototype per class, each the mean of the embeddings of that class's K samples. \\\[ c\_n = \\frac{1}{K}\\sum\_{i=1}^{K} g(x\_i) \\\]

Hybrid models adapt a task-invariant embedding using the training set, so the embedding changes with the examples given. External memory methods store key-value pairs extracted from the training set and build each query representation as a weighted read from them.

## Changing the search with a meta-learned start

MAML meta-learns an initialization θ0 and adapts it to each task with a few gradient steps. The task-specific parameter is obtained as follows. \\\[ \\phi\_s=\\theta\_0-\\alpha\\nabla\_{\\theta\_0}L^{s}\_{train}(\\theta\_0) \\\]

The initialization itself is updated from the test losses across the meta-training tasks, with step size β. Refinements address task dependence, for example by choosing an initialization from a subset of good ones for a new task. Others model uncertainty, or regularize the refined parameters toward a model trained on large-scale samples. Learning the optimizer replaces the gradient step with a learned update, so no step size has to be tuned.

Refining existing parameters is cheap because the start is already close, but that start was learned from different tasks, so precision may suffer.

## What remains unsettled

Problem setups could draw on several modalities, since a rare class may have many textual descriptions. Multi-modal sources have different structures, so texts follow syntax and images don't.

Meta-learning usually assumes one fixed task distribution, while streaming settings make it dynamic. A dynamic setting raises catastrophic forgetting, and learning from loosely related tasks risks negative transfer.

## Limitations

The paper reviews published methods rather than running new experiments of its own. The authors note that very high accuracies on standard benchmarks such as miniImageNet leave little room for improvement.

## Paper info

- **Authors**: Yaqing Wang, Quanming Yao, James Kwok, Lionel M. Ni
- **Venue**: arXiv · Preprint
- **First published**: 2019-4-10
- **Added**: 2026-11-12
- **Updated**: 2020-3-29
- **Version**: v3
- **arXiv**: 1904.05046
- **Category**: cs.LG · cs.AI
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1904.05046v3) · [PDF ↗](https://arxiv.org/pdf/1904.05046v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Yaqing Wang, Quanming Yao, James Kwok, Lionel M. Ni (2019). Generalizing from a Few Examples: A Survey on Few-Shot Learning. arXiv:1904.05046v3. https://arxiv.org/abs/1904.05046v3

**BibTeX**

```
@misc{wang2019generalizing,
  title = {{Generalizing from a Few Examples: A Survey on Few-Shot Learning}},
  author = {Yaqing Wang and Quanming Yao and James Kwok and Lionel M. Ni},
  year = {2019},
  eprint = {1904.05046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.05046v3}
}
```

## Other paper commentary

- [CatBoost: unbiased boosting with categorical features](https://refivu.com/en/papers/2bddd7a0-b14d-422c-836d-b47da78a26fd-catboost-unbiased-boosting-with-categorical-features.md)
- [Datasheets for Datasets](https://refivu.com/en/papers/aac36b7e-c8f1-4fe7-a9fb-2e09532542d6-datasheets-for-datasets.md)
- [The Future of Digital Health with Federated Learning](https://refivu.com/en/papers/1562dfe5-7a60-4996-ad5c-7fe34a7d94e7-the-future-of-digital-health-with-federated-learning.md)
- [Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation](https://refivu.com/en/papers/e938eef4-a963-441d-bfef-194cc6a9a9e3-estimating-or-propagating-gradients-through-stochastic.md)
- [The information bottleneck method](https://refivu.com/en/papers/268a2320-65eb-4df2-b959-78f02f848cce-the-information-bottleneck-method.md)
- [ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and R](https://refivu.com/en/papers/b375508f-0b8f-45c6-97cd-0423c04a78e0-ranger-a-fast-implementation-of-random-forests-for.md)
- [In Defense of the Triplet Loss for Person Re-Identification](https://refivu.com/en/papers/9a193d31-bb38-4b07-8752-1bc32882197d-in-defense-of-the-triplet-loss-for-person.md)
- [SuperPoint: Self-Supervised Interest Point Detection and Description](https://refivu.com/en/papers/d0aa9e04-3220-432a-8074-02191fd86615-superpoint-self-supervised-interest-point-detection-and.md)
- [Improved Baselines with Momentum Contrastive Learning](https://refivu.com/en/papers/b3c4bdf4-000b-4115-9c61-4869e9e62ccc-improved-baselines-with-momentum-contrastive-learning.md)
- [OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks](https://refivu.com/en/papers/a615b23b-cb60-4fff-95a7-0a3b82dc2d4e-overfeat-integrated-recognition-localization-and-detection.md)
- [Accelerating the Super-Resolution Convolutional Neural Network](https://refivu.com/en/papers/36219c92-ee60-4179-a5b4-065fdb8a7ff4-accelerating-the-super-resolution-convolutional-neural.md)
- [DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation](https://refivu.com/en/papers/b9c76a95-d60f-4b38-98c6-45cfaa2bcd30-deepsdf-learning-continuous-signed-distance-functions-for.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Data Augmentation](https://refivu.com/en/terms/cc5618231f4a-data-augmentation)
- [transfer learning](https://refivu.com/en/terms/9c71d6928a00-transfer-learning)
- [Image classification](https://refivu.com/en/terms/e15c43f3bb32-image-classification)
- [Machine Learning](https://refivu.com/en/terms/86e004431ba6-machine-learning)
- [classification accuracy](https://refivu.com/en/terms/3c67905d3166-classification-accuracy)
- [few-shot learning](https://refivu.com/en/terms/fd39bfbe65e5-few-shot-learning)
- [Meta-learning](https://refivu.com/en/terms/4463fb5203f7-meta-learning)
- [miniImageNet](https://refivu.com/en/terms/026c3473346e-miniimagenet)
- [Multitask Learning](https://refivu.com/en/terms/058441e11fb2-multitask-learning)
- [Prototypical networks](https://refivu.com/en/terms/525a04df527e-prototypical-networks)
- [Empirical Risk Minimization](https://refivu.com/en/terms/886608d45c77-empirical-risk-minimization)
- [Matching Nets](https://refivu.com/en/terms/f43f5c8197cd-matching-nets)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/8988e143-7a9e-4146-9f9b-40c8e0cb6bb2-generalizing-from-a-few-examples-a-survey-on)
