Fast kernel half-space depth for data with non-convex supports

Arturo Castellanos, Pavlo Mozharovskyi, Florence d'Alché-Buc, Hicham JanatiarXiv 2023 · DOI

Abstract

Statistical depth measures provide a center-outward ordering of data points, but classical approaches like Tukey’s half-space depth are computationally expensive and fail to capture the structure of non-convex or multimodal distributions. This paper introduces Sphere Depth ($SD^r_s$), a novel framework that leverages kernel methods to generalize depth from linear half-spaces to spheres. By incorporating sigmoid smoothing, the depth function becomes differentiable, enabling the use of efficient Riemannian gradient descent. Our results demonstrate that Sphere Depth is orders of magnitude faster than traditional methods and significantly more accurate for anomaly detection in complex, real-world datasets.

Introduction: The Challenge of Multivariate Centrality

In univariate statistics, concepts like the median and quantiles are fundamental for ranking data centrality. Extending these to multivariate spaces is non-trivial. Tukey’s half-space depth has been the gold standard, ranking points based on the minimum probability mass in any half-space containing them. However, it suffers from two primary "achilles heels": the Convexity Trap and Computational Intractability.

The Convexity Trap occurs because Tukey depth assumes a single convex support. In multimodal datasets (e.g., two distinct clusters), Tukey depth often assigns the highest depth to the empty space between clusters. Furthermore, calculating exact Tukey depth is NP-hard in high dimensions, often requiring slow, zero-order optimization algorithms that do not scale well with large datasets.

Comparison of Tukey half-space depth (left) and the proposed Sphere Depth (right) on unimodal and bimodal datasets.

Methodology: From Planes to Spheres

The authors introduce Sphere Depth ($SD^r_s$), a kernelized evolution of half-space depth. By moving the problem into a Reproducing Kernel Hilbert Space (RKHS) and utilizing a Gaussian kernel, the search for "empty half-spaces" is effectively transformed into a search for "empty balls" of radius $r$ tangent to the point of interest.

To overcome the non-differentiability of standard depth functions, the authors implement two key innovations:

  1. Sigmoid Smoothing: The standard "hard" indicator function is replaced with a sigmoid function, creating a smooth, differentiable version of the depth.
  2. Riemannian Gradient Descent: Because the smoothed function is differentiable and the search space is constrained to a unit sphere, the authors can use manifold (Riemannian) gradient descent. This allows them to find the "deepest" points significantly faster than previous methods.

Key Insights

  • Local vs. Global Centrality: The radius $r$ acts as a tuning parameter. Small $r$ values allow the depth to capture local density in multimodal data, while large $r$ values converge toward the behavior of classical half-space depth.
  • Speed through Differentiability: Smoothing transforms the optimization landscape, making it compatible with fast, gradient-based algorithms. This moves the method from "computationally prohibitive" to "scalable for big data."
  • Statistical Rigor: Unlike many black-box proxies, the authors provide formal proofs for consistency and concentration bounds, ensuring empirical depth reliably converges to the true theoretical depth.

Experimental Results

The method was evaluated using simulated toy data (bi-Gaussian distributions) and the ODDS benchmark for anomaly detection, which contains 11 real-world datasets such as wine, thyroid, and cardio.

  • Scalability: In benchmarks against classical half-space depth (HD), Sphere Depth was orders of magnitude faster. As sample sizes increased from 100 to 10,000, the computation time for HD exploded, while Sphere Depth remained nearly flat.
  • Anomaly Detection: On the ODDS datasets, Sphere Depth achieved the highest Area Under the ROC Curve (AUROC) in 5 out of 11 datasets and remained highly competitive in the others, often outperforming specialized tools like One-Class SVM and Local Outlier Factor (LOF).

Limitations and Future Work

Sphere Depth relies on two parameters: the radius $r$ and the smoothing parameter $s$. While heuristics exist, automated tuning for specific data topologies remains an open research area. Additionally, if data exists on a lower-dimensional manifold, the depth can "collapse," potentially requiring dimensionality reduction (like PCA) as a pre-processing step.

Conclusion

Sphere Depth represents a significant advancement in statistical depth, offering a scalable and flexible alternative to classical methods. By bridging kernel methods with Riemannian optimization, it provides a robust tool for analyzing complex, non-convex data distributions in high dimensions.

Summary updated

BibTeX
@misc{castellanos2023fast,
  author = {Arturo Castellanos and Pavlo Mozharovskyi and Florence d'Alché-Buc and Hicham Janati},
  title = {{Fast kernel half-space depth for data with non-convex supports}},
  year = {2023},
  eprint = {2312.14136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.14136},
}
Figure