ImbaGCD: Imbalanced Generalized Category Discovery

Ziyun Li, Ben Dai, Furkan Simsek, Christoph Meinel, Haojin YangarXiv 2024 · DOI

Abstract

Generalized Category Discovery (GCD) aims to categorize unlabeled data containing both known and unknown classes. However, existing methods often assume a balanced class distribution, which is rarely the case in real-world scenarios. We present ImbaGCD, a novel framework that addresses the "long-tail" nature of category discovery. By leveraging an Expectation-Maximization (EM) framework optimized via Optimal Transport, ImbaGCD effectively estimates and aligns with imbalanced class distributions, significantly outperforming state-of-the-art methods on complex benchmarks like ImageNet-100.

The Challenge: Real-World Imbalance in Category Discovery

In traditional Generalized Category Discovery (GCD), models are trained on a partially labeled dataset to identify both known classes and discover novel "unknown" classes in unlabeled data. A significant limitation of current research is the assumption of uniform class frequencies. In reality, data typically follows a long-tailed distribution, where a few "head" classes are common and many "tail" classes are rare.

The Imbalanced Generalized Category Discovery (ImbaGCD) setting, where unlabeled data follows a long-tailed distribution containing both known and unknown classes.

Existing models tend to be biased toward these frequent head classes, often misclassifying rare novel objects as common known ones. This paper formalizes this challenge as Imbalanced GCD (ImbaGCD), recognizing that known classes are often easier to label (head) while unknown classes are naturally part of the tail.

The ImbaGCD Framework

The authors propose a framework that treats category discovery as an Expectation-Maximization (EM) problem, utilizing Optimal Transport (OT) for robust pseudo-labeling.

  1. E-Step (Pseudo-labeling): To avoid the bias of simply picking the most likely class, the model employs the Sinkhorn-Knopp algorithm. This solves an Optimal Transport problem that constrains label assignments to match a predicted global class distribution, ensuring that rare tail classes are not overlooked.
  2. M-Step (Model Update): The model is refined using a dual contrastive learning approach. Supervised contrastive learning is applied to labeled data, while unsupervised contrastive learning handles unlabeled data, effectively clustering similar features.
  3. Iterative Class Prior Estimation: Since the distribution of unknown classes is initially a mystery, ImbaGCD uses a moving-average distribution update. It starts with a uniform prior and iteratively refines its estimate of class frequencies as training progresses.
  4. Momentum Prototype Updates: Class "prototypes" (anchors) are updated gradually using a momentum-based strategy. This ensures stability in the feature space and reduces the computational overhead of frequent re-clustering.

Experimental Results

The researchers evaluated ImbaGCD on CIFAR-10, CIFAR-100, and ImageNet-100, introducing varying "imbalance factors" ($\rho$) to simulate real-world conditions.

Comparison of predicted class distributions. ImbaGCD more accurately captures the long-tail ground truth compared to existing methods.

Key Performance Gains

  • ImageNet-100: In highly imbalanced scenarios ($\rho=10$), ImbaGCD achieved a remarkable 18.34% improvement in unknown-agnostic accuracy over the previous state-of-the-art, OpenCon.
  • Distribution Alignment: As shown in the category distribution analysis, ImbaGCD's predictions closely track the ground-truth long-tail distribution, whereas competing methods like OpenCon often over-predict certain classes or fail to capture the tail.
  • Robustness: Even in balanced settings, the model remains highly competitive, suggesting that accounting for potential imbalance is a universally beneficial strategy.

Conclusion and Future Directions

ImbaGCD represents a major shift toward practical category discovery by addressing the inherent imbalance of real-world data. By enforcing distribution alignment through Optimal Transport, the model mitigates the "head-tail" bias that plagues existing GCD methods.

Future work may focus on scenarios where the number of unknown classes is not predefined or where there is a significant semantic gap between known and unknown categories. Nonetheless, ImbaGCD sets a new benchmark for robust, realistic machine learning in open-world environments.

Summary updated

BibTeX
@misc{li2024imbagcd,
  author = {Ziyun Li and Ben Dai and Furkan Simsek and Christoph Meinel and Haojin Yang},
  title = {{ImbaGCD: Imbalanced Generalized Category Discovery}},
  year = {2024},
  eprint = {2401.05353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.05353},
}
Figure