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

Local-Prompt: Extensible Local Prompts for Few-Shot Out-of-Distribution Detection

About

Out-of-Distribution (OOD) detection, aiming to distinguish outliers from known categories, has gained prominence in practical scenarios. Recently, the advent of vision-language models (VLM) has heightened interest in enhancing OOD detection for VLM through few-shot tuning. However, existing methods mainly focus on optimizing global prompts, ignoring refined utilization of local information with regard to outliers. Motivated by this, we freeze global prompts and introduce Local-Prompt, a novel coarse-to-fine tuning paradigm to emphasize regional enhancement with local prompts. Our method comprises two integral components: global prompt guided negative augmentation and local prompt enhanced regional regularization. The former utilizes frozen, coarse global prompts as guiding cues to incorporate negative augmentation, thereby leveraging local outlier knowledge. The latter employs trainable local prompts and a regional regularization to capture local information effectively, aiding in outlier identification. We also propose regional-related metric to empower the enrichment of OOD detection. Moreover, since our approach explores enhancing local prompts only, it can be seamlessly integrated with trained global prompts during inference to boost the performance. Comprehensive experiments demonstrate the effectiveness and potential of our method. Notably, our method reduces average FPR95 by 5.17% against state-of-the-art method in 4-shot tuning on challenging ImageNet-1k dataset, even outperforming 16-shot results of previous methods. Code is released at https://github.com/AuroraZengfh/Local-Prompt.

Fanhu Zeng, Zhen Cheng, Fei Zhu, Hongxin Wei, Xu-Yao Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9523.23
247
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR958.63
132
OOD DetectionImageNet-1k ID Average OOD
AUROC0.9365
92
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR958.62
90
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC92.29
85
OOD DetectionImageNet SUN
FPR@9523.78
70
OOD DetectionImageNet-1k (ID) vs Places (OOD) 1.0 (test)
AUROC92.5
49
Graph Out-of-Distribution DetectionBZR (ID) COX2 (OOD)
AUC0.7309
49
Out-of-Distribution DetectionPlaces OOD ImageNet-1k ID
AUROC92.42
45
Graph OOD DetectionIMDB-M IMDB-B
AUC0.7614
36
Showing 10 of 33 rows

Other info

Follow for update