LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning
Atsuyuki Miyai, Qing Yu, Go Irie, Kiyoharu Aizawa
摘要
We present a novel vision-language prompt learning approach for few-shot out-of-distribution (OOD) detection. Few-shot OOD detection aims to detect OOD images from classes that are unseen during training using only a few labeled in-distribution (ID) images. While prompt learning methods such as CoOp have shown effectiveness and efficiency in few-shot ID classification, they still face limitations in OOD detection due to the potential presence of ID-irrelevant information in text embeddings. To address this issue, we introduce a new approach called Local regularized Context Optimization (LoCoOp), which performs OOD regularization that utilizes the portions of CLIP local features as OOD features during training. CLIP's local features have a lot of ID-irrelevant nuisances (e.g., backgrounds), and by learning to push them away from the ID class text embeddings, we can remove the nuisances in the ID class text embeddings and enhance the separation between ID and OOD. Experiments on the large-scale ImageNet OOD detection benchmarks demonstrate the superiority of our LoCoOp over zero-shot, fully supervised detection methods and prompt learning methods. Notably, even in a one-shot setting -- just one label per class, LoCoOp outperforms existing zero-shot and fully supervised detection methods. The code will be available via https://github.com/AtsuMiyai/LoCoOp.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 41 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Conditional Prompt Learning for Vision-Language Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Conditional Prompt Learning for Vision-Language Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models 引用了 Energy-based Out-of-distribution Detection
- AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection 引用了 Conditional Prompt Learning for Vision-Language Models
- Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection 引用了 Energy-based Out-of-distribution Detection
- Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection 引用了 Learning Transferable Visual Models From Natural Language Supervision
- An Information-theoretical Framework for Understanding Out-of-distribution Detection with Pretrained Vision-Language Models 引用了 Energy-based Out-of-distribution Detection
- An Information-theoretical Framework for Understanding Out-of-distribution Detection with Pretrained Vision-Language Models 引用了 AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models
- An Information-theoretical Framework for Understanding Out-of-distribution Detection with Pretrained Vision-Language Models 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- An Information-theoretical Framework for Understanding Out-of-distribution Detection with Pretrained Vision-Language Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Out-of-Distribution Detection with Deep Nearest Neighbors 引用了 Energy-based Out-of-distribution Detection
- Out-of-Distribution Detection with Deep Nearest Neighbors 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- What If the Input is Expanded in OOD Detection? 引用了 Energy-based Out-of-distribution Detection
- What If the Input is Expanded in OOD Detection? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- What If the Input is Expanded in OOD Detection? 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- What If the Input is Expanded in OOD Detection? 引用了 Learning Transferable Visual Models From Natural Language Supervision
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 Energy-based Out-of-distribution Detection
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 Learning Transferable Visual Models From Natural Language Supervision
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 What If the Input is Expanded in OOD Detection?
引用它的顶会 Paper41
- AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language ModelsYabin Zhang, Lei ZhangNeurIPS 2024 · 30 次引用
- Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution DetectionGeng Yu, Jianing Zhu, Jiangchao Yao, Bo HanNeurIPS 2024 · 26 次引用
- What If the Input is Expanded in OOD Detection?Boxuan Zhang, Jianing Zhu, Zengmao Wang, Tongliang Liu 等NeurIPS 2024 · 19 次引用
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and ReasoningWenjie Zhu, Yabin Zhang, Xin Jin, Wenjun Zeng 等CVPR 2026 · 12 次引用
- An Information-theoretical Framework for Understanding Out-of-distribution Detection with Pretrained Vision-Language ModelsBo Peng, Jie Lu, Guangquan Zhang, Zhen FangNeurIPS 2025 · 9 次引用
它引用的 Paper32
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 次引用
- Conditional Prompt Learning for Vision-Language ModelsKaiyang Zhou, Jingkang Yang, Chen Change Loy, Ziwei LiuCVPR 2022 · 1,438 次引用
- Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 次引用
相关 Paper
- Overcoming Shortcut Problem in VLM for Robust Out-of-Distribution DetectionZhuo Xu, Xiang Xiang, Yifan LiangCVPR 2025
- FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution DetectionXinhua Lu, Runhe Lai, Yanqi Wu, Kanghao Chen 等ICCV 2025 · 1 次引用
- DeCoOp: Robust Prompt Tuning with Out-of-Distribution DetectionZhi Zhou, Ming Yang, Jiang-Xin Shi, Lan-Zhe Guo 等ICML 2024 · 14 次引用
- Knowledge-Aware Prompt Tuning for Generalizable Vision-Language ModelsBaoshuo Kan, Teng Wang, Wenpeng Lu, Xiantong Zhen 等ICCV 2023 · 53 次引用
- Enhanced OoD Detection through Cross-Modal Alignment of Multi-Modal RepresentationsJeonghyeon Kim, Sangheum HwangCVPR 2025
