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

Isolation-based Spherical Ensemble Representations for Anomaly Detection

Yang Cao, Sikun Yang, Hao Tian, Kai He, Lianyong Qi, Ming Liu, Yujiu Yang · DOI

Abstract

Unsupervised anomaly detection often faces a trade-off between computational efficiency and the ability to capture local density. While isolation-based methods like Isolation Forest offer linear-time complexity, they struggle with local anomalies and axis-parallel bias. Conversely, density-based methods are effective but computationally expensive. This paper introduces Isolation-based Spherical Ensemble Representations (ISER), a novel method that bridges this gap. ISER utilizes the radii of randomly sampled hyperspheres as proxies for local density, creating an ensemble representation that effectively detects both global and local anomalies. Experimental results across 22 real-world datasets demonstrate that ISER outperforms 11 baseline methods while maintaining linear-time scalability.

Introduction

Unsupervised anomaly detection is a critical task in data science, yet existing methods often force a choice between accuracy and scalability. Distance and density-based methods, such as Local Outlier Factor (LOF), excel at identifying local anomalies but suffer from $O(n^2)$ time complexity. Isolation-based methods, like Isolation Forest (iForest), achieve $O(n)$ efficiency but are prone to "axis-parallel bias" and struggle with complex local structures. ISER aims to provide the best of both worlds: the efficiency of isolation-based approaches with the nuanced density awareness of distance-based methods.

Methodology

The ISER framework operates through a three-step process designed to capture local density information efficiently:

  1. Spherical Partitioning: Instead of using random hyperplanes, ISER samples a small subset of points ($\psi$) and constructs hyperspheres around them. The radius of each sphere is determined by the distance to its nearest neighbor within the sample. This approach uses small radii to represent dense regions and large radii for sparse ones.
  2. Ensemble Representation: By repeating this process $t$ times, an ensemble is created. Each data point is mapped to a $t$-dimensional feature vector based on its position relative to these hyperspheres. Points inside a sphere receive a score based on the inverse radius ($1 - 1/r$), while those outside receive a score of 1.
  3. Scoring: Two scoring variants are proposed: ISER-A (Average-based), which uses the arithmetic mean of the vector, and ISER-S (Similarity-based), which calculates the cosine similarity to a theoretical "perfect anomaly" vector.
The ISER workflow: from spherical partitioning to ensemble representation.

Key Insights

The fundamental innovation of ISER lies in using nearest-neighbor distances within random samples as proxies for global density. This avoids the $O(n^2)$ cost of full pairwise distance calculations. Furthermore, by using absolute inverse radii rather than relative density, ISER maintains discriminative power in sparse regions.

A significant advantage of this spherical approach is the elimination of axis-parallel bias. As shown in the synthetic dataset visualizations, ISER produces smooth, contour-like decision boundaries that accurately follow the data distribution, unlike the blocky boundaries often seen in tree-based methods.

Decision boundaries of ISER variants compared to baselines on synthetic datasets S1 and S2.

Results and Discussion

ISER-S demonstrated superior performance across 22 real-world benchmark datasets, achieving the highest median AUC-ROC (~0.90) and AUC-PR. It statistically outperformed 11 baseline methods, including iForest, LOF, and deep learning models like DeepSVDD.

The authors also introduced ISER-IF, which uses the ISER representation as a feature space for a standard Isolation Forest. This hybrid approach yielded dramatic improvements, particularly on datasets where iForest typically fails. For instance, on the 'speech' dataset, AUC-PR increased by over 400%. Computationally, ISER remains highly efficient, maintaining $O(n)$ time complexity and outperforming competitors like IDK by avoiding expensive kernel calculations.

Conclusion

ISER effectively bridges the gap between isolation-based efficiency and density-based accuracy. By leveraging spherical partitioning and ensemble representations, it provides a robust, scalable solution for unsupervised anomaly detection. Future work will focus on adaptive parameter selection for the sample size $\psi$ and extending the framework to streaming data environments.

Summary updated

BibTeX
@misc{cao2025isolation,
  author = {Yang Cao and Sikun Yang and Hao Tian and Kai He and Lianyong Qi and Ming Liu and Yujiu Yang},
  title = {{Isolation-based Spherical Ensemble Representations for Anomaly Detection}},
  year = {2025},
  eprint = {2510.13311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.13311},
}
Figure