Negative Label Guided OOD Detection with Pretrained Vision-Language Models

Xue Jiang, Feng Liu, Zhen Fang, Hong Chen, Tongliang Liu +2 more
3/29/2024
cs.CVcs.LG

Official code: tmlr-group/NegLabel (21 stars, Apache-2.0, last commit 2024-10-23). 1 more implementation below.

Abstract

Out-of-distribution (OOD) detection aims at identifying samples from unknown classes, playing a crucial role in trustworthy models against errors on unexpected inputs. Extensive research has been dedicated to exploring OOD detection in the vision modality. Vision-language models (VLMs) can leverage both textual and visual information for various multi-modal applications, whereas few OOD detection methods take into account information from the text modality. In this paper, we propose a novel post hoc OOD detection method, called NegLabel, which takes a vast number of negative labels from extensive corpus databases. We design a novel scheme for the OOD score collaborated with negative labels. Theoretical analysis helps to understand the mechanism of negative labels. Extensive experiments demonstrate that our method NegLabel achieves state-of-the-art performance on various OOD detection benchmarks and generalizes well on multiple VLM architectures. Furthermore, our method NegLabel exhibits remarkable robustness against diverse domain shifts. The codes are available at https://github.com/tmlr-group/NegLabel.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

[ICLR 2024 Spotlight] "Negative Label Guided OOD Detection with Pretrained Vision-Language Models"

211Shell, PythonFeb 19, 20241 years agoApache-2.0
Apache-2.0

[ICLR 2024 Spotlight] "Negative Label Guided OOD Detection with Pretrained Vision-Language Models"

305Shell, PythonFeb 19, 20241 years agoApache-2.0
oodood-detectionvision-and-language

Similar Papers

Cite this paper

@article{jiang2024negative,
  title  = {Negative Label Guided OOD Detection with Pretrained Vision-Language Models},
  author = {Xue Jiang and Feng Liu and Zhen Fang and Hong Chen and Tongliang Liu and Feng Zheng and Bo Han},
  year   = {2024},
  eprint = {2403.20078},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.20078v1},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.20078.svg)](https://codeofpaper.com/paper/2403.20078)

Discussion