TransMatch: A Transfer-Learning Scheme for Semi-Supervised Few-Shot Learning

Zhongjie Yu, Lin Chen, Zhongwei Cheng, Jiebo Luo

TL;DR

This paper introduces TransMatch, a novel transfer-learning framework for semi-supervised few-shot learning. It effectively leverages both labeled base-class data and unlabeled novel-class data to significantly boost performance on tasks where only a few examples per new class are available, achieving state-of-the-art results.

What Problem Does This Paper Address?

Deep learning models thrive on vast amounts of labeled data, which are often expensive and time-consuming to acquire. This poses a significant challenge for "few-shot learning" (FSL), where the goal is to train models that can recognize new classes with only a handful of labeled examples. While meta-learning approaches have been popular for FSL, they often rely on an "episodic training" strategy that mimics the few-shot scenario. This paper addresses the limitations of existing FSL methods by proposing a transfer-learning approach that can effectively utilize both abundant labeled data from base classes and unlabeled data from novel classes. This is crucial because acquiring unlabeled data for new tasks is often easier than obtaining labeled data, and existing methods haven't fully exploited this combination within a transfer-learning paradigm.

Methods

TransMatch is built upon a three-component transfer-learning framework:

  1. Pre-training a Feature Extractor: A robust feature extractor is first trained on a large dataset of labeled base-class data. This step aims to capture general visual knowledge that can be transferred to new tasks. Unlike meta-learning, this stage doesn't require an episodic training strategy.
  2. Classifier Weight Imprinting: The pre-trained feature extractor is then used to extract features from the few labeled examples of the novel classes. These features are used to "imprint" the weights of a new classifier for these novel classes. This technique, inspired by prior work, provides a strong initial classifier, reducing the need for extensive fine-tuning.
  3. Semi-Supervised Fine-tuning: Finally, the imprinted classifier is further refined using a state-of-the-art semi-supervised learning method, specifically MixMatch, leveraging the unlabeled data from the novel classes. This fine-tuning step allows the model to adapt to the specific characteristics of the new classes while benefiting from the unlabeled data.

The paper's novel method, TransMatch, instantiates this framework by combining the "Imprinting" technique for weight initialization and "MixMatch" for semi-supervised fine-tuning.

Datasets

The proposed TransMatch framework was evaluated on two popular benchmark datasets for few-shot learning:

  • miniImageNet: A widely used dataset for FSL evaluation, derived from ImageNet. The paper follows a standard split of 64 base classes, 16 validation classes, and 20 novel classes.
  • CUB-200-2011: A fine-grained dataset of bird species, containing 200 classes. The paper uses a split where the first 100 classes are treated as base classes and the remaining 100 as novel classes.

Key Insights and Ideas

  • Transfer Learning for Semi-Supervised FSL: The paper demonstrates that a transfer-learning approach, rather than solely relying on meta-learning, can be highly effective for semi-supervised few-shot learning. This opens up new avenues for leveraging readily available unlabeled data.
  • Synergy of Imprinting and MixMatch: The combination of "Imprinting" for robust initialization and "MixMatch" for powerful semi-supervised learning proves to be a winning strategy. Imprinting provides a strong starting point, making the subsequent fine-tuning with MixMatch more stable and effective, especially in low-shot scenarios.
  • Importance of Initialization: The results highlight that in few-shot settings, especially 1-shot and 2-shot, a good initial classifier is crucial. Directly applying semi-supervised methods without proper initialization can lead to poor performance due to the extreme scarcity of labeled data.
  • Robustness to Distractor Classes: The proposed method shows resilience even when unlabeled data includes "distractor classes" (classes not present in the novel set), suggesting practical applicability.

Key Results

  • State-of-the-Art Performance: TransMatch achieved state-of-the-art accuracy on both miniImageNet and CUB-200-2011 datasets for semi-supervised few-shot learning.
  • Significant Gains with Unlabeled Data: On miniImageNet, TransMatch with 100 unlabeled images per class achieved accuracies of 63.02% (1-shot) and 81.19% (5-shot), significantly outperforming methods that do not use unlabeled data.
  • Benefit of More Unlabeled Data: The performance consistently improved with an increasing number of unlabeled images, showing the effectiveness of the semi-supervised component.
  • Impact of Few-Shot Scenarios: The paper observed larger gains from TransMatch over methods like MixMatch alone when using fewer shots (e.g., 1-shot), underscoring the importance of the imprinting initialization. For instance, in the 1-shot setting, TransMatch with MixMatch showed a gain of +6.01% over just MixMatch.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the multi-stage process (pre-training, imprinting, fine-tuning) might involve significant computational resources.
  • Hyperparameter Sensitivity: The performance of MixMatch, and thus TransMatch, can be sensitive to hyperparameter choices, although the paper provides specific settings used in their experiments.
  • Future Work: The paper suggests exploring other state-of-the-art semi-supervised learning methods within their framework and investigating the impact of different feature extractor architectures. Further research into handling distractor classes more effectively could also be a promising direction.

Summary updated

BibTeX
@inproceedings{yu2020transmatch,
  author = {Zhongjie Yu and Lin Chen and Zhongwei Cheng and Jiebo Luo},
  title = {{TransMatch: A Transfer-Learning Scheme for Semi-Supervised Few-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01287},
}
Figure