English

A Quasi-Monte Carlo Data Structure for Smooth Kernel Evaluations

Data Structures and Algorithms 2024-01-08 v1

Abstract

In the kernel density estimation (KDE) problem one is given a kernel K(x,y)K(x, y) and a dataset PP of points in a Euclidean space, and must prepare a data structure that can quickly answer density queries: given a point qq, output a (1+ϵ)(1+\epsilon)-approximation to μ:=1PpPK(p,q)\mu:=\frac1{|P|}\sum_{p\in P} K(p, q). The classical approach to KDE is the celebrated fast multipole method of [Greengard and Rokhlin]. The fast multipole method combines a basic space partitioning approach with a multidimensional Taylor expansion, which yields a logd(n/ϵ)\approx \log^d (n/\epsilon) query time (exponential in the dimension dd). A recent line of work initiated by [Charikar and Siminelakis] achieved polynomial dependence on dd via a combination of random sampling and randomized space partitioning, with [Backurs et al.] giving an efficient data structure with query time polylog(1/μ)/ϵ2\approx \mathrm{poly}{\log(1/\mu)}/\epsilon^2 for smooth kernels. Quadratic dependence on ϵ\epsilon, inherent to the sampling methods, is prohibitively expensive for small ϵ\epsilon. This issue is addressed by quasi-Monte Carlo methods in numerical analysis. The high level idea in quasi-Monte Carlo methods is to replace random sampling with a discrepancy based approach -- an idea recently applied to coresets for KDE by [Phillips and Tai]. The work of Phillips and Tai gives a space efficient data structure with query complexity 1/(ϵμ)\approx 1/(\epsilon \mu). This is polynomially better in 1/ϵ1/\epsilon, but exponentially worse in 1/μ1/\mu. We achieve the best of both: a data structure with polylog(1/μ)/ϵ\approx \mathrm{poly}{\log(1/\mu)}/\epsilon query time for smooth kernel KDE. Our main insight is a new way to combine discrepancy theory with randomized space partitioning inspired by, but significantly more efficient than, that of the fast multipole methods. We hope that our techniques will find further applications to linear algebra for kernel matrices.

Keywords

Cite

@article{arxiv.2401.02562,
  title  = {A Quasi-Monte Carlo Data Structure for Smooth Kernel Evaluations},
  author = {Moses Charikar and Michael Kapralov and Erik Waingarten},
  journal= {arXiv preprint arXiv:2401.02562},
  year   = {2024}
}
R2 v1 2026-06-28T14:09:10.747Z