DEANN: Speeding up Kernel-Density Estimation using Approximate Nearest Neighbor Search
Not on the map. Why?
Abstract (arXiv)
Kernel Density Estimation (KDE) is a nonparametric method for estimating the shape of a density function, given a set of samples from the distribution. Recently, locality-sensitive hashing, originally proposed as a tool for nearest neighbor search, has been shown to enable fast KDE data structures. However, these approaches do not take advantage of the many other advances that have been made in algorithms for nearest neighbor algorithms. We present an algorithm called Density Estimation from Approximate Nearest Neighbors (DEANN) where we apply Approximate Nearest Neighbor (ANN) algorithms as a black box subroutine to compute an unbiased KDE. The idea is to find points that have a large contribution to the KDE using ANN, compute their contribution exactly, and approximate the remainder with Random Sampling (RS). We present a theoretical argument that supports the idea that an ANN subroutine can speed up the evaluation. Furthermore, we provide a C++ implementation with a Python interface that can make use of an arbitrary ANN implementation as a subroutine for kernel density estimation. We show empirically that our implementation outperforms state of the art implementations in all high dimensional datasets we considered, and matches the performance of RS in cases where the ANN yield no gains in performance.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 13 of its 78 references that are in the map. First posted on arXiv 6 Jul 2021.
Builds on
13 of 78 references.
References · 13
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2018ANN-Benchmarks: A Benchmarking Tool for Approximate Nearest Neighbor Algorithmscited by 130
- 2015Practical and Optimal LSH for Angular Distancecited by 105
- 2018Hashing-Based-Estimators for Kernel Density in High Dimensionscited by 31
- 2018Near-Optimal Coresets of Kernel Density Estimatescited by 30
- 2020Kernel Density Estimation through Density Constrained Near Neighbor Searchcited by 26
- 2018Optimization of Indexing Based on k-Nearest Neighbor Graph for Proximity Search in High-dimensional Datacited by 20
- 2016Optimal Hashing-based Time-Space Trade-offs for Approximate Near Neighborscited by 18
- 2017Improved Rectangular Matrix Multiplication using Powers of the Coppersmith-Winograd Tensorcited by 13
- 2014ASKIT: Approximate Skeletonization Kernel-Independent Treecode in High Dimensionscited by 12
- 2014Powers of Tensors and Fast Matrix Multiplicationcited by 11
1 more
Built on by
Citing papers per year: 2022: 3; 2023: 2; 2024: 1; 2025: 2.
8 papers.
- 2023Closed-Form Diffusion Modelscited by 46
- 2022Adaptive and Dynamic Multi-Resolution Hashing for Pairwise Summationscited by 14
- 2024LMD3: Language Model Data Density Dependencecited by 7
- 2022Dynamic Maintenance of Kernel Density Estimation Data Structure: From Practice to Theorycited by 6
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptionscited by 4
- 2022Sub-quadratic Algorithms for Kernel Matrices via Kernel Density Estimationcited by 2
- 2023Dimension-Independent Kernel ε-Coverscited by 0
- 2025Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor Searchcited by 0
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions31 Jul 2025
- 2025Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor Search21 May 2025
- 2024LMD3: Language Model Data Density Dependence10 May 2024
- 2023Closed-Form Diffusion Models19 Oct 2023
- 2023Dimension-Independent Kernel ε-Covers28 Jun 2023
- 2022Adaptive and Dynamic Multi-Resolution Hashing for Pairwise Summations21 Dec 2022
- 2022Sub-quadratic Algorithms for Kernel Matrices via Kernel Density Estimation1 Dec 2022
- 2022Dynamic Maintenance of Kernel Density Estimation Data Structure: From Practice to Theory8 Aug 2022