Abstract
Semi-Supervised Learning (SSL) leverages both labeled and unlabeled data to improve model performance. Traditional SSL methods assume that labeled and unlabeled data share the same label space. However, in real-world applications, especially when the labeled training set is small, there may be classes that are missing from the labeled set. Existing frameworks aim to either reject all unseen classes (open-set SSL) or to discover unseen classes by partitioning an unlabeled set during training (open-world SSL). In our work, we construct a classifier for points from both seen and unseen classes. Our approach is based on extending an existing SSL method, such as FlexMatch, by incorporating an additional entropy loss. This enhancement allows our method to improve the performance of any existing SSL method in the classification of both seen and unseen classes. We demonstrate large improvement gains over state-of-the-art SSL, open-set SSL, and open-world SSL methods, on two benchmark image classification data sets, CIFAR-100 and STL-10. The gains are most pronounced when the labeled data is severely limited (1-25 labeled examples per class).
Introduction
In traditional Semi-Supervised Learning (SSL), the assumption is that the small labeled dataset and the large unlabeled dataset share the exact same set of classes. However, in practical scenarios—such as medical imaging or genomics—labeling is expensive and time-consuming. When only a tiny fraction of a massive dataset is labeled, there is a high statistical probability that some classes will be missed entirely in the labeled set.
Existing frameworks struggle with this "missing class" problem:
- Standard SSL assumes all classes are present in the labeled set and fails to account for "unseen" categories.
- Open-set SSL is designed to reject unknown classes as outliers rather than classify them.
- Open-world SSL attempts to discover new classes but often requires complex, multi-stage processes that underperform when labels are extremely scarce.
The authors define this as the Few-Shot Zero-Shot SSL scenario: a "low-budget" regime where the model must learn to classify both the sparsely labeled "seen" classes and the completely unlabeled "unseen" classes.
Methodology
The proposed approach is a general, end-to-end framework that can be integrated into existing state-of-the-art SSL methods like FlexMatch or FreeMatch. The solution involves three key components:
- Expanded Architecture: The model’s final layer is expanded to include slots for all possible classes (both seen and unseen), enabling it to assign probabilities to categories for which it has received no labels.
- Distribution Alignment Loss ($l_{kl}$): This is the core innovation. A term is added to the loss function that calculates the Kullback-Leibler (KL) divergence between the model’s predicted class frequencies on a batch of unlabeled data and the "veridical" (true) class frequencies. If the class distribution is assumed to be uniform, this term acts as an entropy maximizer, preventing the model from collapsing all predictions into the "seen" classes and forcing it to distribute probability mass to the "unseen" ones.
- Specialized Early Stopping: To prevent the model's confidence in unseen classes from "crashing" during training, the authors implement a mechanism that monitors the gradient of the KL loss to halt training at the optimal point.
Experimental Evaluation
The researchers evaluated their method on standard image classification benchmarks including CIFAR-100 and STL-10. They tested various splits (e.g., 60 seen / 40 unseen) and varying label counts (1 to 25 labels per seen class), as well as "long-tail" scenarios where class distributions are non-uniform.
Key Results
The proposed method consistently outperformed state-of-the-art baselines (FlexMatch, OpenMatch, OpenLDN) by significant margins, particularly in "one-shot" scenarios. In a CIFAR-100 test with only 1 label per seen class, the method achieved a combined accuracy of ~19%, compared to ~6% for the best baseline. Notably, while standard SSL methods had near-zero accuracy on unseen classes, this method reached 30-50% accuracy on classes it had never seen a single label for, effectively leveraging the structural distribution of the unlabeled data to "push" the model to cluster points into missing categories.
Discussion and Limitations
The primary insight of this research is that while labeled data may be missing classes, the unlabeled data contains the full structural distribution of the domain. By forcing the model's output to match the expected global distribution, the model is guided toward discovering missing categories.
However, the method relies on prior knowledge of the "true" class distribution. If this prior is unknown or wildly incorrect, performance may suffer. Future work could involve handling true "Out-of-Distribution" (OOD) noise—images belonging to no class at all—and dynamically adjusting the weight of the KL-penalty during training to further refine the balance between seen and unseen class learning.
Summary updated