Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Contrastive Training for Improved Out-of-Distribution Detection

About

Reliable detection of out-of-distribution (OOD) inputs is increasingly understood to be a precondition for deployment of machine learning systems. This paper proposes and investigates the use of contrastive training to boost OOD detection performance. Unlike leading methods for OOD detection, our approach does not require access to examples labeled explicitly as OOD, which can be difficult to collect in practice. We show in extensive experiments that contrastive training significantly helps OOD detection performance on a number of common benchmarks. By introducing and employing the Confusion Log Probability (CLP) score, which quantifies the difficulty of the OOD detection task by capturing the similarity of inlier and outlier datasets, we show that our method especially improves performance in the `near OOD' classes -- a particularly challenging setting for previous methods.

Jim Winkens, Rudy Bunel, Abhijit Guha Roy, Robert Stanforth, Vivek Natarajan, Joseph R. Ledsam, Patricia MacWilliams, Pushmeet Kohli, Alan Karthikesalingam, Simon Kohl, Taylan Cemgil, S. M. Ali Eslami, Olaf Ronneberger• 2020

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC92.9
93
OOD DetectionCIFAR10 (ID) vs CIFAR100 (OOD) (test)
AUROC0.92
36
Out-of-Distribution DetectionCIFAR-10 SVHN in-distribution out-of-distribution standard (test)
AUROC99.5
31
Out-of-Distribution DetectionCIFAR-10 (Din) / SVHN (Dout) Far OOD (test)
AUROC99.5
19
Out-of-Distribution DetectionCIFAR-100 SVHN in-distribution out-of-distribution standard (test)
AUROC95.6
9
OOD DetectionCIFAR100 (ID) vs CIFAR10 (OOD) (test)
AUROC0.78
7
Showing 6 of 6 rows

Other info

Follow for update