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

Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection

About

Out-of-distribution (OOD) detection is crucial for deploying reliable machine learning models in open-world applications. Recent advances in CLIP-based OOD detection have shown promising results via regularizing prompt tuning with OOD features extracted from ID data. However, the irrelevant context mined from ID data can be spurious due to the inaccurate foreground-background decomposition, thus limiting the OOD detection performance. In this work, we propose a novel framework, namely, Self-Calibrated Tuning (SCT), to mitigate this problem for effective OOD detection with only the given few-shot ID data. Specifically, SCT introduces modulating factors respectively on the two components of the original learning objective. It adaptively directs the optimization process between the two tasks during training on data with different prediction uncertainty to calibrate the influence of OOD regularization, which is compatible with many prompt tuning based OOD detection methods. Extensive experiments and analyses have been conducted to characterize and demonstrate the effectiveness of the proposed SCT. The code is publicly available.

Geng Yu, Jianing Zhu, Jiangchao Yao, Bo Han• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9520.55
159
Out-of-Distribution DetectionTextures
AUROC0.8906
141
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR9513.94
87
OOD DetectionPlaces (OOD)
AUROC92.24
76
OOD DetectionSUN (OOD)
AUROC95.33
72
Out-of-Distribution DetectionImageNet 1k (test)
Average AUROC90.83
58
OOD DetectionCIFAR-100
FPR@9560.74
47
Out-of-Distribution DetectionImageNet (ID) vs Places365 (OOD) 1.0 (test)
FPR9529.86
41
OOD DetectioniNaturalist
AUROC95.86
40
Out-of-Distribution DetectionImageNet-1K (ID) vs Textures (OOD) (test)
FPR9541.51
34
Showing 10 of 16 rows

Other info

Code

Follow for update