SOTAVerified

CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances

2020-07-16NeurIPS 2020Code Available1· sign in to hype

Jihoon Tack, Sangwoo Mo, Jongheon Jeong, Jinwoo Shin

Code Available — Be the first to reproduce this paper.

Reproduce

Code

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

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
Anomaly Detection on Anomaly Detection on Unlabeled ImageNet-30 vs Flowers-102CSIROC-AUC94.7Unverified
Anomaly Detection on Unlabeled CIFAR-10 vs LSUN (Fix)CSIROC-AUC90.3Unverified
Anomaly Detection on Unlabeled ImageNet-30 vs CUB-200CSIROC-AUC71.5Unverified
One-class CIFAR-10CSIAUROC94.3Unverified
One-class CIFAR-100CSIAUROC89.6Unverified
One-class ImageNet-30CSIAUROC91.6Unverified
Unlabeled CIFAR-10 vs CIFAR-100CSIAUROC89.3Unverified

Reproductions