Meta-Learning for Semi-Supervised Few-Shot Classification

Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, Richard Zemel · OpenReview

Meta-Learning for Semi-Supervised Few-Shot Classification

Introduction

Few-shot learning (FSL) aims to recognize new categories from very few labeled examples. However, standard FSL often ignores the potential of unlabeled data, which is frequently available in real-world scenarios. This paper introduces a paradigm shift: Semi-Supervised Few-Shot Classification (SSFSC). By extending Prototypical Networks with a meta-learned refinement mechanism, the authors enable models to effectively utilize unlabeled data, even in the presence of irrelevant "distractor" images.

The Challenge: Distractors and Underutilization

Traditional FSL algorithms rely solely on a small labeled "support set." In a semi-supervised context, two primary hurdles arise. First, how can we best incorporate unlabeled information into the class representations? Second, how do we handle the "distractor problem"? In many cases, unlabeled data contains images from classes not present in the current task. Naive inclusion of these distractors can degrade performance.

Figure 1: A typical semi-supervised few-shot task. The model must learn to classify new categories using a few labeled examples and a pool of unlabeled data that may contain relevant images and irrelevant distractors.

Methodology: Refining Prototypes via Soft $k$-Means

The authors build upon Prototypical Networks, where each class is represented by a "prototype"—the mean vector of its labeled examples in an embedding space. They propose three differentiable extensions to refine these prototypes using an unlabeled set $\mathcal{R}$:

  1. Soft $k$-Means: Prototypes act as cluster centers. Unlabeled points are assigned "softly" to these centers based on Euclidean distance. The prototypes are then updated as a weighted average of labeled and unlabeled points.
  2. Soft $k$-Means with a Distractor Cluster: A dedicated "catch-all" cluster, fixed at the origin, is introduced to absorb unlabeled points that do not align with any target class.
  3. Soft $k$-Means with Masking: A small neural network (MLP) predicts a threshold for each cluster. Points exceeding this distance threshold are masked out, providing a robust way to ignore diverse distractors.
Figure 4: The prototype refinement process. Unlabeled data points (squares) are used to shift the initial prototypes (black dots) toward more representative locations in the feature space.

Because these steps are differentiable, the model can be trained end-to-end to "learn how to learn" from unlabeled data. The strategy for using unlabeled data (like the masking threshold) is meta-learned across many episodes.

Experimental Setup and tieredImageNet

The methods were evaluated on Omniglot, miniImageNet, and a new benchmark: tieredImageNet. This larger dataset (608 classes) features a hierarchical structure where train/val/test splits are made at a higher category level. This ensures that the model is tested on truly novel concepts, preventing performance inflation due to semantic similarity between training and testing classes.

Key Results and Insights

The semi-supervised approach yielded significant gains across all benchmarks:

  • Accuracy Boost: On 1-shot miniImageNet, accuracy rose from 43.61% (supervised) to 50.41% (Masked Soft $k$-means). Similar improvements were seen on tieredImageNet, jumping from 46.52% to 52.39%.
  • Robustness to Distractors: The "Masked" variant proved most effective when distractors were present. While simpler semi-supervised methods saw their gains evaporate when 50% of unlabeled data were distractors, the Masked model maintained a significant lead.
  • Scaling: Performance improved steadily as the number of unlabeled images per class increased, showing the model's ability to extract value from larger unlabeled pools.

Conclusion

This work demonstrates that unlabeled data is a powerful resource for few-shot learning if handled correctly. By treating prototype refinement as a meta-learning problem, the proposed models can navigate the complexities of semi-supervised tasks and distractor noise. Future research may look into updating the feature extractor itself during refinement or incorporating "fast weights" for even more rapid adaptation.

Summary updated

BibTeX
@inproceedings{ren2018meta,
  author = {Mengye Ren and Eleni Triantafillou and Sachin Ravi and Jake Snell and Kevin Swersky and Joshua B. Tenenbaum and Hugo Larochelle and Richard Zemel},
  title = {{Meta-Learning for Semi-Supervised Few-Shot Classification}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=HJcSzz-CZ},
}
Figure