Skip to main content
QUICK REVIEW

[Paper Review] Doubly Contrastive Deep Clustering

Zhiyuan Dang, Cheng Deng|arXiv (Cornell University)|Mar 9, 2021
Face and Expression RecognitionComputer Science51 references11 citations
TL;DR

This paper proposes Doubly Contrastive Deep Clustering (DCDC), a novel deep clustering framework that applies contrastive learning simultaneously at the sample and class levels using data augmentation. By optimizing both sample-wise and class-wise contrastive losses, DCDC achieves state-of-the-art performance, improving accuracy by 5.6% on the challenging Tiny-ImageNet dataset compared to prior methods.

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. 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}.

Motivation & Objective

  • To address the suboptimal performance of existing deep clustering methods that ignore positive and negative pairs introduced by data augmentation.
  • To improve clustering performance by leveraging contrastive learning from both sample and class views simultaneously.
  • To design a unified framework that jointly optimizes sample-wise and class-wise contrastive losses for more discriminative representations.
  • To investigate effective training strategies such as sample repetition and batch size selection for contrastive-based deep clustering.

Proposed method

  • The method constructs positive and negative pairs from data augmentation: original and augmented samples form positive pairs, while different augmentations of other samples form negative pairs.
  • It applies sample-wise contrastive loss to pull positive sample pairs closer and push negative pairs apart in the feature space.
  • It introduces class-wise contrastive loss by treating the class distribution of original and augmented samples as positive pairs and other class distributions as negative pairs.
  • The framework jointly optimizes both contrastive losses during end-to-end training to refine feature representations and clustering assignments.
  • The model uses a backbone network with a classification head, and the contrastive losses are applied to the output features before clustering assignment.
  • The method includes ablation studies on over-clustering, sample repetition, and batch size to identify effective training practices.

Experimental results

Research questions

  • RQ1Can jointly optimizing contrastive learning at both sample and class levels improve deep clustering performance?
  • RQ2How do positive and negative pairs derived from data augmentation affect clustering quality when explicitly modeled?
  • RQ3What is the impact of sample repetition and batch size on contrastive-based deep clustering?
  • RQ4Does the proposed dual-view contrastive loss lead to more block-diagonal sample-wise affinity matrices and diagonal class-wise affinity matrices?

Key findings

  • DCDC achieves state-of-the-art performance on six benchmark datasets, including a 5.6% accuracy improvement over the latest method on Tiny-ImageNet.
  • On CIFAR-100, DCDC achieves 34.9% accuracy, outperforming the baseline method by 5.1 percentage points.
  • The t-SNE visualization shows that DCDC produces more compact and well-separated clusters than PICA, indicating better feature discriminability.
  • The sample-wise affinity matrix of DCDC exhibits a clearer block-diagonal structure than PICA, confirming the effectiveness of sample-wise contrastive learning.
  • The class-wise affinity matrix of DCDC is closer to diagonal, demonstrating that class-wise contrastive loss improves class-level clustering consistency.
  • Sample repetition improves performance slightly, with accuracy rising from 32.8% to 34.9% on CIFAR-100, indicating enhanced feature mining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.