Nearest Neighbor Guidance for Out-of-Distribution Detection
Jaewoo Park, Yoon Gyo Jung, Andrew Beng Jin Teoh
摘要
Detecting out-of-distribution (OOD) samples are crucial for machine learning models deployed in open-world environments. Classifier-based scores are a standard approach for OOD detection due to their fine-grained detection capability. However, these scores often suffer from overconfidence issues, misclassifying OOD samples distant from the in-distribution region. To address this challenge, we propose a method called Nearest Neighbor Guidance (NNGuide) that guides the classifier-based score to respect the boundary geometry of the data manifold. NNGuide reduces the overconfidence of OOD samples while preserving the fine-grained capability of the classifier-based score. We conduct extensive experiments on ImageNet OOD detection benchmarks under diverse settings, including a scenario where the ID data undergoes natural distribution shift. Our results demonstrate that NNGuide provides a significant performance improvement on the base detection scores, achieving state-of-the-art results on both AU-ROC, FPR95, and AUPR metrics. The code is given at https://github.com/roomo7time/nnguide .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 28 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models 引用了 Energy-based Out-of-distribution Detection
- Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models 引用了 Out-of-Distribution Detection with Negative Prompts
- ReAct: Out-of-distribution Detection With Rectified Activations 引用了 Energy-based Out-of-distribution Detection
- 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
- Out-of-Distribution Detection with Deep Nearest Neighbors 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Out-of-Distribution Detection with Negative Prompts 引用了 Energy-based Out-of-distribution Detection
- Out-of-Distribution Detection with Negative Prompts 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Out-of-Distribution Detection with Negative Prompts 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- Kernel PCA for Out-of-Distribution Detection 引用了 Energy-based Out-of-distribution Detection
- Kernel PCA for Out-of-Distribution Detection 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Kernel PCA for Out-of-Distribution Detection 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- 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? 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- What If the Input is Expanded in OOD Detection? 引用了 Out-of-Distribution Detection with Deep Nearest Neighbors
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models
- 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 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- ANTS: Adaptive Negative Textual Space Shaping for OOD Detection via Test-Time MLLM Understanding and Reasoning 引用了 Out-of-Distribution Detection with Negative Prompts
- 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?
引用它的顶会 Paper28
- Out-of-Distribution Detection with Negative PromptsJun Nie, Yonggang Zhang, Zhen Fang, Tongliang Liu 等ICLR 2024 · 48 次引用
- Kernel PCA for Out-of-Distribution DetectionKun Fang, Qinghua Tao, Kexin Lv, Mingzhen He 等NeurIPS 2024 · 37 次引用
- Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language ModelsMengyuan Chen, Junyu Gao, Changsheng XuNeurIPS 2024 · 21 次引用
- 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 次引用
它引用的 Paper24
- 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 次引用
- Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 次引用
- ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 次引用
- Measuring Robustness to Natural Distribution Shifts in Image ClassificationRohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini 等NeurIPS 2020 · 731 次引用
相关 Paper
- Out-of-Distribution Detection with Relative AnglesBerker Demirel, Marco Fumero, Francesco LocatelloNeurIPS 2025 · 3 次引用
- Learning Transferable Negative Prompts for Out-of-Distribution DetectionTianqi Li, Guansong Pang, Xiao Bai, Wenjun Miao 等CVPR 2024
- Out-of-Distribution Detection with Prototypical Outlier ProxyMingrong Gong, Chaoqi Chen, Qingqiang Sun, Yue Wang 等AAAI 2025 · 8 次引用
- DiffGuard: Semantic Mismatch-Guided Out-of-Distribution Detection using Pre-trained Diffusion ModelsRuiyuan Gao, Chenchen Zhao, Lanqing Hong, Qiang XuICCV 2023 · 29 次引用
- MOS: Towards Scaling Out-of-Distribution Detection for Large Semantic SpaceRui Huang, Yixuan LiCVPR 2021
