Skip to main content
QUICK REVIEW

[Paper Review] Neighborhood Averaging for Improving Outlier Detectors

Jiawei Yang, Susanto Rahardja|arXiv (Cornell University)|Mar 17, 2023
Anomaly Detection Techniques and ApplicationsComputer Science3 citations
TL;DR

This paper proposes Neighborhood Averaging (NA), a post-processing technique that improves outlier detectors by smoothing outlier scores using the k-nearest neighbors' scores, ensuring similar objects receive similar scores. NA boosts the average AUC of 10 baseline detectors by 13% (from 0.70 to 0.79) across nine real-world datasets, including k-NN-based detectors, and reduces the significance of detector choice when NA is applied.

ABSTRACT

We hypothesize that similar objects should have similar outlier scores. To our knowledge, all existing outlier detectors calculate the outlier score for each object independently regardless of the outlier scores of the other objects. Therefore, they do not guarantee that similar objects have similar outlier scores. To verify our proposed hypothesis, we propose an outlier score post-processing technique for outlier detectors, called neighborhood averaging(NA), which pays attention to objects and their neighbors and guarantees them to have more similar outlier scores than their original scores. Given an object and its outlier score from any outlier detector, NA modifies its outlier score by combining it with its k nearest neighbors' scores. We demonstrate the effectivity of NA by using the well-known k-nearest neighbors (k-NN). Experimental results show that NA improves all 10 tested baseline detectors by 13% (from 0.70 to 0.79 AUC) on average evaluated on nine real-world datasets. Moreover, even outlier detectors that are already based on k-NN are also improved. The experiments also show that in some applications, the choice of detector is no more significant when detectors are jointly used with NA, which may pose a challenge to the generally considered idea that the data model is the most important factor. We open our code on www.outlierNet.com for reproducibility.

Motivation & Objective

  • To address the limitation in existing outlier detectors that compute scores independently, without enforcing consistency among similar objects.
  • To validate the hypothesis that similar objects should have similar outlier scores.
  • To develop a post-processing method that enforces score consistency using neighborhood information.
  • To demonstrate that NA improves both standard and k-NN-based outlier detectors uniformly.
  • To reduce the dependency on detector selection by making performance more consistent across models when NA is applied.

Proposed method

  • Apply neighborhood averaging by computing a weighted average of an object’s outlier score and those of its k nearest neighbors.
  • Use the k-NN graph to identify neighbors, ensuring local similarity is preserved in the score space.
  • Modify the original outlier score via a convex combination of the object’s score and the average of its neighbors’ scores.
  • The method is model-agnostic and can be applied post-hoc to any existing outlier detector.
  • The neighborhood structure is derived from the input data space, preserving local geometric relationships.
  • The technique is computationally efficient and does not require retraining or architectural changes to the base detector.

Experimental results

Research questions

  • RQ1Does enforcing similar outlier scores for similar objects improve detector performance?
  • RQ2Can a post-processing technique like neighborhood averaging consistently improve diverse outlier detectors?
  • RQ3To what extent does NA reduce the performance gap between different outlier detection models?
  • RQ4How does NA affect k-NN-based detectors, which already rely on neighborhood structure?
  • RQ5Does NA diminish the importance of detector selection in practical applications?

Key findings

  • Neighborhood averaging improved the average AUC of 10 tested baseline outlier detectors by 13%, rising from 0.70 to 0.79 across nine real-world datasets.
  • Even k-NN-based detectors, which inherently use neighborhood information, showed measurable performance gains when NA was applied.
  • The performance improvement was consistent across different data types and anomaly patterns, indicating broad applicability.
  • After applying NA, the choice of outlier detector became less critical, as performance differences across models diminished significantly.
  • The method is effective, lightweight, and applicable as a post-processing step without modifying the original detector architecture.
  • The authors released code to ensure reproducibility and facilitate integration into existing pipelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.