Abstract
This paper introduces Semi-Supervised Incremental Few-Shot Learning ($S^2I$-FSL), a realistic benchmark that integrates the challenges of semi-supervised learning and incremental learning within a few-shot framework. To address this, we propose a two-phase approach: meta-training with "fake" unlabeled data to handle class ambiguity and a model adaptation mechanism utilizing contrastive learning and distillation to incorporate new classes while preserving base class knowledge.
Introduction
Deep learning's reliance on extensive labeled datasets has led to the development of Few-Shot Learning (FSL), which aims to generalize from minimal examples. However, real-world applications often present two additional complexities: the availability of unlabeled data (Semi-Supervised FSL) and the necessity of continuous learning without forgetting (Incremental FSL). While previously studied in isolation, this paper defines the unified $S^2I$-FSL task.
In $S^2I$-FSL, a model learns novel classes from a few labeled samples and a pool of unlabeled data containing both base and novel classes. A primary challenge is ambiguity: unlabeled base class samples can act as distractors, potentially degrading the performance of novel class classifiers if not properly managed. Naive combinations of existing methods often perform worse due to this "pollution" effect.
Methodology
The proposed "Strong Baseline" consists of two primary components designed to mitigate ambiguity and forgetting.
Meta-training with "Fake" Unlabeled Data
To prepare for the presence of distractors during testing, the model undergoes a meta-training phase where a subset of training data is treated as "fake" unlabeled data. By hiding labels and forcing the model to practice refining class prototypes using this pool, the feature extractor learns to become robust against base class samples that appear in the unlabeled set during inference.
Model Adaptation without Forgetting
Upon encountering a new task, the model adapts using a three-part loss function:
- Supervised Loss ($L_{cls}$): Standard classification on labeled support samples.
- Contrastive Loss ($L_{ctr}$): Applied to unlabeled data to learn the underlying structure of novel classes by grouping similar embeddings.
- Distillation Loss ($L_{dst}$): Acts as a memory component, ensuring base class predictions remain stable and preventing catastrophic forgetting.
Experiments and Results
The method was evaluated on mini-ImageNet and tiered-ImageNet benchmarks adapted for the $S^2I$-FSL setting, focusing on 1-shot and 5-shot scenarios.
Key Results
- Performance: On mini-ImageNet (1-shot), the proposed method achieved a joint accuracy of 68.43%, outperforming the Prototype Refinement baseline (62.74%). On tiered-ImageNet (1-shot), accuracy reached 70.03%.
- Robustness: The approach demonstrated significant resilience to unbalanced unlabeled data, where base class samples heavily outnumber novel ones—a scenario where traditional semi-supervised methods like FixMatch often fail.
Discussion and Conclusion
The core insight of this work is that unlabeled data is a double-edged sword in incremental settings; without careful handling, "pollution" from base class samples in the unlabeled pool can harm performance. By simulating these conditions during training and employing a balanced adaptation strategy, the proposed baseline effectively navigates the trade-off between learning new features and retaining foundational knowledge. Future work will address computational overhead during inference and extend the framework to multi-session incremental learning.
Summary updated