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

Continual Generalized Category Discovery: Learning and Forgetting from a Bayesian Perspective

Hao Dai, Jagmohan Chauhan

Introduction

In the evolving landscape of machine learning, systems are increasingly required to operate in dynamic environments where data arrives in a continuous stream. Continual Generalized Category Discovery (C-GCD) represents a sophisticated frontier in this domain. Unlike standard classification, C-GCD requires a model to simultaneously identify previously learned categories and discover entirely new ones from unlabeled data.

A fundamental challenge in this setting is the stability-plasticity dilemma: how can a model remain flexible enough to learn new concepts (plasticity) without overwriting or "forgetting" established knowledge (stability)? Traditional approaches often suffer from catastrophic forgetting, where the internal representations of old classes drift as the model adapts to new data. This research identifies "covariance misalignment" as a primary driver of this forgetting and proposes a novel Bayesian framework, VB-CGCD, to mitigate it.

The VB-CGCD Framework

The researchers approach the C-GCD problem through a Bayesian lens, moving beyond simple point estimates to model class distributions more holistically. The proposed VB-CGCD (Variational Bayes C-GCD) framework consists of several integrated components designed to stabilize the learning process.

Variational Bayes Multivariate Normal (VB-MVN)

Instead of calculating a simple mean for each class, the model employs Variational Bayes Multivariate Normal estimation. By estimating both the mean and the covariance using variational inference, the model becomes significantly more robust to noise. In a Bayesian setup, outliers or mislabeled samples naturally yield low likelihoods, preventing them from disproportionately skewing the class representation.

Mahalanobis Distance and Re-labeling

While many classifiers rely on Euclidean distance, VB-CGCD utilizes Mahalanobis distance. This metric accounts for the "shape" and "stretch" of the data distribution (the covariance), providing a more accurate measure of similarity in a complex feature space. To handle unlabeled data, the model uses an initial clustering step followed by a Self-Correcting Re-labeling process. This two-stage refinement cleans pseudo-labels by moving samples closer to their true underlying distributions.

Addressing Forgetting: Covariance-Driven Early Stopping

The most significant insight of this work is the identification of covariance misalignment. The authors observed that forgetting often occurs because the estimated variance of new classes expands excessively during training. This expansion "crowds out" old classes, warping decision boundaries and causing the model to misclassify familiar samples as new categories.

To counter this, the authors introduced a Covariance-Driven Early Stopping rule. This mechanism halts the training of new classes once their covariance aligns with the average covariance of previously learned classes. By forcing the "shape" of new knowledge to respect the boundaries of the old, the model maintains a balanced feature space where multiple generations of categories can coexist.

Experimental Evaluation

Datasets and the "b10t9" Benchmark

The model was evaluated on four standard computer vision benchmarks: CIFAR-100, ImageNet-100, TinyImageNet, and CUB-200.

To further test the limits of the framework, the researchers introduced the b10t9 benchmark. This represents a more extreme "data-starved" scenario where the model begins with only 10% labeled data, and the remaining 90% of categories are introduced across nine sequential online sessions. This benchmark mimics long-term, real-world learning more closely than traditional tests.

Key Results

VB-CGCD demonstrated substantial improvements over previous state-of-the-art methods such as Happy and PromptCCD:

  • Accuracy Boost: The framework achieved an average boost of +15.21% in final session accuracy across standard benchmarks.
  • Robustness in Scarcity: On the difficult b10t9 benchmark, VB-CGCD reached 67.86% accuracy, nearly doubling the 38.55% achieved by prior methods.
  • Stability: The model exhibited a significantly lower forgetting rate, confirming that the covariance-driven approach successfully protects established knowledge.

Conclusion and Future Directions

By reframing C-GCD as a Bayesian inference problem, this research provides a robust solution to the stability-plasticity dilemma. The use of Stochastic Variational Inference (SVI) provides a natural defense against the noise of pseudo-labeling, while covariance alignment prevents the structural drift that leads to forgetting.

Despite these gains, challenges remain. The method's performance is still partially dependent on the quality of initial clustering, and estimating accurate covariance matrices in extremely low-sample regimes (like CUB-200) is difficult. Future work may explore hierarchical Bayesian priors or meta-learning to further refine class distribution estimates when data is scarce.

Summary updated

BibTeX
@inproceedings{dai2025continual,
  author = {Hao Dai and Jagmohan Chauhan},
  title = {{Continual Generalized Category Discovery: Learning and Forgetting from a Bayesian Perspective}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Jhsyra8NpQ},
}
Figure