Introduction
Few-shot learning (FSL) aims to bridge the gap between artificial intelligence and human cognition by enabling models to learn new concepts from a handful of examples. Traditional metric-learning approaches in FSL typically map images to single global feature vectors. However, this "vectorization" often discards critical spatial information and the inherent visual diversity within an image—such as varying backgrounds or object poses.
This paper introduces Subspace Representation Learning (SRL), a framework that represents images as low-dimensional subspaces rather than single points. By leveraging the local feature distributions of images, SRL preserves structural richness and achieves state-of-the-art performance on competitive benchmarks.
Methodology: The SRL Framework
The SRL framework shifts the representation paradigm from vectors to subspaces. The process involves three core stages: feature extraction, subspace generation, and distance-based classification.
1. Subspace Representation
Instead of applying global average pooling to the output of a backbone CNN (e.g., ResNet-12), SRL treats the grid of local feature vectors as a matrix $H \in \mathbb{R}^{d \times (h \cdot w)}$. To create a compact yet expressive summary, the model applies Singular Value Decomposition (SVD) to $H$, extracting an $s$-dimensional subspace $U$ that spans the most significant directions of variation in the local features.
2. Weighted Subspace Distance (WSD)
Comparing two images translates to measuring the distance between their respective subspaces. The authors propose Weighted Subspace Distance (WSD), which incorporates the singular values (importance weights) of the dimensions. This ensures that dominant visual patterns (like the primary object) contribute more to the similarity score than noisy, low-variance features (like background clutter).
3. Aggregation Strategies for K-shot Learning
In $K$-shot scenarios, where multiple support images are available for a class, SRL offers two aggregation methods:
- Prototypical Subspace (PS): Computes a representative "average" subspace for the class.
- Discriminative Subspace (DS): Learns a task-specific subspace optimized to maximize separation between the target classes.
To maintain the orthonormality of these subspaces during training, the authors optimize directly on a Stiefel manifold using the Cayley transform.
Experimental Evaluation
The SRL framework was evaluated on three major benchmarks: MiniImageNet, TieredImageNet, and the fine-grained Caltech-UCSD Birds-200-2011 (CUB) dataset.
Key Results
The Discriminative Subspace (DS) variant consistently outperformed existing state-of-the-art methods:
- MiniImageNet: Achieved 67.00% (1-shot) and 82.68% (5-shot) accuracy.
- TieredImageNet: Reached 71.88% (1-shot) and 86.24% (5-shot).
- Efficiency: Sensitivity analysis indicated that a subspace dimension of $s=6$ is sufficient to capture the necessary information for classification, balancing complexity and performance.
Discussion and Insights
The success of SRL highlights several key principles:
- Subspaces as Manifolds: A subspace effectively captures the "manifold" of an image's local features, providing a middle ground between overly simplistic global vectors and computationally heavy raw feature sets.
- Robustness through Weighting: The transition to WSD is critical for filtering out background noise, though visualization suggests that background bias remains a challenge in some cases.
- Manifold Optimization: Learning templates on the Stiefel manifold ensures that the geometric properties of the subspaces are preserved, leading to more robust class representations.
Conclusion
Subspace Representation Learning offers a powerful alternative to vector-based few-shot learning. By treating images as subspaces, the model respects the internal variety of visual data. Future work may explore extending this paradigm to more complex tasks like object detection or addressing the remaining challenges of background-induced bias.
Summary updated