HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Contrastive Clustering

Yunfan Li Peng Hu Zitao Liu Dezhong Peng Joey Tianyi Zhou Xi Peng

Contrastive Clustering

Abstract

In this paper, we propose a one-stage online clustering method called Contrastive Clustering (CC) which explicitly performs the instance- and cluster-level contrastive learning. To be specific, for a given dataset, the positive and negative instance pairs are constructed through data augmentations and then projected into a feature space. Therein, the instance- and cluster-level contrastive learning are respectively conducted in the row and column space by maximizing the similarities of positive pairs while minimizing those of negative ones. Our key observation is that the rows of the feature matrix could be regarded as soft labels of instances, and accordingly the columns could be further regarded as cluster representations. By simultaneously optimizing the instance- and cluster-level contrastive loss, the model jointly learns representations and cluster assignments in an end-to-end manner. Extensive experimental results show that CC remarkably outperforms 17 competitive clustering methods on six challenging image benchmarks. In particular, CC achieves an NMI of 0.705 (0.431) on the CIFAR-10 (CIFAR-100) dataset, which is an up to 19\% (39\%) performance improvement compared with the best baseline.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
image-clustering-on-cifar-10CC
ARI: 0.637
Accuracy: 0.79
Backbone: ResNet34
NMI: 0.705
Train set: Train+Test
image-clustering-on-cifar-100CC
ARI: 0.266
Accuracy: 0.429
NMI: 0.431
image-clustering-on-imagenet-10CC
ARI: 0.822
Accuracy: 0.893
Image Size: 224
NMI: 0.859
image-clustering-on-imagenet-dog-15CC
ARI: 0.274
Accuracy: 0.429
Image Size: 224
NMI: 0.445
image-clustering-on-stl-10CC
Accuracy: 0.85
Backbone: ResNet34
NMI: 0.764
Train Split: Train+Test
image-clustering-on-tiny-imagenetCC
ARI: 0.071
Accuracy: 0.14
NMI: 0.34

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Contrastive Clustering | Papers | HyperAI