Introduction
Few-shot classification (FSL) aims to recognize new categories from just a few examples. While standard deep learning often overfits in these scenarios, existing meta-learning and feature adaptation methods frequently struggle when the target domain differs significantly from the training data. This paper introduces SUR (Selecting from Universal Representations), a method that shifts the focus from adapting a single model to selecting the most relevant features from a pre-built, diverse feature bank.
The SUR Framework: Selection over Adaptation
The core philosophy of SUR is that in low-data regimes, selecting from a fixed set of high-quality features is a more robust optimization problem than attempting to warp a feature space. It is akin to choosing the right tool from a Swiss Army knife rather than trying to forge a new tool from scratch with limited materials.
As shown in the figure above, the process involves:
- Multi-domain Feature Extraction: An input image $x$ is passed through a universal representation $f(x)$ composed of various feature blocks ($\bar{f}_1, \bar{f}_2, \bar{f}_3$) representing different domains like handwritten characters or bird species.
- Feature Importance Optimization: Given a few-shot "support set," the model learns a weight vector $\bar{\lambda}$ via gradient descent. This vector determines the relevance of each feature block to the current task.
- Masking and Classification: Relevant features are selected by the operation $\bar{\lambda} \odot f(x)$. Finally, a simple Nearest Centroid Classifier (NCC) performs the classification, providing robustness against overfitting.
Building the Universal Representation
The "universal" feature bank can be constructed using two distinct architectural strategies:
- Independent Networks (a): Multiple separate backbones (e.g., ResNets) are trained on different domains. While effective, this is memory-intensive as it requires running multiple full networks.
- Parametric Families (FiLM) (b): A more efficient approach uses a shared base network with small "Feature-wise Linear Modulation" (FiLM) layers. These layers act as adapters, specializing the shared features for different domains with minimal parameter overhead (approximately 0.5%).
Key Results and Insights
SUR was evaluated on the Meta-Dataset benchmark, which spans diverse domains including natural images (ImageNet), hand-drawn sketches (QuickDraw), and satellite imagery.
- State-of-the-Art Performance: SUR outperformed established methods like CNAPs and BOHB-E on 9 out of 13 datasets in Meta-Dataset, showing particular strength in "unseen" domains like MNIST and CIFAR.
- Natural Sparsity: The optimization process naturally tends toward sparse selections, confirming that different visual domains rely on distinct semantic features.
- Layer-wise Selection: On single-domain tasks like mini-ImageNet, SUR benefits from selecting features from intermediate layers, demonstrating that low-level features (edges, textures) are often more transferable than high-level semantic ones.
Conclusion
By treating few-shot learning as a feature selection problem rather than a weight adaptation problem, SUR provides a scalable and robust solution for cross-domain classification. The use of FiLM layers allows for a diverse "universal" representation without the prohibitive cost of maintaining multiple independent networks, achieving a 2x speedup in training and inference while maintaining high accuracy.
Summary updated