Abstract
We introduce a refined differentially private (DP) data structure for kernel density estimation (KDE), offering an improved privacy-utility tradeoff and superior computational efficiency compared to prior state-of-the-art methods. Given a similarity function $f$ and a private dataset $X \subset \mathbb{R}^d$, our goal is to preprocess $X$ such that for any query $y \in \mathbb{R}^d$, we can approximate the sum $\sum_{x \in X} f(x, y)$ while maintaining differential privacy. Our proposed mechanism, FasterTree, eliminates the approximation slack found in previous work, reducing query time by a factor of $\alpha^{-1} \log n$ and improving the approximation ratio to 1.
Introduction
Kernel Density Estimation (KDE) is a fundamental tool in modern data science, utilized for tasks ranging from synthetic data generation to pre-training data selection for large language models. However, when the underlying data is sensitive—such as medical records or financial transactions—performing KDE presents significant privacy risks.
Recent work by Backurs et al. (ICLR 2024) introduced a "node-contaminated balanced binary tree" to address this. While a major step forward, their algorithm required $O(\alpha^{-1} d \log^2 n)$ query time and introduced a $(1+\alpha)$ relative error. This paper presents a new standard for DP-KDE that removes this $\alpha$ dependence entirely, resulting in a query mechanism that is both exact in its ratio and significantly faster.
Methodology: The FasterTree Structure
The researchers' key insight stems from a mathematical decomposition of the $\ell_1$ distance. They observed that the sum of distances $\sum |x_k - y|$ can be partitioned into four components: the sum of values greater than $y$ ($s_{right}$), the sum of values less than $y$ ($s_{left}$), and the counts of points in those respective regions ($c_{left}, c_{right}$).
Unlike previous structures that primarily stored counts, the FasterTree stores two noisy values in every node:
- Count ($c$): The number of data points falling within that node's interval.
- Sum ($s$): The sum of the actual values of those data points.
To ensure Differential Privacy, Laplace noise is injected into both values. Because the "Sum" ($s$) is more sensitive to changes in a single data point than the "Count" ($c$), the authors apply different noise scales to each, managing the "sensitivity gap" to optimize utility. During a query, the algorithm traverses the tree to find the leaf containing $y$ and aggregates the $s$ and $c$ values from relevant branches to compute the final answer using their decomposition formula.
Theoretical and Empirical Results
The theoretical improvements of FasterTree are substantial, particularly in how it handles the approximation parameter $\alpha$. By storing the sum of values directly, the authors avoid partitioning the query space into approximate regions, bringing the approximation ratio down from $(1+\alpha)$ to a perfect 1.
As illustrated in the table above, the proposed method (Theorem 1.1) reduces query time from $O(\alpha^{-1} d \log^2 n)$ to $O(d \log n)$ and reduces the error dependence by a factor of $\alpha^{-0.5}$. Empirically, evaluations on synthetic datasets—including uniform distributions and scaling tests from $n=32$ to $n=4096$—confirm that the algorithm is consistently an order of magnitude faster than the baseline while maintaining lower relative error across various privacy budgets ($\epsilon$).
Conclusion
FasterTree provides a more efficient and accurate framework for differentially private kernel density estimation. By rethinking the tree-based aggregation of distance components and managing sensitivity more granularly, the authors achieve a purely additive error guarantee without the overhead of approximation slack. Future research directions include adapting this structure for dynamic or streaming datasets and extending these optimizations to other popular kernels like Gaussian or Exponential functions.
Reference: Liu, E., Hu, J. Y.-C., Reneau, A., Song, Z., & Liu, H. (2025). Differentially Private Kernel Density Estimation. arXiv:2409.01688v3.
Summary updated