A Unified Knowledge Transfer Network for Generalized Category Discovery

Wenkai Shi, Wenbin An, Feng Tian, Yan Chen, Yaqiang Wu, Qianying Wang, Ping Chen

Abstract

Generalized Category Discovery (GCD) is a challenging task that requires models to identify both known and novel categories within unlabeled datasets. Current approaches often suffer from pre-training biases that lead to candidate ambiguity and transfer uncertainty. This paper introduces the Knowledge Transfer Network (KTN), a unified framework designed to explicitly transfer semantic knowledge from known to novel categories. KTN utilizes Entropy-based Soft Differentiation (ESD) to probabilistically identify novel samples and prototype-based transfer weights to guide the adjustment of prediction logits. Experimental results on NLP intent classification benchmarks demonstrate that KTN significantly outperforms existing methods, achieving up to an 11.5% improvement in novel category accuracy and providing substantially faster inference speeds.

Introduction

In real-world applications, machine learning models frequently encounter data from categories not seen during training. GCD aims to bridge this gap by leveraging a model pre-trained on known categories to discover novel ones in unlabeled data. However, two primary obstacles hinder performance: candidate ambiguity, where models incorrectly force novel samples into known categories, and transfer uncertainty, where the lack of labels makes it difficult to quantify semantic relationships between known and novel classes.

KTN addresses these issues by observing that a biased pre-trained classifier "knows what it doesn't know." As shown in Figure 1, the prediction entropy of known categories is significantly lower than that of novel categories, providing a clear signal for differentiation.

Mean entropy distribution for known vs. novel categories, illustrating the clear separation between them.

Methodology

The KTN framework operates in two stages: initial pre-training followed by a specialized fine-tuning phase. The core of the architecture (Figure 2) consists of several innovative components:

  1. Entropy-based Soft Differentiation (ESD): Instead of a hard threshold, KTN maps prediction entropy differences into a probability. This allows for a soft, probabilistic identification of "transfer candidates"—samples likely belonging to novel categories.
  2. Prototype-based Transfer Weights: Categories are represented as prototypes (cluster centroids) in the embedding space. By calculating cosine similarities between known and novel prototypes, KTN derives "transfer weights" that quantify how much knowledge should be shared between specific classes.
  3. Unified Label Adjustment: For identified novel candidates, KTN adjusts prediction logits and pseudo-labels. It suppresses the influence of biased known-class predictions and enhances novel-class predictions based on the transfer weights, preventing the model from falling into local optima.
The KTN architecture, detailing the pre-training, fine-tuning, entropy differentiation, and label adjustment stages.

Experiments and Results

KTN was evaluated on three major NLP intent classification benchmarks: BANKING, CLINC, and HWU64. The model established a new state-of-the-art across all datasets. Notably, on the BANKING dataset, KTN achieved an 11.58% improvement in novel category accuracy over the previous best-performing model, DPN.

Beyond accuracy, KTN offers significant practical advantages. Unlike traditional GCD methods that require "offline" clustering of the entire dataset, KTN’s architecture supports efficient online inference. In head-to-head timing tests, KTN was 5x to 10x faster than clustering-based competitors like DAC. Visualization via t-SNE plots further confirms that KTN produces tighter and more separable clusters for novel categories.

Discussion and Limitations

While KTN represents a significant advancement, it currently assumes the total number of categories ($K$) is known, which may not hold in truly open-world scenarios. Additionally, while the principles of entropy and prototype-based transfer are general, further research is needed to validate the framework's effectiveness in high-dimensional domains like computer vision. Future work will focus on automatic estimation of category counts and cross-modal extensions.

Conclusion

The Knowledge Transfer Network provides a robust and efficient solution for Generalized Category Discovery. By turning pre-training bias into a tool for novelty detection and explicitly modeling semantic transfers, KTN sets a new standard for both performance and inference speed in the field.

Summary updated

BibTeX
@inproceedings{shi2024unified,
  author = {Wenkai Shi and Wenbin An and Feng Tian and Yan Chen and Yaqiang Wu and Qianying Wang and Ping Chen},
  title = {{A Unified Knowledge Transfer Network for Generalized Category Discovery}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29862},
}
Figure