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

Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIP

About

In an out-of-distribution (OOD) detection problem, samples of known classes(also called in-distribution classes) are used to train a special classifier. In testing, the classifier can (1) classify the test samples of known classes to their respective classes and also (2) detect samples that do not belong to any of the known classes (i.e., they belong to some unknown or OOD classes). This paper studies the problem of zero-shot out-of-distribution(OOD) detection, which still performs the same two tasks in testing but has no training except using the given known class names. This paper proposes a novel yet simple method (called ZOC) to solve the problem. ZOC builds on top of the recent advances in zero-shot classification through multi-modal representation learning. It first extends the pre-trained language-vision model CLIP by training a text-based image description generator on top of CLIP. In testing, it uses the extended model to generate candidate unknown class names for each test sample and computes a confidence score based on both the known class names and candidate unknown class names for zero-shot OOD detection. Experimental results on 5 benchmark datasets for OOD detection demonstrate that ZOC outperforms the baselines by a large margin.

Sepideh Esmaeilpour, Bing Liu, Eric Robertson, Lei Shu• 2021

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9581.51
159
Out-of-Distribution DetectionPlaces with ImageNet-1k OOD In-distribution (test)
FPR9573.06
99
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR9587.3
87
OOD DetectionImageNet-1K OOD (Average: OpenImage-O, Texture, iNaturalist, ImageNet-O) 1.0 (test)
AUROC81.79
61
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC76.46
59
OOD DetectionImageNet SUN
FPR@9581.51
43
OOD DetectionImageNet-1k ID Places OOD
AUROC83.39
35
Out-of-Distribution DetectionImageNet-1K (ID) vs Textures (OOD) (test)
FPR9598.9
34
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR9587.3
33
Out-of-Distribution DetectionImageNet-1K OOD Average
AUROC81.79
31
Showing 10 of 29 rows

Other info

Follow for update