Abstract
Differential privacy (DP) is essential for protecting sensitive information in machine learning, yet traditional methods often suffer from high computational costs and poor utility scaling. This paper introduces efficient DP data structures for similarity queries—specifically distance and kernel density estimation (KDE). By exploiting low-dimensional structures and novel dimensionality reduction techniques, the authors achieve error bounds independent of dataset size and query times that significantly outperform prior work. These advancements enable DP classification tasks to run over 1,000x faster than standard DP-SGD approaches while maintaining comparable accuracy.
Introduction
In privacy-preserving machine learning, a fundamental task is determining the similarity between a query point and a sensitive dataset. This operation underpins synthetic data generation, sample selection, and classification. However, performing these queries under the framework of Differential Privacy (DP) is non-trivial. Previous methods typically produced noise that scaled poorly with the dataset size ($n$) or dimensionality ($d$), and often required expensive re-training for each new query.
This work focuses on the Function Release model: constructing a single, private data structure that can accurately and efficiently answer an infinite stream of similarity queries.
Methodology
The authors leverage the "low-dimensional structure" inherent in common similarity functions to design more efficient DP mechanisms.
Distance Queries
For $\ell_1$ distances, the problem is decomposed into $d$ one-dimensional projections. Noisy binary trees are constructed for each dimension, with Laplace noise added to counts to bound sensitivity. For $\ell_2$ and $\ell_p$ distances, the authors utilize oblivious (data-independent) maps to embed these metrics into $\ell_1$, allowing them to reuse the efficient $\ell_1$ framework.
Kernel Density Estimation (KDE)
For Gaussian and Exponential kernels, the paper introduces a new dimensionality reduction result. They demonstrate that standard Johnson-Lindenstrauss (JL) projections preserve the sum of kernel values with small additive error, despite the non-linearity of kernels. This allows high-dimensional data to be projected into a constant-sized space before DP mechanisms are applied.
Smooth Kernels
To handle more complex kernels like Cauchy, the authors employ function approximation theory. By representing these kernels as sparse sums of exponentials, they can apply their DP-KDE tools in a "black-box" manner.
Theoretical and Empirical Results
A core contribution of this work is the achievement of error bounds that are independent of the dataset size $n$. As shown in the comparison table below, prior methods for distance queries had error terms scaling with $n^{1/3}$ or $n^{15/17}$, whereas the new approach maintains error dependent only on $d, \epsilon, \alpha$.
Key Insights
- Additive Error Preservation: While JL projections do not preserve relative error for non-linear kernels, they do preserve additive error. This is ideal for DP, which inherently introduces additive noise.
- Scalability: Independence from $n$ makes these algorithms uniquely suitable for massive datasets.
- Efficiency in Classification: The authors show that a "noisy mean" classifier—comparing a query to the private mean of each class—is highly effective. This approach bypasses the iterative optimization required by DP-SGD.
Performance Benchmarks
On the CIFAR-10 dataset using pre-trained embeddings (SimCLR ResNet-152), the proposed similarity-based classifier achieved accuracy competitive with state-of-the-art DP-SGD models. Crucially, the "training" phase (data structure construction) took only 29ms on a CPU, compared to over 8.5 hours on a high-end GPU for DP-SGD baselines—a speedup of more than three orders of magnitude.
Conclusion and Future Work
This research provides a significant leap in the efficiency of private similarity search. While a theoretical gap remains between the $d^{1.5}$ upper bound and the $d$ lower bound for $\ell_1$ queries, the practical implications for fast DP machine learning are substantial. Future work may extend these techniques to more complex measures like Optimal Transport or integrate them with Large Language Model (LLM) embeddings for text-based tasks.
Summary updated