Abstract
Generalized Category Discovery (GCD) aims to categorize both known and novel classes within an unlabeled dataset. While current state-of-the-art methods like SimGCD achieve high performance in discovering new categories, they often suffer from "catastrophic forgetting," where the model's accuracy on previously known classes degrades during training. We introduce LegoGCD, a modular framework that employs Local Entropy Regularization (LER) and a Dual-views KL-divergence constraint (DKL) to stabilize learning and prevent knowledge loss.
The Problem: The "Leaky Bucket" of Knowledge
In real-world scenarios, image recognition models must handle a mix of known and novel categories. The standard baseline for this task, SimGCD, utilizes "class mean entropy" to encourage exploration of novel classes. However, empirical evidence shows a significant trade-off: as the model improves at identifying new categories, its performance on known categories peaks and then sharply declines.
As shown in the figure above, on the CUB dataset, SimGCD's accuracy on known classes (green line) drops significantly after an initial peak. LegoGCD addresses this "leaky bucket" problem, maintaining high accuracy for both old and new categories throughout the training process.
Methods: The LegoGCD Framework
LegoGCD is designed as a plug-and-play module that can be integrated into existing GCD pipelines without architectural changes. It consists of three primary components:
- Local Entropy Regularization (LER): LER identifies unlabeled samples that the model classifies as "known" with high confidence. It then applies entropy regularization specifically to these samples, reinforcing the model's existing knowledge.
- Dual-views Kullback–Leibler Divergence (DKL): To ensure the reliability of LER, the model processes two different augmented views of each image. DKL constrains the model to produce consistent prediction distributions for both views, preventing misclassification due to data augmentation.
- Margin-aware Pattern (MAP): A margin-aware loss is incorporated to widen decision boundaries between all categories, ensuring that the focus on known classes does not hinder the discovery of novel ones.
Experimental Evaluation
The researchers evaluated LegoGCD across eight diverse datasets, including generic recognition (CIFAR10/100, ImageNet-100/1k) and fine-grained recognition (CUB, Stanford Cars, FGVC-Aircraft). The experiments utilized a ViT-B/16 backbone pretrained with DINO self-supervision.
Key Results
LegoGCD consistently outperformed the SimGCD baseline, demonstrating superior stability and accuracy:
- CUB Dataset: Achieved a 7.74% increase in known class accuracy and a 2.51% increase in novel class accuracy.
- Stanford Cars: Improved known class accuracy by 5.1%.
- ImageNet-100: Saw gains of 2.1% for known classes and 3.5% for novel classes.
- Robustness: LegoGCD exhibited significantly lower performance fluctuation compared to SimGCD, indicating a more stable training objective.
Conclusion and Future Work
LegoGCD effectively mitigates catastrophic forgetting in GCD through a modular, loss-based approach. By leveraging confidence-based regularization and consistency constraints, it preserves known category knowledge while facilitating novel category discovery.
One remaining limitation is the requirement for prior knowledge of the total category count ($K$). Future research will focus on automatically estimating the number of novel classes and extending these techniques to incremental GCD settings, where new categories are introduced sequentially.
Summary updated