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

ID-like Prompt Learning for Few-Shot Out-of-Distribution Detection

About

Out-of-distribution (OOD) detection methods often exploit auxiliary outliers to train model identifying OOD samples, especially discovering challenging outliers from auxiliary outliers dataset to improve OOD detection. However, they may still face limitations in effectively distinguishing between the most challenging OOD samples that are much like in-distribution (ID) data, i.e., \idlike samples. To this end, we propose a novel OOD detection framework that discovers \idlike outliers using CLIP \cite{DBLP:conf/icml/RadfordKHRGASAM21} from the vicinity space of the ID samples, thus helping to identify these most challenging OOD samples. Then a prompt learning framework is proposed that utilizes the identified \idlike outliers to further leverage the capabilities of CLIP for OOD detection. Benefiting from the powerful CLIP, we only need a small number of ID samples to learn the prompts of the model without exposing other auxiliary outlier datasets. By focusing on the most challenging \idlike OOD samples and elegantly exploiting the capabilities of CLIP, our method achieves superior few-shot learning performance on various real-world image datasets (e.g., in 4-shot OOD detection on the ImageNet-1k dataset, our method reduces the average FPR95 by 12.16\% and improves the average AUROC by 2.76\%, compared to state-of-the-art methods). Code is available at https://github.com/ycfate/ID-like.

Yichen Bai, Zongbo Han, Changqing Zhang, Bing Cao, Xiaoheng Jiang, Qinghua Hu• 2023

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9542.03
204
Out-of-Distribution DetectionTextures
AUROC0.9189
168
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR958.98
132
OOD DetectionPlaces (OOD)
AUROC88.31
93
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC94.32
85
OOD DetectionSUN (OOD)
AUROC91.07
81
OOD DetectioniNaturalist
AUROC98.05
52
Out-of-Distribution DetectionImageNet-1K OOD Average
AUROC93.68
50
Out-of-Distribution DetectionPlaces OOD ImageNet-1k ID
AUROC90.57
45
Out-of-Distribution DetectionImageNet-1k (ID) vs Textures (OOD)
AUROC94.32
43
Showing 10 of 11 rows

Other info

Follow for update