Quantifying Statistical Significance of Deep Nearest Neighbor Anomaly Detection via Selective Inference

Mizuki Niihori, Shuichi Nishino, Teruyuki Katsuoka, Tomohiro Shiraishi, Kouichi Taji +1 more
2/18/2025
stat.MLcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

In real-world applications, anomaly detection (AD) often operates without access to anomalous data, necessitating semi-supervised methods that rely solely on normal data. Among these methods, deep k-nearest neighbor (deep kNN) AD stands out for its interpretability and flexibility, leveraging distance-based scoring in deep latent spaces.Despite its strong performance, deep kNN lacks a mechanism to quantify uncertainty-an essential feature for critical applications such as industrial inspection. To address this limitation, we propose a statistical framework that quantifies the significance of detected anomalies in the form of p-values, thereby enabling control over false positive rates at a user-specified significance level (e.g.,0.05). A central challenge lies in managing selection bias, which we tackle using Selective Inference-a principled method for conducting inference conditioned on data-driven selections. We evaluate our method on diverse datasets and demonstrate that it provides reliable AD well-suited for industrial use cases.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{niihori2025quantifying,
  title  = {Quantifying Statistical Significance of Deep Nearest Neighbor Anomaly Detection via Selective Inference},
  author = {Mizuki Niihori and Shuichi Nishino and Teruyuki Katsuoka and Tomohiro Shiraishi and Kouichi Taji and Ichiro Takeuchi},
  year   = {2025},
  eprint = {2502.12978},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12978v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12978.svg)](https://codeofpaper.com/paper/2502.12978)

Discussion