Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Unsupervised Visual Representation Learning by Online Constrained K-Means

About

Cluster discrimination is an effective pretext task for unsupervised representation learning, which often consists of two phases: clustering and discrimination. Clustering is to assign each instance a pseudo label that will be used to learn representations in discrimination. The main challenge resides in clustering since prevalent clustering methods (e.g., k-means) have to run in a batch mode. Besides, there can be a trivial solution consisting of a dominating cluster. To address these challenges, we first investigate the objective of clustering-based representation learning. Based on this, we propose a novel clustering-based pretext task with online \textbf{Co}nstrained \textbf{K}-m\textbf{e}ans (\textbf{CoKe}). Compared with the balanced clustering that each cluster has exactly the same size, we only constrain the minimal size of each cluster to flexibly capture the inherent data structure. More importantly, our online assignment method has a theoretical guarantee to approach the global optimum. By decoupling clustering and discrimination, CoKe can achieve competitive performance when optimizing with only a single view from each instance. Extensive experiments on ImageNet and other benchmark data sets verify both the efficacy and efficiency of our proposal. Code is available at \url{https://github.com/idstcv/CoKe}.

Qi Qian, Yuanhong Xu, Juhua Hu, Hao Li, Rong Jin• 2021

Related benchmarks

TaskDatasetResultRank
Object DetectionCOCO 2017 (val)--
2454
Instance SegmentationCOCO 2017 (val)--
1144
Image ClassificationCIFAR-100--
622
Instance SegmentationCOCO
APmask37.2
279
Image ClusteringCIFAR-10
NMI0.459
243
ClusteringCIFAR-10 (test)
Accuracy85.7
184
Image ClassificationCIFAR100
Average Accuracy88.2
121
ClusteringCIFAR-100-20 (test)
Accuracy49.7
68
Object DetectionCOCO
APb40.9
44
ClusteringCIFAR-100
ARI19.5
19
Showing 10 of 17 rows

Other info

Code

Follow for update