[Paper Review] Anomaly Detection with Score functions based on Nearest Neighbor Graphs
This paper proposes a non-parametric anomaly detection algorithm using score functions derived from K-nearest neighbor graphs (K-NNG) on nominal data. By estimating the volume of minimum volume (MV) level sets containing each test point, the method achieves asymptotically optimal detection with provable false alarm control, scaling linearly in dimension and quadratically in data size without requiring tuning parameters or density assumptions.
We propose a novel non-parametric adaptive anomaly detection algorithm for high dimensional data based on score functions derived from nearest neighbor graphs on $n$-point nominal data. Anomalies are declared whenever the score of a test sample falls below $α$, which is supposed to be the desired false alarm level. The resulting anomaly detector is shown to be asymptotically optimal in that it is uniformly most powerful for the specified false alarm level, $α$, for the case when the anomaly density is a mixture of the nominal and a known density. Our algorithm is computationally efficient, being linear in dimension and quadratic in data size. It does not require choosing complicated tuning parameters or function approximation classes and it can adapt to local structure such as local change in dimensionality. We demonstrate the algorithm on both artificial and real data sets in high dimensional feature spaces.
Motivation & Objective
- To develop a non-parametric anomaly detection method that adapts to local data structure in high-dimensional spaces without requiring density assumptions.
- To provide a computationally efficient alternative to existing methods that rely on complex tuning parameters or function approximation classes.
- To achieve provably optimal detection performance by connecting score functions to minimum volume (MV) sets and multivariate p-values.
- To control false alarm rates precisely at a desired level α without requiring explicit computation of high-dimensional level sets.
- To demonstrate robustness and adaptability to varying local dimensionality and manifold structures in real and synthetic data.
Proposed method
- Constructs a K-nearest neighbor graph (K-NNG) on the nominal training data to capture local neighborhood structure.
- Defines a score function for each test point as an empirical estimate of the volume of the minimum volume (MV) level set containing it.
- Uses the K-NN graph to compute the volume of MV sets indirectly, avoiding direct high-dimensional level set computation.
- Applies the score function to detect anomalies: any test point with score below threshold α is flagged as anomalous.
- Employs a leave-one-out strategy to estimate the MV set volume efficiently, ensuring computational scalability.
- Uses geodesic distance for high-dimensional data to better capture intrinsic manifold structure.
Experimental results
Research questions
- RQ1Can a non-parametric anomaly detection method be designed that achieves uniform most powerful detection for a specified false alarm level α without requiring parametric assumptions?
- RQ2How can the volume of minimum volume (MV) level sets be estimated efficiently in high-dimensional spaces without explicit level set computation?
- RQ3To what extent can a K-NNG-based score function approximate the true multivariate p-value and ensure optimal statistical power?
- RQ4How does the method adapt to local changes in dimensionality and intrinsic manifold structure in real-world data?
- RQ5Can the proposed method outperform existing approaches like one-class SVM or K-NN in terms of false alarm control and computational efficiency?
Key findings
- The proposed K-LPE (K-nearest neighbor-based Local P-value Estimation) algorithm achieves ROC curves very close to the clairvoyant optimal ROC curve even with small training sets (n=160), demonstrating strong empirical performance.
- For the USPS dataset, the method achieves a false positive rate of 6.1% and false alarm rate of 5.7% at α=0.5, outperforming OC-SVM (FP=7%, FA=9%) under comparable conditions.
- The algorithm scales linearly with dimension and quadratically with data size, making it suitable for high-dimensional feature spaces.
- The score function is asymptotically consistent, converging to the true multivariate p-value as the sample size increases.
- The method does not require tuning parameters such as kernel bandwidth or function approximation classes, simplifying deployment.
- The K-LPE variant is more practical than ε-LPE due to the ease of selecting K, with K ≈ n^{2/5} serving as a robust rule of thumb across different dimensions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.