Transfer and Alignment Network for Generalized Category Discovery

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

Abstract

Generalized Category Discovery (GCD) is a crucial real-world task. Despite the improved performance on known categories, current methods perform poorly on novel categories. We attribute the poor performance to two reasons: biased knowledge transfer between labeled and unlabeled data and noisy representation learning on the unlabeled data. To mitigate these two issues, we propose a Transfer and Alignment Network (TAN), which incorporates two knowledge transfer mechanisms to calibrate the biased knowledge and two feature alignment mechanisms to learn discriminative features. Specifically, we model different categories with prototypes and transfer the prototypes in labeled data to correct model bias towards known categories. On the one hand, we pull instances with known categories in unlabeled data closer to these prototypes to form more compact clusters and avoid boundary overlap between known and novel categories. On the other hand, we use these prototypes to calibrate noisy prototypes estimated from unlabeled data based on category similarities, which allows for more accurate estimation of prototypes for novel categories that can be used as reliable learning targets later. After knowledge transfer, we further propose two feature alignment mechanisms to acquire both instance- and category-level knowledge from unlabeled data by aligning instance features with both augmented features and the calibrated prototypes, which can boost model performance on both known and novel categories with less noise. Experiments on three benchmark datasets show that our model outperforms SOTA methods, especially on novel categories.

Introduction

Most machine learning models operate in a "closed-world" setting, assuming that every category they see during testing was present during training. In reality, "open-world" scenarios are common: a customer service chatbot trained on 50 intent categories will eventually encounter a 51st category it has never seen before.

Generalized Category Discovery (GCD) challenges models to use a small labeled dataset (containing "known" categories) to organize a large unlabeled dataset that contains both those known categories and "novel" ones. Current state-of-the-art methods often suffer from two primary issues:

  1. Biased Knowledge Transfer: Models become over-confident in known categories, often misclassifying novel data into known buckets.
  2. Noisy Representation Learning: Without labels, it is difficult for models to learn "clean" features that clearly separate one novel category from another.

Methodology: The Transfer and Alignment Network (TAN)

To address these challenges, we propose the Transfer and Alignment Network (TAN). The framework operates in two main stages: knowledge transfer (calibration) and feature alignment (refinement).

The TAN architecture incorporates prototype-to-prototype (P2P) and prototype-to-instance (P2I) transfer mechanisms alongside feature alignment.

Knowledge Transfer

Instead of treating unlabeled clusters as ground truth, TAN utilizes Prototypes—representative centroids of a category—to bridge the gap between labeled and unlabeled data.

  • Prototype-to-Prototype (P2P) Transfer: This mechanism calculates the similarity between labeled prototypes and noisy unlabeled ones. It "nudges" the unlabeled prototypes using a weighted average of the most similar labeled ones, leveraging known semantic structures to refine the estimation of unknown categories.
  • Prototype-to-Instance (P2I) Transfer: This pulls unlabeled instances that likely belong to known categories closer to their respective labeled prototypes. This process sharpens decision boundaries and prevents novel categories from being "absorbed" by known ones.

Feature Alignment

Once prototypes are calibrated, the model performs two types of alignment to ensure robust representation learning:

  • Instance-to-Prototype (I2P) Alignment: Instance features are pulled toward their corresponding calibrated prototypes to ensure category-level consistency.
  • Instance-to-Instance (I2I) Alignment: Utilizing contrastive learning, the model compares an instance to an augmented version of itself. This ensures the learning of fine-grained, instance-specific features that are robust to noise.

Experimental Evaluation

The model was evaluated on three NLP benchmark datasets: BANKING (77 categories), StackOverflow (20 categories), and CLINC (150 categories). In these experiments, 25% of the categories were treated as "novel," and only 10% of the data was labeled.

Performance comparison of TAN against state-of-the-art methods across BANKING, StackOverflow, and CLINC datasets.

Key Results

As shown in the table above, TAN consistently outperforms previous state-of-the-art (SOTA) methods like DPN and GCD across all metrics:

  • H-score Improvement: The H-score (harmonic mean of accuracy on known and novel classes) improved by an average of 3.98% across all datasets.
  • Novel Category Accuracy: This metric saw the most dramatic boost, with an average improvement of 4.76%. Notably, on the BANKING dataset, novel category accuracy increased by 6.23%.
  • Robustness: The model remained effective even when the total number of categories was unknown and had to be estimated automatically.

Discussion and Insights

The success of TAN stems from two key insights. First, similarity acts as a bridge: novel categories often share semantic similarities with known ones. By using a "Top-k Transfer" mechanism, TAN exploits these similarities to stabilize the learning of novel classes. Second, by correcting known-class bias, the P2I mechanism forces the model to create compact clusters for known classes, leaving more "room" in the feature space for novel categories to form distinct clusters.

Theoretical analysis based on domain adaptation theory confirms that these transfer mechanisms effectively reduce domain discrepancy and the ratio of false pseudo-labels, providing a guarantee for better generalization.

Limitations

While TAN shows impressive results, future work could explore its application in high-dimensional image spaces where the nature of prototypes and augmentation strategies might differ. Additionally, the model's sensitivity to hyperparameters like the choice of $k$ for prototype transfer warrants further investigation in real-world scenarios where validation data is scarce.

Summary updated

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