Nearest Neighbor Guidance for Out-of-Distribution Detection
Abstract
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 AUROC, FPR95, and AUPR metrics.
Cite
Text
Park et al. "Nearest Neighbor Guidance for Out-of-Distribution Detection." International Conference on Computer Vision, 2023. doi:10.1109/ICCV51070.2023.00162Markdown
[Park et al. "Nearest Neighbor Guidance for Out-of-Distribution Detection." International Conference on Computer Vision, 2023.](https://mlanthology.org/iccv/2023/park2023iccv-nearest/) doi:10.1109/ICCV51070.2023.00162BibTeX
@inproceedings{park2023iccv-nearest,
title = {{Nearest Neighbor Guidance for Out-of-Distribution Detection}},
author = {Park, Jaewoo and Jung, Yoon Gyo and Teoh, Andrew Beng Jin},
booktitle = {International Conference on Computer Vision},
year = {2023},
pages = {1686-1695},
doi = {10.1109/ICCV51070.2023.00162},
url = {https://mlanthology.org/iccv/2023/park2023iccv-nearest/}
}