Abstract: Few-shot learning amounts to learning representations and acquiring knowledge such that novel tasks may be solved with both supervision and data being limited. Improved performance is possible by transductive inference, where the entire test set is available concurrently, and semi-supervised learning, where more unlabeled data is available. Focusing on these two settings, we introduce a new algorithm that leverages the manifold structure of the labeled and unlabeled data distribution to predict pseudo-labels, while balancing over classes and using the loss value distribution of a limited-capacity classifier to select the cleanest labels, iteratively improving the quality of pseudo-labels. Our solution surpasses or matches the state of the art results on four benchmark datasets, namely miniImageNet, tieredImageNet, CUB and CIFAR-FS, while being robust over feature space pre-processing and the quantity of available data.
Introduction
Few-shot learning (FSL) aims to train models capable of recognizing new classes from a minimal number of examples, typically 1 to 5 images per class. To mitigate the extreme data scarcity, researchers often employ transductive inference—where the model processes the entire query set at once—or semi-supervised learning, which incorporates additional unlabeled data.
A common strategy in these settings is to generate "pseudo-labels" for unlabeled data to expand the training set. However, pseudo-labels are inherently noisy. If incorrect labels are incorporated, they can trigger a "confirmation bias" loop, where the model becomes increasingly confident in its errors. This paper introduces iLPC (Iterative Label Propagation and Cleaning), an algorithm designed to identify and promote only the cleanest pseudo-labels through an iterative graph-based process.
The iLPC Framework
The iLPC algorithm operates through a multi-stage pipeline that leverages the manifold structure of the data. The process begins by extracting features using a pre-trained backbone and constructing a $k$-nearest neighbor graph that includes both the labeled support set $S$ and the unlabeled query set $Q$.
The core steps of the framework are:
- Label Propagation: Labels are "spread" from known examples across the graph to unlabeled nodes.
- Class Balancing: The Sinkhorn-Knopp algorithm is applied to ensure the predicted label distribution is balanced across classes, a critical prior for standard FSL benchmarks.
- Iterative Cleaning and Augmentation: Instead of accepting all pseudo-labels, iLPC selects a subset of the most reliable samples to augment the support set, then repeats the cycle until all queries are labeled.
Iterative Label Cleaning via Loss Statistics
The primary innovation of iLPC lies in its cleaning mechanism. Traditional methods often rely on softmax confidence to select pseudo-labels, which can be misleading. iLPC instead utilizes the "O2U-Net" principle: clean samples typically result in lower loss values during the early stages of training compared to noisy samples.
As shown in the loss distribution histograms, there is a clear separation between the average loss of correctly and incorrectly labeled examples. By training a limited-capacity linear classifier on the current pseudo-labels and tracking average loss over multiple epochs, iLPC can reliably identify the "cleanest" samples. In each iteration, the algorithm selects the query with the lowest average loss for each class and moves it into the labeled support set. This gradual "conquering" of the feature manifold ensures that the model builds upon high-confidence, low-noise data.
Experimental Evaluation
The method was evaluated on four major benchmarks: miniImageNet, tieredImageNet, CUB, and CIFAR-FS.
- State-of-the-Art Performance: Using a Wide ResNet backbone on miniImageNet (1-shot), iLPC achieved 83.05% accuracy, outperforming existing methods like PT+MAP (82.92%) and LR+ICI (80.61%).
- Semi-Supervised Gains: The advantage of iLPC is most pronounced in semi-supervised settings, where it outperformed the next best method by nearly 3.5% on miniImageNet (1-shot), demonstrating superior ability to extract signal from large unlabeled pools.
- Robustness: Unlike many top-performing methods that rely heavily on specific feature pre-processing (e.g., power transforms), iLPC maintains high performance across various settings, making it more suitable for real-world applications where optimal transforms are unknown.
Conclusion
iLPC provides a robust and effective framework for transductive and semi-supervised few-shot learning. By shifting the focus from simple confidence scores to loss-based statistics, the algorithm successfully mitigates the risks of noisy pseudo-labels. While the iterative nature introduces some computational overhead (approximately 1.20 seconds per task), the significant gains in accuracy and stability offer a compelling trade-off for data-scarce environments. Future work may explore adapting the class-balancing step for non-uniform, real-world data distributions.
Summary updated