Hashing-Based-Estimators for Kernel Density in High Dimensions

Moses Charikar, Paris Siminelakis

TL;DR

This paper introduces a novel framework for efficiently estimating Kernel Density in high-dimensional spaces using hashing techniques. It provides theoretical guarantees for these estimators, offering a significant improvement over existing methods for large datasets and high dimensions.

What Problem Does This Paper Address?

Estimating the probability density of a dataset at a given point is a fundamental problem in statistics and machine learning, with applications ranging from mode estimation to clustering. Kernel Density Estimation (KDE) is a popular non-parametric approach to this problem. However, computing KDE exactly for large datasets in high dimensions is computationally prohibitive, often requiring time that scales quadratically with the number of data points. Existing methods struggle to provide efficient solutions with theoretical guarantees in these challenging scenarios. This paper aims to bridge this gap by developing data structures that can approximate KDE in sublinear time.

Methods

The core contribution of this paper is the introduction of Hashing-Based-Estimators (HBE). These estimators leverage locality-sensitive hashing (LSH) to create efficient data structures. The approach involves two main steps:

  1. Preprocessing: A dataset is processed using a family of hash functions. This creates hash tables that group similar data points together.
  2. Querying: For a given query point, the algorithm uses the precomputed hash tables to quickly identify relevant data points and estimate their contribution to the kernel density.

The authors develop general theorems to bound the variance of these HBEs, particularly focusing on scale-free estimators. They also introduce an Adaptive Mean Relaxation (AMR) algorithm to efficiently estimate the mean of a random variable when its variance is not precisely known, which is crucial for practical implementation. The paper then instantiates these general frameworks using Euclidean LSH for various kernels (Exponential, t-Student, Gaussian) and Andoni-Indyk LSH for the Gaussian kernel, deriving specific complexity bounds.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic design, using synthetic data distributions and general properties of datasets rather than specific named datasets.

Key Insights and Ideas

  • Hashing as a Density Estimator: The paper demonstrates that locality-sensitive hashing, typically used for nearest neighbor search, can be effectively repurposed for density estimation. By carefully designing hash functions and analyzing collision probabilities, one can build estimators that approximate kernel density.
  • Bridging Theory and Practice: The work provides a unified framework (HBE) that allows for theoretical analysis of variance and then connects it to practical algorithms (AMR) for efficient estimation. This is key to making theoretical advancements useful.
  • Adaptive Estimation is Crucial: The need for adaptive algorithms like AMR highlights that in high dimensions, knowing the exact density or variance beforehand is often impossible. Adapting the estimation process based on intermediate results is essential.
  • Lower Bounds Matter: The paper also establishes lower bounds for the KDE problem, showing that certain classes of algorithms cannot do better than what their proposed methods achieve, thus validating their approach.

Key Results

  • The paper introduces Hashing-Based-Estimators (HBE) that provide sublinear time approximations for Kernel Density Estimation in high dimensions.
  • They derive general theorems for bounding the variance of HBEs, including specific results for "scale-free" estimators.
  • An Adaptive Mean Relaxation (AMR) algorithm is presented, which, when combined with HBEs, yields efficient data structures for KDE.
  • For various kernels (Exponential, t-Student, Gaussian), they show how to construct scale-free estimators or bound their variance using LSH schemes, achieving improved time and space complexities compared to naive methods.
  • The paper also provides lower bounds for the KDE problem in the cell-probe model, showing that their proposed algorithms are near-optimal for certain classes of algorithms.

Limitations and Future Work

  • Data-Dependent Hashing: The authors suggest that exploring data-dependent LSH schemes could lead to further improvements for KDE.
  • Batch Setting: The paper focuses on the online setting (querying individual points). Investigating efficient data structures for the offline (batch) setting of KDE is suggested as a future direction.
  • Extensions of HBE: The authors propose exploring extensions of HBE for other problems, such as estimating partition functions of log-linear models or analyzing multi-probe schemes.
  • Gaussian Kernel Limitations: While they achieve scale-free estimators for Exponential and t-Student kernels, the Gaussian kernel case requires a more general analysis, and the resulting bounds are not as ideal as for the other kernels. Future work could aim to improve these bounds.

Summary updated

BibTeX
@inproceedings{charikar2017hashing,
  author = {Moses Charikar and Paris Siminelakis},
  title = {{Hashing-Based-Estimators for Kernel Density in High Dimensions}},
  booktitle = {FOCS},
  year = {2017},
  doi = {10.1109/focs.2017.99},
}
Figure