Contrastive Mean-Shift Learning for Generalized Category Discovery
Sua Choi, Dahyun Kang, Minsu Cho
TL;DR
This work introduces Contrastive Mean-Shift (CMS) learning for generalized category discovery (GCD), integrating a mean-shift step into contrastive representation learning to yield clustering-friendly embeddings without requiring the true number of classes ($K$). It trains a self-supervised encoder with a combined unsupervised CMS loss and a supervised loss, while iteratively estimating $K$ via agglomerative clustering on a validation set; final clustering applies multi-step mean shift before agglomerative clustering. CMS achieves state-of-the-art results on six public GCD benchmarks, including scenarios without access to the ground-truth $K$, and demonstrates robust $K$ estimation during training and effective transfer of knowledge from known to unknown classes. The approach highlights the value of non-parametric mean-shift within a learnable, contrastive framework for scalable and practical novel-class discovery.
Abstract
We address the problem of generalized category discovery (GCD) that aims to partition a partially labeled collection of images; only a small part of the collection is labeled and the total number of target classes is unknown. To address this generalized image clustering problem, we revisit the mean-shift algorithm, i.e., a classic, powerful technique for mode seeking, and incorporate it into a contrastive learning framework. The proposed method, dubbed Contrastive Mean-Shift (CMS) learning, trains an image encoder to produce representations with better clustering properties by an iterative process of mean shift and contrastive update. Experiments demonstrate that our method, both in settings with and without the total number of clusters being known, achieves state-of-the-art performance on six public GCD benchmarks without bells and whistles.
