Isolation Distributional Kernel: A New Tool for Point & Group Anomaly Detection

Kai Ming Ting, Bi-Cun Xu, Takashi Washio, Zhi-Hua Zhou

TL;DR

The Isolation Distributional Kernel (IDK) is a new, data-dependent tool for anomaly detection that solves the computational bottlenecks and accuracy limitations of traditional kernel methods. By leveraging a finite-dimensional feature map, IDK enables linear-time point and group anomaly detection, outperforming state-of-the-art methods like OCSVM and OCSMM in both speed and accuracy without requiring explicit learning.

What Problem Does This Paper Address?

Anomaly detection—identifying data points or groups that deviate from the norm—is critical in fields ranging from cybersecurity to astronomy. Traditional approaches often rely on Kernel Mean Embedding (KME), which maps data distributions into a high-dimensional Hilbert space to measure similarity.

However, standard KME methods face two major hurdles:

  1. Intractable Dimensionality: They typically use data-independent kernels (like the Gaussian kernel) that have infinite-dimensional feature maps. This forces a computational complexity of $O(n^2)$, making them unusable for large-scale datasets.
  2. Data Independence: These kernels don't adapt to the local density of the data. In anomaly detection, a "normal" point in a sparse region might look very different from a "normal" point in a dense region, but data-independent kernels treat them the same, leading to poor detection accuracy.

Methods

The authors introduce the Isolation Distributional Kernel (IDK), built upon the Isolation Kernel (IK).

The Core Innovation: Data-Dependent Partitioning

Unlike Gaussian kernels that use a fixed mathematical function, the Isolation Kernel is built by randomly sampling points from the dataset to create hyperspheres.

  • Point Anomaly Detection: Points are mapped to a feature space $\Phi$ where their position depends on which hyperspheres they fall into. Crucially, anomalies—which often fall outside these hyperspheres—are mapped close to the origin of the Hilbert space.
  • Group Anomaly Detection ($IDK^2$): The authors propose a two-level approach. First, they map groups of points in the input space to single points in a Hilbert space using IDK. Then, they apply IDK again to detect "point anomalies" in that Hilbert space, which effectively identifies group anomalies in the original space.
Fig. 1. An illustration of feature map Φ of Isolation Kernel with one partitioning (t = 1) of three hyperspheres, each centred at a point (as red dot) z ∈D where |D| = ψ = 3 points are randomly selected from the given dataset D. When a point x falls into an overlapping region, x is regarded to be in the hypersphere whose centre is closer to x.

Standard methods often require complex optimization (learning). IDK achieves superior results through its geometric properties alone, requiring no explicit learning phase.

Datasets

The authors evaluated their method across a wide array of benchmarks:

  • Point Anomaly Detection: 14 datasets including speech, MNIST, ForestCover, and http (ranging from ~3,600 to ~567,000 instances).
  • Group Anomaly Detection: Astronomy data (SDSS), MNIST groups, and large-scale artificial Gaussian datasets (up to 1 million points).

Key Insights and Ideas

  • The Power of Sparsity: The Isolation Kernel naturally produces larger partitions in sparse regions and smaller ones in dense regions. This "data-dependent" property is the secret sauce that allows it to distinguish local anomalies that traditional kernels miss.
  • Linear Complexity: Because IDK has an exact, finite-dimensional feature map, its time complexity is $O(n)$ rather than $O(n^2)$. This makes it feasible for "big data" applications where $O(n^2)$ methods would time out.
  • Robustness to Contamination: Anomaly detectors are often trained on data that already contains some anomalies (unsupervised learning). The authors show that IDK is remarkably stable even when the training set is heavily "contaminated" with outliers.
Fig. 4. An one-dimensional dataset having three normal clusters of Gaussian distributions and one anomaly cluster (the small cluster on the right). They have a total of 1500+20 points. The bottom line shows the density distribution as estimated by a kernel density estimator (KDE) using Gaussian kernel (its scale is not shown on the y-axis.) The distributions of scores/similarities of OCSVM and bKI (scales in y-axis) are shown. The scores of OCSVM have been inversed and rescaled to [0, 1] to be comparable to similarity.

Key Results

  • Superior Accuracy: In point anomaly detection, IDK achieved the best average rank (1.25) across 14 datasets, significantly outperforming OCSVM (2.92).
  • Massive Speedups: For group anomaly detection, $IDK^2$ processed a million-point dataset in 1 hour, while the competing OCSMM method failed to finish within 24 hours.
  • Statistical Significance: Friedman-Nemenyi tests confirmed that IDK is significantly better than existing Gaussian-kernel-based detectors.
Fig. 3. Friedman-Nemenyi test for anomaly detectors at significance level 0.05. If two algorithms are connected by a CD (critical difference) line, then there is no significant difference between them.

Limitations and Future Work

While IDK performs exceptionally well, the paper notes that its stability depends on the number of partitionings ($t$). As shown in their stability analysis, the variance of the anomaly scores decreases as $t$ increases, suggesting a trade-off between computational budget and result consistency.

Fig. 5. Boxplot of 10 runs of bKI on ForestCover and smtp. This result shows the increased stability of bKI predictions as t increases from 100 to 1000.

Future work might explore automated ways to tune the subsample size ($\psi$) and the number of partitionings ($t$) based on specific dataset characteristics.

Summary updated

BibTeX
@misc{ting2020isolation,
  author = {Kai Ming Ting and Bi-Cun Xu and Takashi Washio and Zhi-Hua Zhou},
  title = {{Isolation Distributional Kernel: A New Tool for Point \& Group Anomaly Detection}},
  year = {2020},
  eprint = {2009.12196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.12196},
}
Figure