Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIP
Sepideh Esmaeilpour, Bing Liu, Eric Robertson, Lei Shu
Abstract
In an out-of-distribution (OOD) detection problem, samples of known classes (also called in-distribution classes) are used to train a special classifier. In testing, the classifier can (1) classify the test samples of known classes to their respective classes and also (2) detect samples that do not belong to any of the known classes (i.e., they belong to some unknown or OOD classes). This paper studies the problem of zero-shot out-of-distribution (OOD) detection, which still performs the same two tasks in testing but has no training except using the given known class names. This paper proposes a novel and yet simple method (called ZOC) to solve the problem. ZOC builds on top of the recent advances in zero-shot classification through multi-modal representation learning. It first extends the pre-trained language-vision model CLIP by training a text-based image description generator on top of CLIP. In testing, it uses the extended model to generate candidate unknown class names for each test sample and computes a confidence score based on both the known class names and candidate unknown class names for zero-shot OOD detection. Experimental results on 5 benchmark datasets for OOD detection demonstrate that ZOC outperforms the baselines by a large margin.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
75 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites Exploring the Limits of Out-of-Distribution Detection
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning cites Learning Transferable Visual Models From Natural Language Supervision
- Exploring the Limits of Out-of-Distribution Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Exploring the Limits of Out-of-Distribution Detection cites Learning Transferable Visual Models From Natural Language Supervision
- CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No cites Exploring the Limits of Out-of-Distribution Detection
- CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No cites Learning Transferable Visual Models From Natural Language Supervision
- AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection cites Learning Transferable Visual Models From Natural Language Supervision
- Negative Label Guided OOD Detection with Pretrained Vision-Language Models cites Exploring the Limits of Out-of-Distribution Detection
- Negative Label Guided OOD Detection with Pretrained Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Cited by top-tier papers75
- AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly DetectionQihang Zhou, Guansong Pang, Yu Tian, Shibo He et al.ICLR 2024 · 380 citations
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt LearningAtsuyuki Miyai, Qing Yu, Go Irie, Kiyoharu AizawaNeurIPS 2023 · 174 citations
- CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say NoHualiang Wang, Yi Li, Huifeng Yao, Xiaomeng LiICCV 2023 · 171 citations
- A Theoretical Study on Solving Continual LearningGyuhak Kim, Changnan Xiao, Tatsuya Konishi, Zixuan Ke et al.NeurIPS 2022 · 119 citations
- Negative Label Guided OOD Detection with Pretrained Vision-Language ModelsXue Jiang, Feng Liu, Zhen Fang, Hong Chen et al.ICLR 2024 · 73 citations
Builds on7
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- Exploring the Limits of Out-of-Distribution DetectionStanislav Fort, Jie Ren, Balaji LakshminarayananNeurIPS 2021 · 443 citations
- ODIST: Open World Classification via Distributionally Shifted InstancesLei Shu, Yassine Benajiba, Saab Mansour, Yi ZhangEMNLP Findings 2021 · 22 citations
Related papers
- Envisioning Outlier Exposure by Large Language Models for Out-of-Distribution DetectionChentao Cao, Zhun Zhong, Zhanke Zhou, Yang Liu et al.ICML 2024 · 34 citations
- ProxyDet: Synthesizing Proxy Novel Classes via Classwise Mixup for Open-Vocabulary Object DetectionJoonhyun Jeong, Geondo Park, Jayeon Yoo, Hyungsik Jung et al.AAAI 2024 · 18 citations
- CLIPText: A New Paradigm for Zero-shot Text ClassificationLibo Qin, Weiyun Wang, Qiguang Chen, Wanxiang CheACL Findings 2023 · 12 citations
- CLIP4HOI: Towards Adapting CLIP for Practical Zero-Shot HOI DetectionYunyao Mao, Jiajun Deng, Wengang Zhou, Li Li et al.NeurIPS 2023 · 62 citations
- Out-of-Distribution Detection with Negative PromptsJun Nie, Yonggang Zhang, Zhen Fang, Tongliang Liu et al.ICLR 2024 · 48 citations
