Efficient Interpolation of Density Estimators

Paxton Turner, Jingbo Liu, Philippe Rigollet

Introduction

Kernel Density Estimation (KDE) is a cornerstone of nonparametric statistics, providing a flexible way to estimate probability density functions without assuming a specific parametric form. However, KDE suffers from a significant computational drawback: evaluating the density at a single point requires a summation over all $n$ samples in the dataset. This $\Omega(n)$ query time makes KDE impractical for large-scale datasets or real-time applications.

While existing acceleration techniques like the Fast Gauss Transform or Locality Sensitive Hashing (LSH) offer improvements, they are often restricted to specific kernel types (e.g., Gaussian kernels). This paper introduces a general, "black-box" framework that transforms any pointwise-accurate density estimator into a compressed version that is significantly faster to query and requires less storage space, all while maintaining minimax statistical optimality.

The Interpolation Framework

The authors propose a method that does not rely on the internal structure of the original estimator $\hat{f}$. Instead, it treats $\hat{f}$ as a function that can be queried at specific locations. The framework consists of three primary stages:

  1. Domain Partitioning: The data domain (assumed to be the unit cube $[0, 1]^d$) is divided into a grid of small sub-cubes. The size of these cubes is determined by the smoothness parameter $\beta$ of the underlying density.
  2. Lattice Construction: Within each sub-cube, the authors define an $\ell$-th principal lattice. This is a structured grid of points derived from finite element analysis, designed to support unique multivariate polynomial interpolation.
  3. Polynomial Interpolation: The original "slow" estimator is queried only at these lattice points. These values are then used to construct a piecewise polynomial $\tilde{f}$ that approximates the density across the entire domain.

Once this preprocessing is complete, querying the density at a new point $y$ simply involves identifying the relevant sub-cube and evaluating a local polynomial. This operation is independent of the original sample size $n$, leading to massive gains in efficiency.

Theoretical Insights

The core of the paper’s contribution lies in proving that this simplified polynomial representation does not sacrifice statistical accuracy.

The Role of Smoothness

The method leverages the assumption that the underlying density belongs to a Hölder class (a measure of smoothness). By matching the degree of the interpolating polynomials to the smoothness $\beta$, the authors ensure that the interpolation error is negligible compared to the original statistical estimation error. This allows the new estimator $\tilde{f}$ to achieve the minimax rate—the best possible theoretical error rate for that class of functions.

Complexity and Entropy

Beyond practical computation, the paper provides a bridge to classical information theory. The construction offers a concrete way to derive results related to the metric entropy of smooth function classes, originally explored by Kolmogorov and Tikhomirov. It demonstrates that a relatively small number of bits is sufficient to represent a smooth density function within a target error margin.

Key Results

For a fixed dimension $d$ and smoothness $\beta$, the proposed framework achieves the following:

  • Query Time: Reduced from $O(n)$ to $O(\log n)$, or effectively constant time in many practical scenarios.
  • Space Complexity: The estimator is stored in sublinear space, specifically $O(n^{\frac{d}{2\beta+d}} \log n)$ bits, which is significantly more efficient than storing the full dataset.
  • Preprocessing Efficiency: The time required to build the interpolant is dominated by a sublinear number of queries to the original estimator.
  • Accuracy: The $L^\infty$ (maximum) error remains within a logarithmic factor of the minimax optimal rate.

Limitations and Future Work

As a theoretical work, the paper focuses on mathematical guarantees rather than empirical benchmarks. Several challenges remain for practical implementation:

  • The Curse of Dimensionality: The number of sub-cubes required grows exponentially with the dimension $d$, making the approach most suitable for low-to-moderate dimensional data.
  • Support Constraints: The current theory assumes the density is supported on a bounded unit cube. Extending this to infinite support (e.g., Gaussian distributions) would require adapting the partitioning scheme.
  • Parameter Sensitivity: The method assumes the smoothness $\beta$ and Hölder constant $L$ are known. Developing adaptive versions that can estimate these parameters from the data remains an open area for research.

Conclusion

This research provides a powerful theoretical foundation for compressing density estimators. By decoupling the estimation process from the query process, the authors show that it is possible to maintain the highest levels of statistical rigor while achieving the computational efficiency required for modern, large-scale data science.

Summary updated

BibTeX
@inproceedings{turner2021efficient,
  author = {Paxton Turner and Jingbo Liu and Philippe Rigollet},
  title = {{Efficient Interpolation of Density Estimators}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure