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

Envisioning Outlier Exposure by Large Language Models for Out-of-Distribution Detection

About

Detecting out-of-distribution (OOD) samples is essential when deploying machine learning models in open-world scenarios. Zero-shot OOD detection, requiring no training on in-distribution (ID) data, has been possible with the advent of vision-language models like CLIP. Existing methods build a text-based classifier with only closed-set labels. However, this largely restricts the inherent capability of CLIP to recognize samples from large and open label space. In this paper, we propose to tackle this constraint by leveraging the expert knowledge and reasoning capability of large language models (LLM) to Envision potential Outlier Exposure, termed EOE, without access to any actual OOD data. Owing to better adaptation to open-world scenarios, EOE can be generalized to different tasks, including far, near, and fine-grained OOD detection. Technically, we design (1) LLM prompts based on visual similarity to generate potential outlier class labels specialized for OOD detection, as well as (2) a new score function based on potential outlier penalty to distinguish hard OOD samples effectively. Empirically, EOE achieves state-of-the-art performance across different OOD tasks and can be effectively scaled to the ImageNet-1K dataset. The code is publicly available at: https://github.com/tmlr-group/EOE.

Chentao Cao, Zhun Zhong, Zhanke Zhou, Yang Liu, Tongliang Liu, Bo Han• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9520.4
204
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR9512.29
132
Out-of-Distribution DetectionImageNet-1k Textures ID OOD
AUROC85.64
85
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR9512.29
64
Out-of-Distribution DetectionImageNet-1K Near-OOD OpenOOD v1.5
AUROC66.94
51
Out-of-Distribution DetectionImageNet-1K OOD Average
AUROC92.96
50
OOD DetectionImageNet-1k ID Average OOD
AUROC0.9296
50
Out-of-Distribution DetectionPlaces OOD ImageNet-1k ID
AUROC92.95
45
OOD DetectionImageNet-1K
Average FPR9530.09
44
Out-of-Distribution DetectionImageNet-1k (ID) vs Textures (OOD)
AUROC85.64
43
Showing 10 of 16 rows

Other info

Follow for update