TL;DR
Standard semi-supervised learning (SSL) breaks down when unlabeled data contains "unseen" classes not present in the labeled set. This paper introduces NACH (Not All Classes Have labels), a robust framework that simultaneously classifies known classes and discovers novel ones by filtering noisy pairwise similarities and synchronizing the learning speeds of seen and unseen categories.
The Problem: The "Closed-Set" Assumption
Most semi-supervised learning algorithms operate under a strict "closed-set" assumption: they presume that every example in the unlabeled pool belongs to one of the classes already seen in the small labeled dataset. In the real world—such as product recognition in a dynamic marketplace or analyzing evolving legal documents—new categories emerge constantly.
When traditional SSL encounters these "unseen" classes, two critical failures occur:
- Misclassification: The model tries to force-fit novel objects into known categories (e.g., confidently labeling a "scooter" as a "bicycle").
- Performance Degradation: The presence of these structural "outliers" distracts the model, actively lowering its accuracy on the classes for which it does have labels.
Existing work in Open-Set SSL tries to detect and ignore these unseen classes, while Novel Class Discovery (NCD) tries to cluster them but often neglects the original classification task. The authors of this paper aim for a unified solution: a model that accurately classifies seen classes while partitioning unseen classes into proper, distinct clusters.
The NACH Framework
To address this mixed-data environment, the authors propose NACH, which consists of two primary modules designed to handle the distinct challenges of unseen data.
1. Unseen Class Classification (UC)
To handle classes without any ground-truth labels, NACH relies on a pairwise similarity objective. Instead of predicting a specific label, the model learns that if two images are highly similar in feature space, they should share the same (albeit unknown) label.
- The Similarity Filter: A major contribution here is a filter that prevents "noisy pairs." If the model tries to pair a seen-class example (like a cat) with an unseen-class example (like a plane), it creates gradient confusion. NACH sorts similarities in a mini-batch and uses a threshold to discard these cross-category pairs, focusing only on high-confidence matches.
2. Learning Pace Synchronization (LPS)
Classes with ground-truth labels are inherently easier for a model to learn than classes where it only has pairwise hints. This creates a dangerous "learning pace" gap: the model becomes highly confident in seen classes quickly, while remaining uncertain about unseen ones. If left unchecked, gradients from the seen classes will dominate, and unseen clusters will never form properly.
- Adaptive Thresholding: NACH measures the confidence gap between seen and unseen classes. It then dynamically lowers the "entry bar" (the pseudo-label threshold) for unseen classes. By making it easier for the model to accept its own guesses for unseen classes, it synchronizes the learning speed across the whole dataset.
- Distribution Alignment: To prevent the model from lazily dumping all unseen examples into a single "catch-all" cluster, the framework forces the predicted class distribution to match a prior expectation.
Key Insights and Results
The researchers evaluated NACH on three standard computer vision benchmarks modified for the "unseen class" scenario (typically splitting classes 50/50 between seen and unseen): CIFAR-10, CIFAR-100, and ImageNet-100.
NACH significantly outperformed both specialized SSL and NCD methods across the board:
- Massive Gains on CIFAR-100: NACH achieved a 24.1% improvement in seen-class accuracy and a 34.7% improvement in unseen-class accuracy compared to FixMatch, a state-of-the-art SSL baseline.
- Superiority over NCD Methods: Compared to ORCA (a leading novel class discovery tool), NACH maintained a significant lead, particularly in its ability to keep seen-class accuracy high while simultaneously discovering new ones.
- Label Efficiency: Even when only 10% of the data for seen classes was labeled, NACH remained highly robust, reaching over 89% accuracy on CIFAR-10.
Limitations and Future Work
While highly effective empirically, the authors note a few limitations. First, the method currently lacks formal theoretical proofs regarding generalization risks in open environments. Second, the paper assumes the total number of unseen classes is known beforehand to set the number of output heads. In a truly "wild" scenario, the model would need to estimate the number of new classes dynamically. Future work will focus on generalization risk analysis to provide deeper mathematical backing for the adaptive thresholding mechanism.
Summary updated