Introduction
Deep learning models, particularly Convolutional Neural Networks (ConvNets), typically require massive datasets to achieve high performance. However, real-world data often follows a power-law distribution where many categories have only a handful of examples. In contrast, humans can recognize novel items by comparing their constituent parts to familiar objects. For instance, one might identify a Segway as a vehicle by recognizing its wheels and handlebars, even without prior exposure to the specific device.
Few-shot learning (FSL) aims to bridge this gap by training classifiers on extremely small datasets (e.g., 1 to 5 examples per class). While existing metric-learning approaches focus on global image embeddings, they often overlook the discriminative power of local, part-based features. This paper introduces Object-Level Few-Shot Learning (OLFSL), a framework that decomposes images into local "objects" and performs granular, pair-wise comparisons to determine similarity.
Methodology: Object-Level Few-Shot Learning (OLFSL)
OLFSL is a non-parametric metric learning framework designed to capture richer relational features by comparing spatial grid cells. The architecture consists of three primary modules:
- Object Feature Learning ($F_\Phi$): Instead of global pooling, the model treats the $d \times d$ spatial grid of a CNN's final feature map as a set of individual "objects" or parts.
- Object-Level Relation Learning ($R_\theta$): For a support image and a query image, the model concatenates every "object" from the support set with every "object" from the query set. These pairs are processed by a Multi-Layer Perceptron (MLP) to learn local relationships. These local vectors are then aggregated via element-wise addition into a single image-level relation vector.
- Similarity Learning ($S_\phi$): A final network maps the aggregated vector to a similarity score between 0 and 1.
During inference, the model employs Nearest Neighbor Search (NNS) based on these scores, requiring no gradient-based fine-tuning for novel categories.
Experimental Evaluation
The authors evaluated OLFSL on two standard benchmarks: the Omniglot dataset (handwritten characters) and MiniImagenet (a complex subset of ImageNet).
Key Results
OLFSL demonstrated significant improvements over previous state-of-the-art methods:
- MiniImagenet: On the 5-way 1-shot task, OLFSL achieved 59.0% accuracy, an 8.5% absolute improvement. For the 5-way 5-shot task, it reached 70.9%.
- Omniglot: The model achieved near-perfect accuracy, reaching 99.8% and 99.9% for 1-shot and 5-shot tasks, respectively.
- Scalability: The model also excelled in harder 20-way classification tasks, significantly outperforming baselines (e.g., 32.2% on MiniImagenet 20-way 5-shot).
Discussion and Insights
The success of OLFSL highlights several key principles:
- Granularity and Cognition: Explicitly comparing spatial parts mimics human cognitive processes and captures more discriminative features than global embeddings. The choice of grid size is critical; a $10 \times 10$ grid was found to be optimal for MiniImagenet.
- Implicit Regularization: The aggregation of thousands of local relations appears to act as a natural ensemble, making the training process remarkably stable and resistant to overfitting without the need for weight decay.
Limitations
The primary drawback is the $O(N^2)$ computational complexity arising from comparing every part of two images. For a $10 \times 10$ grid, this results in 10,000 combinations. Future work may explore attention mechanisms or sparse matching to focus on relevant part-to-part comparisons, allowing the model to scale to higher-resolution images.
Summary updated