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

Debiased Negative Mining Improves Out-of-distribution Detection with Pre-trained Vision-Language Models

About

Aiming at identifying unexpected inputs from unknown classes, out-of-distribution (OOD) detection has emerged as a pivotal approach to enhancing the reliability of machine learning models. This paper focuses on the burgeoning paradigm of post-hoc OOD detection with pre-trained vision-language models (VLMs), where a popular pipeline is to detect OOD inputs by examining their affinities between ID labels and negative labels, i.e., those semantically different from ID labels. Due to the unavailability of target OOD labels, existing works predominantly rely on heuristic rules to mine negative labels from unlabeled wild corpus data. Despite the empirical success, we argue that the power of VLM-based OOD detection has yet to be fully unleashed since the notorious false negative problem is far from addressed in the literature. With this motivation, we are interested in addressing the challenge of mining true negative labels for OOD scoring. To this end, we develop a theoretical framework for correcting the sampling bias of negatives labels by indirectly approximating the distribution of negative labels. Perhaps surprisingly, we show that the debiased negative mining can be naturally converted into Monte-Carlo sampling based on ID labels and the unlabeled wild corpus data. Extensive experiments empirically manifest that our method establishes a new state-of-the-art in a variety of OOD detection setups. Code is publicly available at \href{https://github.com/60pen9/Debiased-Negative-Mining-Improves-OOD-Detection-with-Pre-trained-VLMs}{\textcolor{red}{here}}.

Bo Peng, Jie Lu, Guangquan Zhang, Zhen Fang• 2026

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9516.9
247
Out-of-Distribution DetectionImageNet-1k (ID) with 4 OOD datasets (iNaturalist, SUN, Places, Textures)
FPR9522.33
69
Out-of-Distribution DetectionImageNet-1k (ID) vs Textures (OOD) 1.0 (test)
AUC90.72
64
Out-of-Distribution DetectionImageNet-1k OOD Average (val)
FPR9522.37
32
Out-of-Distribution DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
AUROC99.51
24
Out-of-Distribution DetectionPlaces OOD ImageNet-1K ID 1.0 (test)
AUROC91.95
24
Out-of-Distribution DetectioniNaturalist 65 (val)
AUROC99.51
19
Out-of-Distribution DetectionSUN 5 (val)
AUROC95.88
19
Out-of-Distribution DetectionTextures 55 (val)
AUROC90.72
19
Out-of-Distribution DetectionPlaces365 59 (val)
AUROC91.95
19
Showing 10 of 10 rows

Other info

Follow for update