Out-of-Distribution Detection with Deep Nearest Neighbors
Yiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan Li
摘要
Out-of-distribution (OOD) detection is a critical task for deploying machine learning models in the open world. Distance-based methods have demonstrated promise, where testing samples are detected as OOD if they are relatively far away from in-distribution (ID) data. However, prior methods impose a strong distributional assumption of the underlying feature space, which may not always hold. In this paper, we explore the efficacy of non-parametric nearest-neighbor distance for OOD detection, which has been largely overlooked in the literature. Unlike prior works, our method does not impose any distributional assumption, hence providing stronger flexibility and generality. We demonstrate the effectiveness of nearest-neighbor-based OOD detection on several benchmarks and establish superior performance. Under the same model trained on ImageNet-1k, our method substantially reduces the false positive rate (FPR@TPR95) by 24.77% compared to a strong baseline SSD+, which uses a parametric approach Mahalanobis distance in detection. Code is available: https://github.com/ deeplearning-wisc/knn-ood .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 241 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation 引用了 Delving into Out-of-Distribution Detection with Vision-Language Representations
- In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation 引用了 Energy-based Out-of-distribution Detection
- In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning 引用了 Delving into Out-of-Distribution Detection with Vision-Language Representations
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning 引用了 Energy-based Out-of-distribution Detection
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Mitigating Neural Network Overconfidence with Logit Normalization 引用了 Energy-based Out-of-distribution Detection
- Mitigating Neural Network Overconfidence with Logit Normalization 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Mitigating Neural Network Overconfidence with Logit Normalization 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Delving into Out-of-Distribution Detection with Vision-Language Representations 引用了 Energy-based Out-of-distribution Detection
- Delving into Out-of-Distribution Detection with Vision-Language Representations 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Delving into Out-of-Distribution Detection with Vision-Language Representations 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
- Delving into Out-of-Distribution Detection with Vision-Language Representations 引用了 Is Out-of-Distribution Detection Learnable?
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- ReAct: Out-of-distribution Detection With Rectified Activations 引用了 Energy-based Out-of-distribution Detection
- Supervised Contrastive Learning 引用了 A Simple Framework for Contrastive Learning of Visual Representations
- Is Out-of-Distribution Detection Learnable? 引用了 Energy-based Out-of-distribution Detection
- Is Out-of-Distribution Detection Learnable? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Is Out-of-Distribution Detection Learnable? 引用了 ReAct: Out-of-distribution Detection With Rectified Activations
引用它的顶会 Paper241
- Mitigating Neural Network Overconfidence with Logit NormalizationHongxin Wei, Renchunzi Xie, Hao Cheng, Lei Feng 等ICML 2022 · 386 次引用
- Delving into Out-of-Distribution Detection with Vision-Language RepresentationsYifei Ming, Ziyang Cai, Jiuxiang Gu, Yiyou Sun 等NeurIPS 2022 · 308 次引用
- Is Out-of-Distribution Detection Learnable?Zhen Fang, Yixuan Li, Jie Lu, Jiahua Dong 等NeurIPS 2022 · 188 次引用
- LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt LearningAtsuyuki Miyai, Qing Yu, Go Irie, Kiyoharu AizawaNeurIPS 2023 · 174 次引用
- In or Out? Fixing ImageNet Out-of-Distribution Detection EvaluationJulian Bitterwolf, Maximilian Müller, Matthias HeinICML 2023 · 154 次引用
它引用的 Paper21
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna 等NeurIPS 2020 · 7,049 次引用
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 次引用
- ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 次引用
相关 Paper
- Non-parametric Outlier SynthesisLeitian Tao, Xuefeng Du, Jerry Zhu, Yixuan LiICLR 2023 · 6 次引用
- Nearest Neighbor Guidance for Out-of-Distribution DetectionJaewoo Park, Yoon Gyo Jung, Andrew Beng Jin TeohICCV 2023 · 74 次引用
- How to Overcome Curse-of-Dimensionality for Out-of-Distribution Detection?Soumya Suvra Ghosal, Yiyou Sun, Yixuan LiAAAI 2024 · 26 次引用
- Simple and Effective Out-of-Distribution Detection via Cosine-based Softmax LossSoonCheol Noh, DongEon Jeong, Jee-Hyong LeeICCV 2023 · 6 次引用
- SSD: A Unified Framework for Self-Supervised Outlier DetectionVikash Sehwag, Mung Chiang, Prateek MittalICLR 2021 · 410 次引用
