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

Zhimao Peng, Enguang Wang, Xialei Liu, Ming‐Ming Cheng, Zhengming Chen, Boyan Xu, Zhifeng Hao

Abstract

Generalized Category Discovery (GCD) requires models to categorize unlabeled data containing both known and novel classes. A significant challenge in GCD is the "confirmation bias" that arises when models learn from noisy pseudo-labels for unseen categories. This paper introduces a "retraining with selective samples" framework that identifies high-purity subsets of novel classes using nearest-neighbor consistency. By retraining the model from scratch with these reliable samples, the proposed method significantly improves feature representation and clustering accuracy. Experimental results across generic and fine-grained datasets demonstrate that this selective approach consistently outperforms existing GCD baselines.

Introduction

In real-world applications, machine learning models often encounter data from classes not present during initial training. Generalized Category Discovery (GCD) addresses this by tasking models to classify known categories and cluster novel ones within an unlabeled dataset. Traditional GCD methods, whether parametric or non-parametric, rely on pseudo-labels to guide representation learning. However, these pseudo-labels are inherently noisy for novel classes, leading to biased feature spaces where novel and known classes become entangled.

The Retraining Framework

The authors propose a wrapper method that enhances existing GCD models by selecting a highly reliable subset of data for retraining. This approach effectively "starts over" the learning process with a cleaner supervisory signal.

Overview of the GCD retraining framework and its integration with various classification methods.

The framework integrates several components as shown in the pipeline overview:

  1. Supervised Contrastive Learning: Uses pseudo-positive relations to pull similar samples together in the feature space.
  2. Classification Modules: Supports both non-parametric and parametric classification heads to handle seen and unseen classes.
  3. Retraining Pipeline: The core logic where initial results are filtered and used to re-initialize training from scratch.

Methodology

Initial Clustering and Pseudo-Labeling

The process begins by applying a baseline GCD method to generate initial cluster assignments for the unlabeled data. These assignments serve as the initial, albeit noisy, pseudo-labels used to bootstrap the selection process.

Selective Sample Selection

To mitigate confirmation bias, the model must distinguish between correct and incorrect pseudo-labels. The authors introduce a Nearest Neighbor Distance-Aware Selection mechanism.

Detail of the Nearest Neighbor Distance-Aware Label Consistency mechanism.

For each sample, the method examines its $K$-nearest neighbors (KNN) in the feature space. If a sample's neighbors consistently share its assigned cluster label, the sample is deemed "clean." This is quantified by aggregating the class probability distributions of neighbors and calculating a label consistency criterion. As illustrated in the figure, samples with high consistency (e.g., the "Tiger" example) are selected for the refined subset, while inconsistent samples (e.g., the "Rabbit/Elephant" confusion) are discarded.

Progressive Supervised Learning

Finding the optimal balance between subset size and purity is critical. The authors employ a progressive strategy, starting with a small, high-purity subset. Since novel classes lack ground truth, the model uses the validation accuracy of known classes as a proxy to determine the stopping point for sample selection in subsequent rounds.

Experimental Results

The method was evaluated on generic benchmarks (CIFAR100, ImageNet-100/1K) and fine-grained datasets (CUB-200, Stanford Cars, FGVC-Aircraft, Oxford-Pet).

When applied to the SimGCD baseline, the selective retraining approach (SimGCD+sel) showed significant gains:

  • ImageNet-100: +2.4% accuracy improvement.
  • CUB-200: +4.8% accuracy improvement.
  • Oxford-Pet: +3.4% accuracy improvement.

The improvements were most pronounced in the clustering of unseen classes, confirming that the selection process successfully reduces representation bias and prevents the model from being misled by its own initial errors.

Conclusion

The "Let's Start Over" framework demonstrates that in GCD, the quality of training data is more important than quantity. By using local feature neighborhoods to audit model predictions and leveraging known classes as a tuning guide, the method provides a robust way to bootstrap better representations for novel category discovery without the computational burden of manual labeling.

Summary updated

BibTeX
@inproceedings{peng2024lets,
  author = {Zhimao Peng and Enguang Wang and Xialei Liu and Ming‐Ming Cheng and Zhengming Chen and Boyan Xu and Zhifeng Hao},
  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