Let's Start Over: Retraining with Selective Samples for Generalized Category Discovery

Zhimao Peng, Enguang Wang, Xialei Liu, Ming-Ming Cheng

Abstract

Generalized Category Discovery (GCD) presents a realistic and challenging problem in open-world learning. Given a partially labeled dataset, GCD aims to categorize unlabeled data by leveraging visual knowledge from the labeled data, where the unlabeled data includes both known and unknown classes. Existing methods based on parametric/non-parametric classifiers attempt to generate pseudo-labels/relationships for the unlabeled data to enhance representation learning. However, the lack of ground-truth labels for novel classes often leads to noisy pseudo-labels/relationships, resulting in suboptimal representation learning. This paper introduces a novel method using Nearest Neighbor Distance-aware Label Consistency sample selection. It creates class-consistent subsets for novel class sample clusters from the current GCD method, acting as “pseudo-labeled sets” to mitigate representation bias. We propose progressive supervised representation learning with selected samples to optimize the trade-off between quantity and purity in each subset. Our method is versatile and applicable to various GCD methods, whether parametric or non-parametric. We conducted extensive experiments on multiple generic and fine-grained image classification datasets to evaluate the effectiveness of our approach. The results demonstrate the superiority of our method in achieving improved performance in generalized category discovery tasks.

The Challenge of Generalized Category Discovery

In real-world AI applications, models frequently encounter categories they were not explicitly trained to recognize. Generalized Category Discovery (GCD) addresses this by providing a model with a partially labeled dataset. The goal is to categorize unlabeled data that contains both "known" classes (seen during training) and "novel" classes (never seen before).

Current state-of-the-art methods typically generate "pseudo-labels" to estimate which unlabeled images belong together. However, without ground truth for novel classes, these estimates are often noisy. This noise creates a "representation bias," where the model’s internal feature space becomes cluttered, making it difficult to distinguish between similar novel categories. This paper argues that instead of fixing a noisy model mid-stream, it is more effective to identify the most reliable samples and "start over" with a cleaner retraining phase.

The "Start Over" Retraining Framework

The authors propose a two-stage framework that can be integrated with existing GCD methods. First, an initial discovery phase uses an "off-the-shelf" method to produce a baseline clustering of the unlabeled data. Second, a selective retraining phase is initiated, using only a high-purity subset of samples to act as a pseudo-labeled set for the novel classes.

Pipelines of various GCD methods and the proposed retraining strategy (block 4).

As illustrated in the pipeline diagram, the retraining approach (labeled '4') is versatile, improving both non-parametric methods (like the original GCD) and parametric methods (like SimGCD). By selecting only the most consistent samples, the model avoids the pitfalls of training on noisy outliers.

Selective Representation Learning via NNDLC

The core innovation is Nearest Neighbor Distance-aware Label Consistency (NNDLC). To determine if a sample is reliable, the model examines its $K$ nearest neighbors in the feature space. If the neighbors' cluster labels mostly agree with the sample's assigned label, it is considered high-purity.

Key aspects of this selection process include:

  • Progressive Selection: The model starts with a small, extremely high-purity set and gradually increases the quantity of samples.
  • Validation Proxy: Since novel classes lack labels, the model uses the clustering accuracy of known class validation data as a "thermometer" to determine the optimal number of samples for retraining.
Supervised Contrastive Learning objective using pseudo-positive relations for seen and unseen classes.

During retraining, the model employs a supervised contrastive learning objective (shown above). This pulls together samples of the same class (pseudo-positives) while pushing apart samples from different classes, effectively refining the feature space for both seen and unseen categories.

Experimental Results and Insights

The proposed method, dubbed +sel, consistently outperformed existing state-of-the-art models across a wide range of benchmarks, including CIFAR100, ImageNet-1K, and fine-grained datasets like CUB-200.

  • Fine-Grained Success: On the CUB-200 dataset, the method improved the accuracy of "New" classes by 6.8% (from 57.7% to 64.5%).
  • Generic Performance: On CIFAR100, it achieved a new state-of-the-art "All" class accuracy of 80.7%.
  • Efficiency: Despite the retraining step, the sample selection process itself is extremely fast, taking less than a second for datasets like CIFAR100 using the Faiss library.

One of the most important findings is that "less is more": training on a smaller, cleaner subset of pseudo-labeled data is often more effective than training on the entire noisy unlabeled set. The use of local consistency (K-NN) acts as a powerful filter, ensuring that the model learns from the most representative samples of each category.

Conclusion

By introducing a selective retraining phase, this work addresses the fundamental issue of representation bias in GCD. The NNDLC selection mechanism provides a robust way to identify reliable pseudo-labels, enabling models to achieve superior performance in open-world classification tasks. While retraining adds computational cost, the significant gains in accuracy—especially for novel classes—make it a compelling strategy for robust category discovery.

Summary updated

BibTeX
@inproceedings{peng2024let,
  author = {Zhimao Peng and Enguang Wang and Xialei Liu and Ming-Ming Cheng},
  title = {{Let's Start Over: Retraining with Selective Samples for Generalized Category Discovery}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=HwsqezIte5},
}
Figure