Doubly Contrastive Deep Clustering

Zhiyuan Dang, Cheng Deng, Xu Yang, Heng Huang
3/9/2021
cs.CV
contrastive-ssl

Official code: ZhiyuanDang/DCDC (16 stars, Python, last commit 2022-11-27).

Abstract

Deep clustering successfully provides more effective features than conventional ones and thus becomes an important technique in current unsupervised learning. However, most deep clustering methods ignore the vital positive and negative pairs introduced by data augmentation and further the significance of contrastive learning, which leads to suboptimal performance.

Show full abstract

In this paper, we present a novel Doubly Contrastive Deep Clustering (DCDC) framework, which constructs contrastive loss over both sample and class views to obtain more discriminative features and competitive results. Specifically, for the sample view, we set the class distribution of the original sample and its augmented version as positive sample pairs and set one of the other augmented samples as negative sample pairs. After that, we can adopt the sample-wise contrastive loss to pull positive sample pairs together and push negative sample pairs apart. Similarly, for the class view, we build the positive and negative pairs from the sample distribution of the class. In this way, two contrastive losses successfully constrain the clustering results of mini-batch samples in both sample and class level. Extensive experimental results on six benchmark datasets demonstrate the superiority of our proposed model against state-of-the-art methods. Particularly in the challenging dataset Tiny-ImageNet, our method leads 5.6\% against the latest comparison method. Our code will be available at \url{https://github.com/ZhiyuanDang/DCDC}.

View on arXivView PDF

Code Implementations(1)

ZhiyuanDang/DCDCOfficial100%

This is the official Pytorch implementation of DCDC: https://arxiv.org/abs/2103.05484

166PythonMar 9, 20214 years ago
clusteringdeep-learning

Similar Papers

Cite this paper

@article{dang2021doubly,
  title  = {Doubly Contrastive Deep Clustering},
  author = {Zhiyuan Dang and Cheng Deng and Xu Yang and Heng Huang},
  year   = {2021},
  eprint = {2103.05484},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.05484}
}

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/2103.05484.svg)](https://codeofpaper.com/paper/2103.05484)

Discussion