HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances

Jihoon Tack Sangwoo Mo Jongheon Jeong Jinwoo Shin

CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances

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.

Code Repositories

alinlab/CSI
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
anomaly-detection-on-anomaly-detection-onCSI
Network: ResNet-18
ROC-AUC: 90.3
anomaly-detection-on-anomaly-detection-on-1CSI
Network: ResNet-18
ROC-AUC: 71.5
anomaly-detection-on-anomaly-detection-on-2CSI
Network: ResNet-18
ROC-AUC: 94.7
anomaly-detection-on-one-class-cifar-10CSI
AUROC: 94.3
anomaly-detection-on-one-class-cifar-100CSI
AUROC: 89.6
anomaly-detection-on-one-class-imagenet-30CSI
AUROC: 91.6
anomaly-detection-on-unlabeled-cifar-10-vsCSI
AUROC: 89.3
Network: ResNet-18

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp