Cluster-aware Contrastive Learning for Unsupervised Out-of-distribution Detection

Menglong Chen, Xingtai Gui, Shicai Fan
2/6/2023
cs.CV
contrastive-ssl

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Unsupervised out-of-distribution (OOD) Detection aims to separate the samples falling outside the distribution of training data without label information. Among numerous branches, contrastive learning has shown its excellent capability of learning discriminative representation in OOD detection.

Show full abstract

However, for its limited vision, merely focusing on instance-level relationship between augmented samples, it lacks attention to the relationship between samples with same semantics. Based on the classic contrastive learning, we propose Cluster-aware Contrastive Learning (CCL) framework for unsupervised OOD detection, which considers both instance-level and semantic-level information. Specifically, we study a cooperation strategy of clustering and contrastive learning to effectively extract the latent semantics and design a cluster-aware contrastive loss function to enhance OOD discriminative ability. The loss function can simultaneously pay attention to the global and local relationships by treating both the cluster centers and the samples belonging to the same cluster as positive samples. We conducted sufficient experiments to verify the effectiveness of our framework and the model achieves significant improvement on various image benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2023clusteraware,
  title  = {Cluster-aware Contrastive Learning for Unsupervised Out-of-distribution Detection},
  author = {Menglong Chen and Xingtai Gui and Shicai Fan},
  year   = {2023},
  eprint = {2302.02598},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.02598v1}
}

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

Discussion