Abstract
In this paper we reformulate few-shot classification as a reconstruction problem in latent space. The ability of the network to reconstruct a query feature map from support features of a given class predicts membership of the query in that class. We introduce a novel mechanism for few-shot classification by regressing directly from support features to query features in closed form, without introducing any new modules or large-scale learnable parameters. The resulting Feature Map Reconstruction Networks are both more performant and computationally efficient than previous approaches. We demonstrate consistent and substantial accuracy gains on four fine-grained benchmarks with varying neural architectures. Our model is also competitive on the non-fine-grained mini-ImageNet and tiered-ImageNet benchmarks with minimal bells and whistles.
Introduction
Few-shot learning—the ability to recognize new categories from just one or a few examples—is a major challenge in computer vision. Most current metric-learning approaches extract a feature map from an image and then use Global Average Pooling (GAP) to squash it into a single vector.
This standard approach presents a trade-off: GAP loses critical spatial details necessary for fine-grained tasks (e.g., distinguishing between similar bird species), while simply flattening the map preserves detail but makes the model highly sensitive to object pose and location. Feature Map Reconstruction Networks (FRN) address this by redefining classification as a reconstruction problem in latent space, preserving spatial granularity while remaining invariant to object location.
Methodology: Feature Map Reconstruction
Instead of comparing vectors, FRN compares feature maps through the lens of reconstruction. A query image is predicted to belong to a class if its feature map can be accurately reconstructed as a weighted sum of features from that class's support images.
The process follows these key steps:
- Feature Pooling: For a given class, all feature vectors from all spatial locations across all available support images are collected into a single "pool."
- Latent Reconstruction: For a query image, the model attempts to reconstruct every spatial location in its feature map using a weighted sum of the vectors in the support pool.
- Ridge Regression: This reconstruction is framed as a linear least-squares problem with $\ell_2$ regularization. Crucially, this has a closed-form solution, allowing it to be solved instantly with matrix multiplication rather than iterative optimization.
- Classification: The class yielding the lowest reconstruction error is predicted as the correct class.
Experimental Evaluation
The paper evaluates FRN across several challenging benchmarks, including fine-grained datasets (CUB-200-2011, FGVC-Aircraft, meta-iNat) and general datasets (mini-ImageNet). The authors found that standard pre-training (using GAP) can actually hinder FRN, as it doesn't encourage spatially distinct features. Consequently, they introduce a "dummy feature map" pre-training scheme to align the backbone with the reconstruction task.
Results and Discussion
FRN demonstrates superior performance and efficiency compared to existing state-of-the-art methods.
Key Insights:
- Fine-Grained Superiority: On the CUB dataset, FRN achieved 83.16% (1-shot) and 92.59% (5-shot) accuracy, significantly outperforming previous leaders. Across most 1-shot fine-grained settings, FRN showed a 2-7 point jump in accuracy over the nearest baselines.
- Computational Efficiency: Unlike previous reconstruction methods that require expensive iterative solvers, FRN's closed-form ridge regression makes it roughly 300x to 10,000x faster during inference.
- Cross-Domain Robustness: In transfer tasks (e.g., mini-ImageNet to CUB), FRN outperformed existing methods by a wide margin, suggesting the reconstruction approach learns more universal feature representations.
Conclusion
Feature Map Reconstruction Networks provide a novel and efficient framework for few-shot learning. By leveraging spatial detail without pose sensitivity and utilizing a closed-form regression objective, FRN sets a new standard for fine-grained few-shot classification. Future work may focus on closing the "shot gap" between 1-shot and 5-shot training and extending the model to more complex, unbalanced datasets.
Summary updated