Internal Evaluation of Unsupervised Anomaly Detection Algorithms with Explanation

Yue Shao, Baile Xu, Furao Shen, Jian ZhaoNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

How do you grade an anomaly detector when you don't have the answer key? Existing label-free evaluation methods either ignore the actual data or rely on finicky auxiliary classifiers. This paper introduces SSSD (Similar Scores, Similar Data), a fast, interpretable framework that spots bad anomaly detectors—and even pinpoints individual mislabeled data points—by catching places where a model's anomaly scores contradict the local geometry of the data.

What Problem Does This Paper Address?

Unsupervised anomaly detection (UAD) is used everywhere from fraud detection to industrial manufacturing, precisely because labeled anomalies are rare and expensive to get. Yet, when researchers evaluate these unsupervised algorithms, they almost always fall back on supervised metrics like ROC-AUC or Average Precision. In the real world, without labels, you can't compute those metrics.

So, how do you evaluate a UAD model without labels? Current "internal" evaluation methods have major blind spots:

  1. Score-only methods look solely at the distribution of anomaly scores. As shown below, two models can produce the exact same score distribution while having wildly different accuracy—one cleanly isolating true outliers, the other flagging random normal points.
  2. Classifier-based methods train an auxiliary classifier (like an SVM) on the model's predictions to see how separable they are. This is computationally heavy and depends heavily on which classifier you pick.
  3. Consensus-based methods compare multiple models against each other, which breaks down if you only have one model or if all your models are bad.

Worst of all, these methods just spit out a single number—they don't tell you why a model failed or which data points it got wrong.

Two models with identical anomaly score distributions but very different detection quality.

Methods

The authors' key insight comes from the smoothness assumption in machine learning: similar inputs should produce similar outputs. In anomaly detection, this means locally similar data points should get similar anomaly scores.

Instead of testing this directly, SSSD flips it around to catch violations: if two points receive similar anomaly scores, their local neighborhoods should look similar. If they don't, the model probably made a mistake.

Here is how SSSD works in three steps:

  1. Capture the local neighborhood: For each data point, SSSD looks at its $k$ nearest neighbors (using Euclidean distance) and computes two robust local summaries:
  2. Nearby-distance: A weighted sum of distances to its $k$ neighbors (measuring local density/sparsity).
  3. Nearby-score: A weighted sum of the anomaly scores of its $k$ neighbors (measuring whether it's surrounded by normal or anomalous points). (Note: Weights decrease linearly by neighbor rank rather than raw distance, so true outliers don't get drowned out.)
  4. Spot inconsistencies among score-similar points: Sort all data points by their anomaly scores. Points sitting next to each other in this sorted list have similar scores. For each point, SSSD compares its nearby-distance and nearby-score against the moving average of its $2m+1$ score-similar neighbors. Any deviation above a local noise threshold becomes Distance-SSSD and Score-SSSD, respectively.
  5. Aggregate: The final SSSD score is simply a weighted sum of Distance-SSSD and Score-SSSD (with $\alpha = 0.5$, $k=5$, and $m=5$ in the paper's experiments). Lower SSSD means fewer inconsistencies—and a better model.

The whole pipeline runs in $O(N \log N)$ time using a ball-tree for neighbor search and standard sorting.

Datasets

The authors tested SSSD across 8 popular anomaly detectors (LODA, ABOD, iForest, kNN, LOF, HBOS, OCSVM, and PCA) on:

  • 9 synthetic datasets with varying shapes, distributions, and dimensionalities.
  • 16 real-world datasets from the DAMI and ODDS repositories, ranging from 6 to 1,555 dimensions (including Glass, Ionosphere, Letter, Lympho, Vertebral, Vowels, WBC, Satellite, Shuttle, WDBC, and InternetAds).

Key Insights and Ideas

  • You need both distance and score consistency: Relying only on Distance-SSSD can bias evaluations toward distance-based detectors (like kNN) and miss anomalies that aren't far away in Euclidean space. Pairing it with Score-SSSD balances spatial and score-based anomalies.
  • Built-in, data-level interpretability: Because SSSD computes a score for every single data point, high-SSSD points act as a spotlight for potential model errors—giving practitioners a concrete list of suspiciously labeled samples to inspect.

Key Results

  • Stronger alignment with ground truth: Across the 16 real-world datasets, final SSSD achieved the highest average Pearson correlation with external supervised metrics—0.6651 with AP, 0.6355 with ROC-AUC, and 0.6930 with Prec@k—outperforming Distance-SSSD, Score-SSSD, IREOS, and clustering-based metrics. It also had the fewest negative correlations.
  • Pinpointing mislabeled data: When used to inspect PCA's errors across 7 real-world datasets, the top 5%, 20%, and 60% of Distance-SSSD scores successfully captured 14.72%, 34.03%, and 84.62% of all mislabeled points. On the Vowels dataset across all 8 detectors, the top 60% of Distance-SSSD, Score-SSSD, and final SSSD scores caught 93.23%, 88.22%, and 76.10% of mislabeled points, respectively.

Limitations and Future Work

SSSD isn't a silver bullet. The authors note that it can become less reliable when the core assumption—that score similarity implies data similarity—doesn't hold. Its performance can also be affected by feature scaling, high dimensionality, the choice of distance metric, and heavily skewed score distributions.

Looking ahead, the authors suggest using SSSD for automated unsupervised model selection, SSSD-guided model refinement, and extending the framework to streaming data and active learning.

Summary updated

BibTeX
@inproceedings{shao2026internal,
  author = {Yue Shao and Baile Xu and Furao Shen and Jian Zhao},
  title = {{Internal Evaluation of Unsupervised Anomaly Detection Algorithms with Explanation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nph44qznwG},
}
Figure