Adaptive Subspaces for Few-Shot Learning

Christian Simon, Piotr Koniusz, Richard Nock, Mehrtash Harandi

Introduction

Few-Shot Learning (FSL) aims to enable artificial intelligence to recognize new objects from minimal examples, mirroring human cognitive flexibility. A prevailing standard in FSL is the Prototypical Network, which represents a class by the mean feature vector of its available samples. However, this "mean-based" approach collapses structural information into a single point, making it sensitive to outliers and unable to capture complex intra-class variations.

This paper introduces Deep Subspace Networks (DSN), a framework that represents image classes as high-dimensional subspaces rather than single vectors. By leveraging the geometric span of samples, DSN achieves superior robustness and state-of-the-art accuracy in few-shot classification tasks.

Methodology: The Subspace Classifier

The core innovation of DSN is the transition from point-based prototypes to geometric subspaces. The process follows a two-stage paradigm: a universal feature extractor (e.g., ResNet) maps images into a high-dimensional space, followed by a dynamic subspace classifier generated for each task.

Conceptual comparison of classification strategies: (a) k-Nearest Neighbors, (b) Prototypical Networks, and (d) the proposed Subspace Networks.

Subspace Generation and Distance Metric

For a given class, the model utilizes Truncated Singular Value Decomposition (SVD) on the feature vectors of the support samples to identify a set of basis vectors. These vectors define a multi-dimensional subspace (a "plane") that best fits the data. To classify a query image, the model calculates the shortest distance from the query's feature vector to its projection on each class's subspace.

Discriminative DSN and Grassmannian Geometry

To enhance class separation, the authors introduce a loss function based on Grassmannian geometry. By treating subspaces as points on a Grassmann manifold, the model encourages the subspaces of different classes to be as orthogonal as possible during training, leading to cleaner decision boundaries. Additionally, a semi-supervised extension allows for refining these subspaces using unlabeled data through iterative soft-assignment updates.

Experimental Results

DSN was evaluated on major benchmarks including mini-ImageNet, tiered-ImageNet, CIFAR-FS, and Open MIC. The model consistently outperformed previous state-of-the-art methods. On mini-ImageNet (5-way 5-shot), DSN achieved 81.65% accuracy, significantly higher than the standard Prototypical Network (~75.6%).

Accuracy comparison between Prototype and Subspace methods as the number of shots increases.

Robustness and Key Insights

  • Second-Order Information: Unlike simple averaging, subspaces capture the "direction" and "span" of the data, providing a richer class description even with only 5 samples.
  • Noise Resistance: In experiments involving random noise or distractor images, DSN's performance degraded much more gracefully than prototype-based methods. The principal directions defined by SVD are inherently more resilient to individual outliers.

Conclusion and Future Work

While DSN offers significant accuracy gains and robustness, it introduces higher computational complexity due to the SVD operations required during inference. Future research may focus on fast approximate SVD algorithms to mitigate this overhead. Furthermore, while highly effective in 5-shot scenarios, the advantage of subspaces is less pronounced in 1-shot settings, where data is insufficient to define a meaningful geometric span without heavy augmentation.

Summary updated

BibTeX
@inproceedings{simon2020adaptive,
  author = {Christian Simon and Piotr Koniusz and Richard Nock and Mehrtash Harandi},
  title = {{Adaptive Subspaces for Few-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00419},
}
Figure