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

AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models

About

Recent research has shown that pre-trained vision-language models are effective at identifying out-of-distribution (OOD) samples by using negative labels as guidance. However, employing consistent negative labels across different OOD datasets often results in semantic misalignments, as these text labels may not accurately reflect the actual space of OOD images. To overcome this issue, we introduce \textit{adaptive negative proxies}, which are dynamically generated during testing by exploring actual OOD images, to align more closely with the underlying OOD label space and enhance the efficacy of negative proxy guidance. Specifically, our approach utilizes a feature memory bank to selectively cache discriminative features from test images, representing the targeted OOD distribution. This facilitates the creation of proxies that can better align with specific OOD datasets. While task-adaptive proxies average features to reflect the unique characteristics of each dataset, the sample-adaptive proxies weight features based on their similarity to individual test samples, exploring detailed sample-level nuances. The final score for identifying OOD samples integrates static negative labels with our proposed adaptive proxies, effectively combining textual and visual knowledge for enhanced performance. Our method is training-free and annotation-free, and it maintains fast testing speed. Extensive experiments across various benchmarks demonstrate the effectiveness of our approach, abbreviated as AdaNeg. Notably, on the large-scale ImageNet benchmark, our AdaNeg significantly outperforms existing methods, with a 2.45\% increase in AUROC and a 6.48\% reduction in FPR95. Codes are available at \url{https://github.com/YBZh/OpenOOD-VLM}.

Yabin Zhang, Lei Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1k (val)--
1453
OOD DetectionImageNet-1K OOD (Average: OpenImage-O, Texture, iNaturalist, ImageNet-O) 1.0 (test)
AUROC96.66
61
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC94.93
59
OOD DetectionImageNet 1k (test)
FPR9517.1
49
OOD DetectionImageNet SUN
FPR@959.5
43
Out-of-Distribution DetectionOpenOOD Far-OoD average v1.5
AUROC96.43
39
Out-of-Distribution DetectionOpenOOD Near-OoD average v1.5
AUROC0.767
39
OOD DetectionImageNet-1k ID Places OOD
AUROC94.55
35
Out-of-Distribution DetectionImageNet-1K (ID) vs Textures (OOD) (test)
FPR9531.27
34
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR950.59
33
Showing 10 of 19 rows

Other info

Code

Follow for update