Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

CLIPScope: Enhancing Zero-Shot OOD Detection with Bayesian Scoring

About

Detection of out-of-distribution (OOD) samples is crucial for safe real-world deployment of machine learning models. Recent advances in vision language foundation models have made them capable of detecting OOD samples without requiring in-distribution (ID) images. However, these zero-shot methods often underperform as they do not adequately consider ID class likelihoods in their detection confidence scoring. Hence, we introduce CLIPScope, a zero-shot OOD detection approach that normalizes the confidence score of a sample by class likelihoods, akin to a Bayesian posterior update. Furthermore, CLIPScope incorporates a novel strategy to mine OOD classes from a large lexical database. It selects class labels that are farthest and nearest to ID classes in terms of CLIP embedding distance to maximize coverage of OOD samples. We conduct extensive ablation studies and empirical evaluations, demonstrating state of the art performance of CLIPScope across various OOD detection benchmarks.

Hao Fu, Naman Patel, Prashanth Krishnamurthy, Farshad Khorrami• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9515.56
247
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR951.29
132
OOD DetectionImageNet-1k ID Average OOD
AUROC0.953
92
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR951.29
90
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC91.41
85
Out-of-Distribution DetectionImageNet-1k (ID) vs Textures (OOD) 1.0 (test)
AUC91.41
64
OOD DetectionImageNet OOD Average (iNaturalist, SUN, Places, Textures)
Mean FPR95 (OOD Avg)20.88
53
OOD DetectionImageNet-1k (ID) vs Places (OOD) 1.0 (test)
AUROC93.54
49
Out-of-Distribution DetectionPlaces OOD ImageNet-1k ID
AUROC93.54
45
OOD DetectionImageNet-1k (ID) vs Sun (OOD) 1.0 (test)
AUROC96.77
31
Showing 10 of 10 rows

Other info

Follow for update