Command Palette
Search for a command to run...
Unsupervised Visual Representation Learning by Online Constrained K-Means
Qi Qian; Yuanhong Xu; Juhua Hu; Hao Li; Rong Jin

Abstract
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}.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| image-clustering-on-cifar-10 | CoKe | ARI: 0.732 Accuracy: 0.857 Backbone: ResNet-18 NMI: 0.766 Train set: Train |
| self-supervised-image-classification-on | CoKe (ResNet-50) | Number of Params: 25M Top 1 Accuracy: 76.4% |
| unsupervised-image-classification-on-cifar-10 | CoKe | Accuracy: 85.7 |
| unsupervised-image-classification-on-cifar-20 | CoKe | Accuracy: 49.7 |
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.