Abstract
Few-shot image classification is a challenging problem that aims to achieve the human level of recognition based only on a small number of training images. One main solution to few-shot image classification is deep metric learning. These methods, by classifying unseen samples according to their distances to few seen samples in an embedding space learned by powerful deep neural networks, can avoid overfitting to few training images in few-shot image classification and have achieved the state-of-the-art performance. In this paper, we provide an up-to-date review of deep metric learning methods for few-shot image classification from 2018 to 2022 and categorize them into three groups according to three stages of metric learning, namely learning feature embeddings, learning class representations, and learning distance measures. With this taxonomy, we identify the novelties of different methods and problems they face. We conclude this review with a discussion on current challenges and future trends in few-shot image classification.
Introduction: The Challenge of Data Scarcity
Standard deep learning models are notoriously data-hungry, often requiring thousands of labeled images per category to achieve high accuracy. In contrast, humans possess the remarkable ability to recognize a new object category after seeing only a single example. This gap defines the field of Few-Shot Learning (FSL).
The primary technical hurdle in FSL is overfitting. When a model is trained on only 1–5 images, it tends to memorize specific noise or background details rather than learning generalizable features. Deep Metric Learning (DML) addresses this by learning a robust embedding space where images of the same class are clustered together and different classes are separated. This allows the model to classify novel objects based on their proximity to known examples without requiring extensive retraining.
A Taxonomy of Deep Metric Learning Methods
Recent research in DML can be categorized into a three-stage framework: learning feature embeddings, learning class representations, and learning distance measures.
1. Learning Feature Embeddings
This stage focuses on the "backbone" of the model.
- Task-agnostic: Early models used fixed backbones for all tasks.
- Task-specific: Modern approaches like TADAM or FEAT dynamically adapt the embedding space based on the specific "support set" (the few examples) provided at test time.
- Fine-grained: Architectures like DN4 focus on local descriptors rather than global features to distinguish between highly similar classes, such as different breeds of dogs.
2. Learning Class Representations
Once features are extracted, the model must define what constitutes a "class" in the embedding space.
- Mean Embeddings: Prototypical Networks represent a class as the average point (centroid) of its support samples.
- Learnable Prototypes: Models like TapNet treat class prototypes as learnable parameters within a specialized projection space.
- Distributions/Subspaces: Advanced methods represent classes as entire distributions or low-dimensional subspaces to better handle noise and outliers in the small support set.
3. Learning Distance/Similarity Measures
Instead of relying on fixed metrics like Euclidean distance, researchers are increasingly using Neural Networks (e.g., Relation Networks) or Graph Neural Networks (GNNs) to learn complex, non-linear similarity functions that capture intricate relationships between samples.
Benchmark Datasets
To track progress, the community uses several standard benchmarks that vary in complexity and domain.
- Omniglot: Often called the "MNIST of few-shot learning," it contains handwritten characters from 50 languages.
- mini-ImageNet & tiered-ImageNet: These are subsets of the massive ImageNet dataset and serve as the standard for general object recognition.
- CIFAR-FS & FC100: Derived from CIFAR-100, these are used for lower-resolution benchmarking.
- CUB-200-2011 & Stanford Dogs: These datasets are specifically designed for fine-grained classification tasks.
- Meta-Dataset: A newer, large-scale benchmark that tests a model's ability to generalize across multiple diverse datasets simultaneously.
Key Insights and Future Trends
Several critical insights have emerged from recent developments:
- Local Features Matter: For many tasks, comparing local image patches is more effective than comparing whole-image global embeddings.
- Transductive Inference: Successful models often use unlabeled "query" images to help refine class prototypes, leveraging the test data distribution.
- Task Adaptation: The most significant performance gains come from models that can "re-weight" feature importance based on the specific task at hand.
Despite these advances, challenges remain. Accuracy is saturating on simple datasets like Omniglot, but Cross-Domain FSL—transferring knowledge between radically different visual distributions (e.g., from animals to satellite imagery)—remains a significant hurdle. Future work must also address the rigidity of the standard "N-way K-shot" training setup and improve the robustness of models against outliers in the tiny support sets.
Summary updated