An Efficient and Continuous Voronoi Density Estimator

Giovanni Luca Marchetti, Vladislav Polianskii, Anastasiia Varava, Florian T. Pokorny, Danica Kragic

Abstract

We introduce a non-parametric density estimator deemed Radial Voronoi Density Estimator (RVDE). RVDE is grounded in the geometry of Voronoi tessellations and as such benefits from local geometric adaptiveness and broad convergence properties. Due to its radial definition RVDE is continuous and computable in linear time with respect to the dataset size. This amends for the main shortcomings of previously studied VDEs, which are highly discontinuous and computationally expensive. We provide a theoretical study of the modes of RVDE as well as an empirical investigation of its performance on high-dimensional data. Results show that RVDE outperforms other non-parametric density estimators, including recently introduced VDEs.

Introduction

Estimating a Probability Density Function (PDF) from a finite set of points is a cornerstone of statistics and machine learning. Traditionally, researchers have relied on tools like histograms and Kernel Density Estimation (KDE). However, these methods suffer from a "fixed geometry" problem: histograms utilize rigid bins, and KDE applies a fixed-shape kernel (such as a Gaussian bell curve) around every data point. In high-dimensional spaces, these rigid structures often fail to capture the true underlying manifold of the data distribution.

Voronoi Density Estimators (VDEs) were proposed to address this by partitioning space into cells based on proximity to data points, allowing the geometry to adapt naturally to local data density. Despite their theoretical appeal, traditional VDEs have been impractical due to two major hurdles: they are computationally expensive (requiring the calculation of high-dimensional polytope volumes) and mathematically discontinuous, leading to high variance and instability at cell boundaries.

Methodology: The Radial Approach

The core innovation of this work is the Radial Voronoi Density Estimator (RVDE). To overcome the limitations of previous VDEs, the authors shifted the perspective from calculating complex cell volumes to defining density along rays originating from each data point.

Geometric construction of the radial density within a Voronoi cell.

As shown in the figure above, RVDE defines the density at a point $x$ within a Voronoi cell $C(p)$ by considering the ray $l(x)$ from the center $p$. The key technical breakthrough is a "radial bandwidth" ($\beta$) defined implicitly through an integral equation. This ensures that the total probability mass within each Voronoi cell remains constant, satisfying the fundamental requirement of a VDE while ensuring a smooth, continuous transition across cell boundaries.

To make this computationally feasible, the method employs:

  • Newton-Raphson iteration to solve for the radial bandwidth efficiently.
  • k-d trees for rapid nearest-neighbor lookups, enabling linear-time evaluation relative to the dataset size.
  • Closed-form expressions for distances to Voronoi boundaries, bypassing the need for expensive geometric volume calculations.

Experimental Evaluation

The performance of RVDE was benchmarked against several standard and state-of-the-art baselines, including KDE, Adaptive KDE, and Continuous VDE (CVDE), across various datasets:

  • Synthetic Distributions: 10-dimensional models including Gaussian, Laplace, Dirichlet, and Gaussian Mixtures.
  • Anuran Calls: A real-world dataset of 7,195 frog calls characterized by 21 acoustic features.
  • MNIST: The handwritten digit dataset, downscaled to 100 dimensions (10x10 pixels) to test performance in high-dimensional regimes.

Key Results and Insights

RVDE demonstrates a significant advancement over previous density estimation techniques in both accuracy and efficiency.

Visual comparison of density estimation methods: KDE, Original VDE, CVDE, and the proposed RVDE.

Superior Accuracy and Stability

In nearly every test case—particularly on complex real-world data like Anuran Calls and MNIST—RVDE achieved higher average log-likelihoods than its competitors. Unlike the original VDE, which is piecewise constant, or CVDE, which can still exhibit "jitter," RVDE provides a smooth, continuous surface that significantly reduces sampling variance.

Computational Efficiency

One of the most striking results is the speedup achieved. RVDE operates with a computational complexity comparable to standard KDE. On the MNIST dataset, RVDE completed its evaluation in 17.4 seconds, whereas the previous state-of-the-art CVDE required 408 seconds. This makes Voronoi-based estimation practical for large-scale applications for the first time.

Geometric Modes

The researchers also discovered that the density peaks (modes) of RVDE are mathematically linked to the Gabriel graph of the dataset. Depending on a chosen hyperparameter ($\alpha$), the density peaks either coincide with the data points themselves or shift to the midpoints of the edges connecting them, providing a unique way to analyze the topological structure of the data.

Conclusion and Future Work

RVDE successfully bridges the gap between the geometric adaptivity of Voronoi tessellations and the computational efficiency of kernel methods. While highly effective, future research could focus on optimizing the construction of the Gabriel graph for massive datasets and exploring the application of RVDE to non-Euclidean geometries, such as Riemannian manifolds, which are prevalent in fields like computer vision and directional statistics.

Summary updated

BibTeX
@inproceedings{marchetti2023efficient,
  author = {Giovanni Luca Marchetti and Vladislav Polianskii and Anastasiia Varava and Florian T. Pokorny and Danica Kragic},
  title = {{An Efficient and Continuous Voronoi Density Estimator}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=IVNt2Al7aH},
}
Figure