Class-relation Knowledge Distillation for Novel Class Discovery

Peiyan Gu, Chuyu Zhang, Ruijie Xu, Xuming He

Abstract

Novel Class Discovery (NCD) aims to categorize unlabeled data from novel classes by leveraging knowledge from a set of labeled known classes. Traditional methods often overlook the semantic relationships between known and novel categories, leading to a loss of "dark knowledge" during the discovery phase. We present a Class-relation Knowledge Distillation (rKD) framework that preserves these inter-class similarities. By employing a learnable weighting function to prioritize semantically relevant samples, our method achieves state-of-the-art performance on general and fine-grained benchmarks.

Introduction

The ability to relate unknown objects to known concepts is a hallmark of human intelligence. In machine learning, this translates to the NCD task. While existing approaches focus on feature space alignment, they frequently "forget" the semantic proximity between classes—for example, that a novel wolf is related to a known dog. This paper addresses this gap by distilling class-relation information to guide the clustering of novel categories.

Methodology

The proposed framework operates in two stages: supervised pre-training on known classes and a subsequent discovery training stage.

Class-relation Knowledge Distillation (rKD)

The core of the approach is the rKD loss, which encourages the student model to maintain the class-relation representations (probability distributions over known classes) inherited from a fixed teacher model.

The discovery training stage architecture utilizing rKD loss and a learnable weighting function.

Learnable Weighting Function

To adaptively manage the distillation process, a learnable weighting function $g(\eta)$ is introduced. This function determines the degree of regularization based on the semantic similarity of a novel sample to the known classes. This prevents the model from forcing a fit for samples that are entirely unrelated to the training distribution.

Experiments and Results

The framework was evaluated on CIFAR100 and fine-grained datasets including Stanford Cars, CUB (birds), and FGVC-Aircraft.

Quantitative Performance

The rKD method established new state-of-the-art results:

  • CIFAR100: A 4.9% improvement over the previous best (UNO) on the 50/50 split.
  • Fine-Grained Datasets: Significant gains were observed, particularly a 6.5% increase in discovery accuracy on the CUB dataset.

Robustness to Class Number Estimation

A critical challenge in NCD is the unknown number of novel classes. The proposed method remains robust even when the estimated number of classes deviates from the ground truth by up to 20%.

Performance comparison and robustness analysis across fine-grained datasets.

Conclusion

By preserving the "dark knowledge" of inter-class relationships, the rKD framework significantly enhances the discovery of novel categories. Future work will explore modeling relationships between novel classes and refining the adaptive weighting mechanisms.

Summary updated

BibTeX
@inproceedings{gu2023class,
  author = {Peiyan Gu and Chuyu Zhang and Ruijie Xu and Xuming He},
  title = {{Class-relation Knowledge Distillation for Novel Class Discovery}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure