Yifei Ming, Ziyang Cai, Jiuxiang Gu, Yiyou Sun, Wei Li, Yixuan Li
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. 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.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Out-of-Distribution Detection | ImageNet-1k vs iNaturalist | AUROC | 94.95 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs iNaturalist | FPR95 | 28.38 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs iNaturalist | AUROC | 94.61 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs iNaturalist | FPR95 | 30.91 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs Textures | AUROC | 86.11 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs Textures | FPR95 | 57.77 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs Textures | AUROC | 84.88 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs Textures | FPR95 | 59.88 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs Places | AUROC | 92 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs Places | FPR95 | 35.42 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs Places | AUROC | 89.77 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs Places | FPR95 | 44.69 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs SUN | AUROC | 94.14 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs SUN | FPR95 | 29 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs SUN | AUROC | 92.57 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs SUN | FPR95 | 37.59 | MCM (CLIP-B) |
| Out-of-Distribution Detection | ImageNet-1k vs Curated OODs (avg.) | AUROC | 91.49 | MCM (CLIP-L) |
| Out-of-Distribution Detection | ImageNet-1k vs Curated OODs (avg.) | FPR95 | 38.17 | MCM (CLIP-L) |