Delving into Out-of-Distribution Detection with Vision-Language Representations

Yifei Ming, Ziyang Cai, Jiuxiang Gu, Yiyou Sun, Wei Li +1 more
11/24/2022
333 citations
cs.CVcs.AIcs.LG

Official code: deeplearning-wisc/MCM (102 stars, Python, last commit 2024-03-12).

Abstract

Recognizing out-of-distribution (OOD) samples is critical for machine learning systems deployed in the open world. The vast majority of OOD detection methods are driven by a single modality (e.g., either vision or language), leaving the rich information in multi-modal representations untapped.

Show full abstract

Inspired by the recent success of vision-language pre-training, this paper enriches the landscape of OOD detection from a single-modal to a multi-modal regime. Particularly, we propose Maximum Concept Matching (MCM), a simple yet effective zero-shot OOD detection method based on aligning visual features with textual concepts. We contribute in-depth analysis and theoretical insights to understand the effectiveness of MCM. Extensive experiments demonstrate that MCM achieves superior performance on a wide variety of real-world tasks. MCM with vision-language features outperforms a common baseline with pure visual features on a hard OOD task with semantically similar classes by 13.1% (AUROC). Code is available at https://github.com/deeplearning-wisc/MCM.

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of MCM (Delving into out-of-distribution detection with vision-language representations), NeurIPS 2022

1029Python, ShellOct 9, 20222 years ago
contrastive-learningout-of-distribution-detectionrepresentation-learningvision-language

Similar Papers

Cite this paper

@article{ming2022delving,
  title  = {Delving into Out-of-Distribution Detection with Vision-Language Representations},
  author = {Yifei Ming and Ziyang Cai and Jiuxiang Gu and Yiyou Sun and Wei Li and Yixuan Li},
  year   = {2022},
  eprint = {2211.13445},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.13445}
}

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/2211.13445.svg)](https://codeofpaper.com/paper/2211.13445)

Discussion