CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances

Jihoon Tack, Sangwoo Mo, Jongheon Jeong, Jinwoo Shin
7/16/2020
cs.LGstat.ML
contrastive-ssl

Official code: alinlab/CSI (284 stars, Python, last commit 2023-10-19).

Abstract

Novelty detection, i.e., identifying whether a given sample is drawn from outside the training distribution, is essential for reliable machine learning. To this end, there have been many attempts at learning a representation well-suited for novelty detection and designing a score based on such representation.

Show full abstract

In this paper, we propose a simple, yet effective method named contrasting shifted instances (CSI), inspired by the recent success on contrastive learning of visual representations. Specifically, in addition to contrasting a given sample with other instances as in conventional contrastive learning methods, our training scheme contrasts the sample with distributionally-shifted augmentations of itself. Based on this, we propose a new detection score that is specific to the proposed training scheme. Our experiments demonstrate the superiority of our method under various novelty detection scenarios, including unlabeled one-class, unlabeled multi-class and labeled multi-class settings, with various image benchmark datasets. Code and pre-trained models are available at https://github.com/alinlab/CSI.

View on arXivView PDF

Code Implementations(1)

alinlab/CSIOfficial100%

CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances (NeurIPS 2020)

28462PythonJul 16, 20203 years ago
anomaly-detectioncontrastive-learningnovelty-detectionout-of-distribution-detection

Similar Papers

Cite this paper

@article{tack2020csi,
  title  = {CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances},
  author = {Jihoon Tack and Sangwoo Mo and Jongheon Jeong and Jinwoo Shin},
  year   = {2020},
  eprint = {2007.08176},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.08176}
}

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

Discussion