Abstract
Generalized Category Discovery (GCD) is a pivotal task in machine learning that requires models to categorize unlabelled data containing both previously seen and entirely novel classes. Current approaches often suffer from representation bias, computational inefficiency in class number estimation, and a reliance on prior knowledge of category counts. We present CiPR (Cross-instance Positive Relations), a framework that leverages a novel hierarchical clustering algorithm, Selective Neighbor Clustering (SNC), to address these challenges. CiPR achieves state-of-the-art accuracy, particularly on unseen categories, while providing a 150x speedup in estimating the number of unknown classes.
The Challenge of Generalized Category Discovery
In real-world scenarios, datasets are rarely fully labelled. GCD presents a complex setting where a model is provided with a small set of labelled data and a larger pool of unlabelled data. The unlabelled portion is not restricted to the classes present in the labelled set; it also contains instances from "novel" categories that the model has never encountered.
Existing methodologies for GCD typically face three primary hurdles:
- Representation Bias: Models often learn features for labelled and unlabelled data in isolation, leading to poor generalization on novel clusters.
- Rigidity: Many frameworks require the total number of categories to be known a priori.
- Computational Inefficiency: Estimating the number of categories usually involves exhaustive iterations of k-means clustering, which is prohibitively slow for large datasets.
Methodology: Bridging the Gap with CiPR
The core innovation of CiPR is its focus on "Cross-instance Positive Relations." Traditional self-supervised learning often relies on instance-level contrastive learning (comparing an image to its own augmentations). CiPR extends this by identifying and utilizing "positives" across different instances that likely belong to the same class.
Selective Neighbor Clustering (SNC)
To identify these relations efficiently, we introduce Selective Neighbor Clustering (SNC). Unlike the "flat" approach of k-means, SNC is a hierarchical bottom-up clustering algorithm. It incorporates label information through specific "selective neighbor" rules to prevent the collapse of labelled data into single massive clusters.
A key component is the Chain Rule, which connects labelled instances into chains of length $\lambda = \sqrt{n_\ell}$, where $n_\ell$ is the number of instances in a class. This heuristic balances cluster growth across the hierarchy. Furthermore, SNC enables rapid class number estimation by using a "joint reference score" that optimizes both the clustering quality of unlabelled data (via Silhouette scores) and the classification accuracy of labelled data.
Cross-instance Positive Relations
By finding unlabelled "neighbors" of labelled images, CiPR forces the feature space of novel categories to align more effectively with known categories. This synergy reduces the bias toward seen classes and improves the purity of the resulting pseudo-labels.
Experimental Results
We evaluated CiPR on a diverse set of benchmarks, including generic datasets (CIFAR-10, CIFAR-100, ImageNet-100) and fine-grained datasets (CUB-200, Stanford Cars, Herbarium19).
Accuracy and Robustness
CiPR established new performance benchmarks across all tested datasets. Notably, on CIFAR-100, it achieved a 10.7% improvement in overall accuracy and a 22.7% increase in accuracy for unseen categories compared to previous state-of-the-art methods. The model also demonstrated robustness in imbalanced scenarios, such as the Herbarium19 dataset.
Efficiency Gains
The most striking result is the efficiency of our class number estimation. On ImageNet-100, where previous baselines required over 17 hours to estimate the number of classes, CiPR completed the task in approximately 7 minutes—a speedup of roughly 145x.
Conclusion and Future Directions
CiPR represents a significant advancement in Generalized Category Discovery by combining efficient hierarchical clustering with cross-instance relational learning. While the framework currently requires joint training on labelled and unlabelled data and relies on a pre-trained backbone, it provides a robust foundation for future "open-world" AI systems. Future work will explore incremental learning capabilities and handling out-of-distribution noise in non-curated real-world data.
Summary updated