NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anomaly Detection by an Ensemble of Random Pairs of Hyperspheres

Walid Durani, Collin Leiber, Khalid Durani, Claudia Plant, Christian BöhmNeurIPS 2025

Introduction

In the world of big data, finding the "needle in the haystack"—whether it is financial fraud, a rare disease marker, or a network intrusion—is a persistent challenge. Traditional anomaly detection methods often fall into two traps: they are either too computationally expensive to scale to massive datasets (like density-based or deep learning methods) or they rely on overly simplistic geometric assumptions (like the axis-aligned splits used in Isolation Forests).

To address this, researchers have introduced ADERH (Anomaly Detection by an Ensemble of Random Pairs of Hyperspheres). ADERH is a novel isolation-based algorithm that identifies outliers by wrapping data in an ensemble of multi-scale hyperspheres. By combining a boundary-sensitive distance metric with a density-aware weighting scheme, it consistently outperforms state-of-the-art methods while maintaining the linear scalability required for modern production environments.

Methodology: The Mechanics of ADERH

ADERH operates on the principle of $\delta$-separation, which assumes normal points cluster densely together while anomalies are significantly farther away. The algorithm's workflow consists of several clever geometric and statistical steps:

1. Random Subsetting & Compact Hypersphere Construction

The algorithm begins by taking multiple small random subsets of the data. Within each subset, it randomly pairs points. For every pair $(x, y)$, it creates two hyperspheres—one centered at $x$ and one at $y$. Crucially, it sets the radius to half the distance between them. This "halving" ensures the spheres are compact enough to cover normal clusters without accidentally swallowing nearby anomalies.

Compact hyperspheres centered on normal data points effectively isolate anomalies.

2. Pitch (Boundary Sensitivity)

To catch anomalies that lurk near the edges of normal data, ADERH calculates a metric called "Pitch"—the ratio of a point's distance from the center to the sphere's radius. Points near the boundary receive a score closer to 1, highlighting their marginal status.

3. NDensity (Density Weighting)

Not all spheres are created equal. A sphere centered on an anomaly will likely be located in a sparse region. ADERH calculates a normalized density (NDensity) for each sphere and down-weights those in sparse areas. This prevents spheres centered on outliers from assigning "normal" scores to other nearby anomalies.

NDensity down-weights hyperspheres centered in sparse, anomalous regions.

4. Multiplicative Fusion & Ensembling

The final base score for a point is a product of $(1 - \text{NDensity})$ and Pitch. This multiplicative fusion acts as a logical "AND," ensuring a high anomaly score only occurs when a point is both near a boundary and in a sparse region. These scores are then averaged across hundreds of subsets to produce a stable, robust final anomaly score.

Experimental Evaluation and Results

The authors evaluated ADERH on 19 diverse real-world datasets sourced from the AdBenchmark repository, ranging from image-derived features (MNIST, Celeba) to tabular data (Census, Credit Card).

ADERH demonstrated dominant performance across the board:

  • Top Performance: It achieved the #1 rank on 11 out of 19 datasets for AUC-ROC, securing the lowest average rank (1.68) compared to all competitors.
  • Beating the State-of-the-Art: It significantly outperformed established benchmarks like Isolation Forest (avg. rank 5.26) and INNE (avg. rank 6.32), as well as deep learning approaches like DeepSVDD.
  • Robustness and Scalability: The method showed remarkably stable performance across different hyperparameter settings, eliminating the need for exhaustive grid-searching. Furthermore, despite its sophisticated geometric logic, the algorithm’s complexity remains linear relative to the number of data points.

Limitations and Future Work

The authors acknowledge the inherent "Curse of Dimensionality." Like all distance-based methods, ADERH's ability to distinguish between points weakens as the number of dimensions increases, a scenario where every point eventually appears "far" from every other point.

For future work, the researchers suggest exploring deep learning as a pre-processing step to transform the feature space. By "stretching" the data manifold, anomalies could be pushed even further away before the hyperspheres are applied, paving the way for dimensionality-aware models that handle complex data structures more gracefully.

Summary updated

BibTeX
@inproceedings{durani2025anomaly,
  author = {Walid Durani and Collin Leiber and Khalid Durani and Claudia Plant and Christian Böhm},
  title = {{Anomaly Detection by an Ensemble of Random Pairs of Hyperspheres}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=vM4PIjsJDG},
}
Figure