Exploiting Unsupervised Inputs for Accurate Few-Shot Classification

Yuqing Hu, Vincent Gripon, Stéphane PateuxarXiv 2020

Introduction

Few-shot classification (FSC) remains a significant challenge in computer vision, requiring models to generalize to novel categories from only a handful of labeled examples. Standard deep learning architectures, characterized by millions of parameters, often suffer from severe overfitting when fine-tuned on such sparse data. To address this, transductive learning has gained prominence. In this setting, the model leverages the statistical properties of an entire batch of unlabeled query images simultaneously, rather than processing them in isolation.

While Graph Neural Networks (GNNs) are a popular choice for transductive FSC—treating images as nodes and their relationships as edges—they frequently introduce additional trainable parameters. This complexity can lead to optimization difficulties and increased computational costs. This paper proposes a streamlined three-stage pipeline that achieves state-of-the-art performance by replacing complex learned graph modules with a simple, parameter-free feature interpolation step.

Methodology

The proposed approach follows a three-stage process: pretraining a robust backbone, performing graph-based feature interpolation, and training a simple linear classifier.

Overview of the proposed three-stage pipeline: pretraining, graph-based feature interpolation, and logistic regression.

1. Pretraining and Feature Extraction

The first stage involves training a "backbone" feature extractor, such as a ResNet or Wide ResNet, on a large-scale auxiliary dataset. To ensure the learned features are both discriminative and robust, the authors employ two specific regularization techniques:

  • Self-Supervised Learning: By training the model to predict image rotations, it learns to capture more fundamental structural information.
  • Manifold Mixup: This technique interpolates between hidden layer representations during training, encouraging the model to learn a smoother and more continuous feature manifold.

2. Graph-based Feature Interpolation

The core innovation of the method is the feature interpolation stage. Instead of learning message-passing rules, the authors construct a $k$-Nearest Neighbor ($k$-NN) graph where each node represents an image (both labeled and unlabeled) and edges are weighted by cosine similarity. A diffusion-based process is then used to "smooth" the feature vectors:

Detail of the feature propagation step using a parameter-free diffusion process.

Crucially, this step has zero trainable parameters, making it highly efficient. The process effectively updates each image's feature vector by blending it with its neighbors, making features from the same class more similar.

3. Logistic Regression

In the final stage, a standard Logistic Regression classifier is trained using the newly interpolated features of the labeled samples. This classifier is then applied to the interpolated features of the unlabeled query images to generate final predictions.

Experimental Results

The method was rigorously evaluated on several standard few-shot benchmarks, including miniImageNet, CUB (fine-grained bird classification), and CIFAR-FS. It was also tested in a Cross-Domain setting (miniImageNet $\rightarrow$ CUB) to assess its generalization capabilities.

The results demonstrate that the proposed method consistently outperforms or matches state-of-the-art models. On miniImageNet (1-shot), it achieved an accuracy of 76.50%, a substantial improvement over previous GNN-based approaches like TPN (55.51%). On the CUB (1-shot) dataset, it reached 88.35%. Furthermore, the method is exceptionally efficient; the authors report it is approximately 34 times faster to train than Graph Attention Networks (GAT).

Discussion and Conclusion

The success of this approach highlights that if a backbone produces high-quality features, complex learned graph architectures may be unnecessary. Simple mathematical interpolation is sufficient to capture the manifold structure of the data. The method is particularly effective in 1-shot scenarios, where the unlabeled query samples provide essential context that reduces noise from the single labeled example.

However, the method's reliance on a batch of query images (transduction) means it cannot classify single images in isolation as effectively. Additionally, the interpolation process can be sensitive to class imbalance within the query batch. Future work will explore strategies to mitigate these limitations, such as more robust graph construction techniques or adaptive sampling.

Summary updated

BibTeX
@misc{hu2020exploiting,
  author = {Yuqing Hu and Vincent Gripon and Stéphane Pateux},
  title = {{Exploiting Unsupervised Inputs for Accurate Few-Shot Classification}},
  year = {2020},
  eprint = {2001.09849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.09849},
}
Figure