NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Semi-supervised Gaussian Mixture Models for Generalized Category Discovery

Bingchen Zhao, Xin Wen, Kai Han

Abstract

Generalized Category Discovery (GCD) is a challenging task that requires models to categorize unlabeled data containing both known and novel classes. A significant limitation of existing GCD methods is their reliance on a pre-defined number of categories, which is often unavailable in real-world scenarios. This paper introduces GPC, a novel framework that integrates a semi-supervised Gaussian Mixture Model (GMM) with prototypical contrastive learning. By employing a stochastic "split-and-merge" mechanism based on the Metropolis-Hastings ratio, GPC dynamically estimates the number of underlying categories while simultaneously learning robust image representations. Experimental results across generic, fine-grained, and long-tailed datasets demonstrate that GPC achieves state-of-the-art performance and provides highly accurate estimates of class counts.

1. Introduction

In the "open-world" setting of modern computer vision, datasets frequently contain a mixture of labeled images from known classes and unlabeled images that may belong to either seen or entirely novel categories. This paradigm, known as Generalized Category Discovery (GCD), occupies the middle ground between Semi-Supervised Learning (where all classes are known) and Novel Category Discovery (where unlabeled data consists only of new classes).

A fundamental hurdle in GCD is the "catch-22" of clustering: to effectively group unlabeled data, one typically needs to know the total number of classes ($K$); however, in practical applications, $K$ is precisely what needs to be discovered. Most prior methods bypass this by assuming $K$ is known a-priori. GPC addresses this gap by treating the number of categories as a learnable parameter within a unified representation learning framework.

2. The GPC Framework

The GPC framework operates through an Expectation-Maximization (EM)-like iterative process that alternates between category estimation and representation learning.

2.1 The E-step: Semi-supervised GMM and Split-and-Merge

In the E-step, the model utilizes a Semi-supervised Gaussian Mixture Model to estimate class assignments. Unlike standard GMMs, this approach incorporates labeled data as constraints to ensure that instances of the same known class are clustered together.

To overcome the fixed-$K$ limitation, GPC introduces a stochastic split-and-merge mechanism. Using the Metropolis-Hastings ratio, the model evaluates whether a cluster is too heterogeneous (triggering a split) or if two clusters are sufficiently similar (triggering a merge). This allows the model to dynamically explore the data distribution and converge on an optimal number of prototypes without manual intervention.

2.2 The M-step: Prototypical Contrastive Learning (PCL)

Once the prototypes (class centers) are estimated, the M-step focuses on refining the feature space. Using Prototypical Contrastive Learning, the model treats the estimated cluster centers as anchors. It pulls image embeddings toward their assigned prototypes while pushing them away from others. This mutual reinforcement—where better clusters lead to better features, and better features lead to more accurate clusters—is central to the model's success.

2.3 Dimensionality Reduction via PCA

A critical technical component of GPC is the application of Principal Component Analysis (PCA) to the high-dimensional features extracted from the Vision Transformer (ViT) backbone. The authors observed that high-dimensional spaces often lead to "dimensional collapse" in clustering, where the model fails to capture the subtle variances necessary for fine-grained distinction. Projecting features into a lower-dimensional space (e.g., 128D) before GMM fitting significantly improves the robustness of the discovery process.

3. Experimental Evaluation

The GPC framework was evaluated on a diverse set of benchmarks to test its versatility:

  • Generic Classification: CIFAR-10, CIFAR-100, and ImageNet-100.
  • Semantic Shift Benchmark (SSB): Fine-grained datasets including CUB-200 (birds), Stanford Cars, and FGVC-Aircraft.
  • Long-tailed Distribution: The Herbarium 19 dataset, testing performance on imbalanced data.

3.1 Performance and Class Estimation

GPC consistently outperformed the previous state-of-the-art (SOTA) methods. On CIFAR-100, GPC achieved an accuracy of 75.4% in the unknown $K$ setting, surpassing the previous best of 73.2%. On the CUB-200 dataset, it reached 52.0% accuracy, a significant improvement over the 47.1% baseline.

Beyond accuracy, GPC demonstrated remarkable precision in estimating the number of classes. For instance, on CIFAR-100 (which contains 20 novel classes), GPC estimated 22 categories, whereas traditional methods often produced significantly more divergent counts.

4. Key Insights

  • Stochastic Exploration: The use of Metropolis-Hastings for cluster adjustment allows the model to escape local optima that deterministic algorithms like $k$-means often fall into.
  • The Importance of Variance: By using PCA to focus on the most significant variance, the model becomes more adept at identifying the subtle features that define novel categories in fine-grained tasks.
  • Bootstrapping Effect: The coupling of GMM-based estimation and contrastive learning creates a virtuous cycle that improves both the representation and the categorization accuracy simultaneously.

5. Conclusion and Future Work

GPC represents a significant step forward in making Generalized Category Discovery viable for real-world applications where the number of classes is unknown. While the framework sets new performance benchmarks, challenges remain. There is still a notable gap between discovery-based models and fully supervised models. Furthermore, future research is required to adapt GPC to "noisier" environments and to reduce the sensitivity of the EM process to the initial class count guess. Nonetheless, the integration of stochastic GMMs with contrastive learning provides a robust foundation for autonomous category discovery.

Summary updated

BibTeX
@inproceedings{zhao2023learning,
  author = {Bingchen Zhao and Xin Wen and Kai Han},
  title = {{Learning Semi-supervised Gaussian Mixture Models for Generalized Category Discovery}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure