Prior-Constrained Association Learning for Fine-Grained Generalized Category Discovery

Menglin Wang, Zhun Zhong, Xiaojin Gong

Introduction

Generalized Category Discovery (GCD) aims to categorize a dataset containing both labeled images from known classes and unlabeled images that may belong to either known or entirely new categories. This task is particularly challenging in fine-grained scenarios, such as distinguishing between similar bird species.

Current state-of-the-art methods often suffer from the "bridge" problem: while they may mask distances between known classes, unlabeled samples can act as intermediate nodes, indirectly merging distinct known categories into a single noisy cluster. This leads to degraded representations and poor discovery of new categories.

Comparison of association strategies. PAL-GCD (Our association) prevents false links between distinct known classes by enforcing label constraints during clustering.

Methodology

The proposed framework, Prior-Constrained Association Learning (PAL), addresses these issues by embedding labeled priors directly into the association algorithm rather than treating them as a pre-processing step.

Prior-constrained Greedy Association

Unlike standard clustering, PAL uses a greedy approach based on Jaccard distance with a built-in validity check. Before merging any two groups, the algorithm ensures the resulting group does not contain more than one known class label. This hard constraint preserves the integrity of the labeled data throughout the discovery process and prevents the formation of "false bridges."

The PAL-GCD framework overview, featuring the semi-supervised association process and the dual-head classification architecture.

Joint Classification Framework

The architecture employs a dual-head system to benefit from both top-down and bottom-up learning:

  1. Non-parametric Prototypical Contrast: Reliable groups formed during association generate feature centroids (proxies). Prototypical Contrastive Learning (PCL) is then used to pull instances toward their assigned proxies and push them away from others, sharpening the feature space.
  2. Parametric Classification: A traditional classifier predicts specific class probabilities, which is effective when class numbers are known.

To synchronize these heads, a two-stage training process is used, starting with a "warm-up" for the non-parametric association before joint training. To scale to large datasets, the association is performed on random subsets of unlabeled data, reducing noise and computational cost.

Experimental Results

PAL-GCD was evaluated on six benchmarks, including fine-grained (CUB-200, Stanford Cars, Aircraft, Herbarium19) and generic (CIFAR-100, ImageNet-100) datasets. The method achieved significant performance improvements, particularly in fine-grained tasks:

  • Stanford Cars: 72.2% accuracy, representing a 15.3% improvement over the previous state-of-the-art (CMS).
  • CUB-200: 72.6% accuracy, a 4.4% improvement over CMS.
  • Unknown Class Discovery: PAL-GCD consistently outperformed competitors on "New" class metrics, proving its efficacy in discovering novel categories.

Furthermore, the model demonstrated robustness in estimating the total number of categories on its own, with a maximum error rate of only 18%.

Conclusion

PAL-GCD effectively leverages labeled data as a hard constraint to eliminate false associations in GCD. While the method shows dramatic improvements in fine-grained discovery, future work will address the computational overhead of pairwise Jaccard distance calculations for million-scale datasets and explore performance on less curated "in-the-wild" data where pre-trained backbones may be less effective.

Summary updated

BibTeX
@inproceedings{wang2025prior,
  author = {Menglin Wang and Zhun Zhong and Xiaojin Gong},
  title = {{Prior-Constrained Association Learning for Fine-Grained Generalized Category Discovery}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i20.35414},
}
Figure