Abstract
In Semi-Supervised Learning (SSL), the presence of "unseen" classes—categories in the unlabeled data that do not appear in the labeled set—is traditionally viewed as a source of performance degradation. This paper challenges this assumption by identifying a fundamental flaw in previous evaluation methodologies: a failure to control for the quantity of seen-class unlabeled data. By introducing the RE-SSL evaluation framework, we demonstrate that unseen classes often have a negligible impact and can even enhance model performance. Our analysis across multiple modalities reveals that semantic distance and algorithm choice are more critical factors for robustness than the mere presence of out-of-distribution data.
Introduction
Semi-supervised learning (SSL) aims to improve model performance by leveraging a small amount of labeled data alongside a larger pool of unlabeled data. However, real-world unlabeled data is rarely "clean"; it often contains samples from classes not present in the labeled training set. This scenario, known as Open-Set SSL, has led to the development of numerous "safe" SSL algorithms designed to filter out these supposedly harmful unseen samples.
This paper argues that the perceived harm of unseen classes is largely an experimental artifact. When the total size of the unlabeled dataset is fixed, increasing the proportion of unseen classes necessitates a decrease in seen-class data. This confounding variable makes it unclear whether performance drops are due to the presence of "bad" data or the loss of "good" data.
The RE-SSL Evaluation Framework
To isolate the impact of unseen classes, the authors propose the RE-SSL framework, based on a structural causal model. Unlike previous benchmarks, RE-SSL keeps the quantity of seen-class unlabeled data constant while varying only the characteristics of the unseen-class data.
Multi-Dimensional Analysis
The framework evaluates SSL robustness across five dimensions:
- Sample Number ($r_u$): The volume of unseen samples added.
- Category Number ($C_n$): The variety of unseen classes.
- Category Index ($C_i$): The specific selection of classes used as distractors.
- Nearness: The semantic similarity between seen and unseen classes (e.g., "near" vs. "far" OOD).
- Label Distribution ($C_{ib}$): The balance or skew of the unseen class distribution.
Robustness Metrics
Beyond standard accuracy, the authors introduce metrics to quantify stability:
- $R_{slope}$: The trend of accuracy as unseen data is added (positive values indicate the data is helpful).
- Global Magnitude (GM): A measure of overall performance stability across configurations.
- WAD/BAD: Worst-case and Best-case Adjacent Discrepancy, measuring local sensitivity to data changes.
Key Insights and Results
The "Harm" was Overstated
When the amount of seen-class data is held constant, many standard SSL algorithms (such as ICT or PseudoLabel) prove remarkably robust. In several instances, adding unseen data actually improved performance on seen classes. For example, on CIFAR-10 with 100 labels, the ICT algorithm achieved a positive $R_{slope}$ (0.002). This suggests that even distractor classes can provide useful structural information through consistency regularization.
Semantic Distance Matters
The study finds that "Far" Out-of-Distribution (OOD) data (e.g., adding digit images to a bird classifier) is significantly less harmful than "Near" OOD data (e.g., adding a different species of bird). The more semantically similar the unseen classes are to the seen ones, the more likely the model is to suffer from class confusion.
Algorithm Sensitivity
Modern, high-performance SSL methods like FixMatch and FreeMatch were found to be more sensitive to unseen classes than older, simpler methods like ICT. This indicates a potential trade-off between peak performance in controlled settings and robustness in open-set environments. Conversely, algorithms specifically designed for open-set safety, such as UASD and CAFA, demonstrated near-zero GM values, confirming their effectiveness at neutralizing unseen data impact.
Modality Differences
Experiments across different data types showed that tabular data is the most robust to unseen classes. In contrast, text data proved to be the most sensitive, likely due to the higher complexity and overlap in feature representations within natural language processing tasks.
Conclusion
The RE-SSL framework provides a more rigorous foundation for evaluating SSL in the presence of unseen classes. By demonstrating that unseen data is not inherently "poisonous," this research encourages a shift in focus from simple data filtering to more sophisticated methods of leveraging all available unlabeled data. While the paper provides strong empirical evidence, future work is needed to develop formal mathematical proofs for these behaviors and to investigate the impact of feature and label shifts in more dynamic environments.
Summary updated