Abstract
Measuring similarity between data distributions is a fundamental task in machine learning, yet traditional methods like Kernel Mean Embedding (KME) with Gaussian kernels face significant computational bottlenecks and lack data-dependent context. This paper introduces the Isolation Distributional Kernel (IDK), a novel approach that leverages a data-dependent isolation mechanism to create finite-dimensional feature maps. IDK achieves $O(n)$ complexity, enabling large-scale point and group anomaly detection that was previously intractable. Experimental results demonstrate that IDK consistently outperforms state-of-the-art methods in both accuracy and scalability.
Introduction
Comparing groups of data points—often referred to as distributions or "bags"—is essential for tasks ranging from multi-instance learning to astronomical data analysis. The standard approach, Kernel Mean Embedding (KME), typically employs data-independent kernels like the Gaussian kernel. However, these kernels suffer from two primary limitations: high computational complexity ($O(n^2)$) due to infinite-dimensional feature maps, and "data blindness," where the kernel fails to account for local density variations. In anomaly detection, this lack of context often leads to poor performance in dense regions.
The Isolation Distributional Kernel (IDK)
The core innovation of this work is the Isolation Distributional Kernel (IDK), which replaces fixed mathematical functions with a data-dependent isolation mechanism.
The Isolation Mechanism
Instead of relying on a pre-defined distance metric, IDK builds its kernel by randomly subsampling the data and partitioning the space using hyperspheres. A point is considered "isolated" if it falls within a specific hypersphere. This process creates a finite-dimensional feature map, allowing similarity calculations to be performed in linear time ($O(n)$).
Theoretical Foundations
The authors prove that IDK is a "characteristic kernel," ensuring it can uniquely identify distributions. Crucially, the kernel is data-dependent: it adapts to the local density of the dataset. In sparse regions, points are perceived as more similar than points at the same distance in dense regions, mirroring human intuition for outlier detection. This property allows IDK to excel at finding "local" anomalies—points that are outliers relative to their immediate neighbors—which traditional methods like OCSVM often miss.
Group Anomaly Detection ($IDK^2$)
For group anomaly detection, the authors propose a nested architecture called $IDK^2$. In the first level, groups of points are mapped to single points in a high-dimensional Hilbert space using KME with the isolation kernel. The second level then applies standard point anomaly detection to these mapped points. This effectively reformulates complex group comparisons into a simpler point-based problem in Hilbert space.
Experimental Evaluation
The method was rigorously tested across 14 point anomaly detection datasets (e.g., Speech, MNIST, ForestCover) and 11 group anomaly detection datasets, including the large-scale SDSS astronomy dataset and artificial datasets with up to one million points.
Accuracy and Scalability
IDK consistently outperformed established baselines. In point anomaly detection, it frequently outranked the One-Class Support Vector Machine (OCSVM). For group anomalies, $IDK^2$ surpassed the state-of-the-art OCSMM.
The speed improvements were equally dramatic. On the http dataset, IDK was orders of magnitude faster than Gaussian-based methods. In the most extreme test—group anomaly detection on 1 million points—the traditional OCSMM failed to complete within 24 hours, while $IDK^2$ finished the task in just one hour.
Conclusion
The Isolation Distributional Kernel represents a significant advancement in distributional similarity measurement. By combining data-dependency with linear-time complexity, IDK overcomes the long-standing trade-off between accuracy and scalability in anomaly detection. While the method requires careful setting of parameters like subsample size, its ability to function without an explicit training phase makes it a powerful tool for unsupervised learning. Future work may explore GPU acceleration and semi-supervised extensions to further refine the isolation mechanism.
Summary updated