Twin Contrastive Learning for Online Clustering

Yunfan Li, Mouxing Yang, Dezhong Peng, Taihao Li, Jiantao Huang +1 more
10/21/2022
180 citations
cs.LG
contrastive-ssl

Official code: XLearning-SCU/2022-IJCV-TCL (23 stars, Python, last commit 2023-07-08).

Abstract

This paper proposes to perform online clustering by conducting twin contrastive learning (TCL) at the instance and cluster level. Specifically, we find that when the data is projected into a feature space with a dimensionality of the target cluster number, the rows and columns of its feature matrix correspond to the instance and cluster representation, respectively.

Show full abstract

Based on the observation, for a given dataset, the proposed TCL first constructs positive and negative pairs through data augmentations. Thereafter, in the row and column space of the feature matrix, instance- and cluster-level contrastive learning are respectively conducted by pulling together positive pairs while pushing apart the negatives. To alleviate the influence of intrinsic false-negative pairs and rectify cluster assignments, we adopt a confidence-based criterion to select pseudo-labels for boosting both the instance- and cluster-level contrastive learning. As a result, the clustering performance is further improved. Besides the elegant idea of twin contrastive learning, another advantage of TCL is that it could independently predict the cluster assignment for each instance, thus effortlessly fitting online scenarios. Extensive experiments on six widely-used image and text benchmarks demonstrate the effectiveness of TCL. The code will be released on GitHub.

View on arXivView PDF

Code Implementations(1)

234PythonJul 11, 20223 years ago

Similar Papers

Cite this paper

@article{li2022twin,
  title  = {Twin Contrastive Learning for Online Clustering},
  author = {Yunfan Li and Mouxing Yang and Dezhong Peng and Taihao Li and Jiantao Huang and Xi Peng},
  year   = {2022},
  eprint = {2210.11680},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11680}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.11680.svg)](https://codeofpaper.com/paper/2210.11680)

Discussion