Kernel Density Estimation through Density Constrained Near Neighbor Search
Not on the map. Why?
Abstract (arXiv)
In this paper we revisit the kernel density estimation problem: given a kernel K(x, y) and a dataset of n points in high dimensional Euclidean space, prepare a data structure that can quickly output, given a query q, a (1+ε)-approximation to μ:=frac1|P|sump∈ P K(p, q). First, we give a single data structure based on classical near neighbor search techniques that improves upon or essentially matches the query time and space complexity for all radial kernels considered in the literature so far. We then show how to improve both the query complexity and runtime by using recent advances in data-dependent near neighbor search. We achieve our results by giving a new implementation of the natural importance sampling scheme. Unlike previous approaches, our algorithm first samples the dataset uniformly (considering a geometric sequence of sampling rates), and then uses existing approximate near neighbor search techniques on the resulting smaller dataset to retrieve the sampled points that lie at an appropriate distance from the query. We show that the resulting sampled dataset has strong geometric structure, making approximate near neighbor search return the required samples much more efficiently than for worst case datasets of the same size. As an example application, we show that this approach yields a data structure that achieves query time μ-(1+o(1))/4 and space complexity μ-(1+o(1)) for the Gaussian kernel. Our data dependent approach achieves query time μ-0.173-o(1) and space μ-(1+o(1)) for the Gaussian kernel. The data dependent analysis relies on new techniques for tracking the geometric structure of the input datasets in a recursive hashing process that we hope will be of interest in other applications in near neighbor search.
Key facts. Cited by 29 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 2; 2023: 7; 2024: 4; 2025: 7; 2026: 6.
29 papers.
Sort:
By area:
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2023An Over-parameterized Exponential Regressioncited by 45
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2021Sublinear Least-Squares Value Iteration via Locality Sensitive Hashingcited by 15
- 2024Efficiently Computing Similarities to Private Datasetscited by 9
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
- 2021Faster Kernel Matrix Algebra via Density Estimationcited by 8
- 2021DEANN: Speeding up Kernel-Density Estimation using Approximate Nearest Neighbor Searchcited by 8
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2022Dynamic Maintenance of Kernel Density Estimation Data Structure: From Practice to Theorycited by 6
17 more
- 2023Streaming Kernel PCA Algorithm With Small Spacecited by 5
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptionscited by 4
- 2023Fast Approximation of Similarity Graphs with Kernel Density Estimationcited by 3
- 2024Differentially Private Kernel Density Estimationcited by 3
- 2022Sub-quadratic Algorithms for Kernel Matrices via Kernel Density Estimationcited by 2
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
- 2026Towards Tight Bounds for Streaming Attentioncited by 2
- 2025Even Faster Kernel Matrix Linear Algebra via Density Estimationcited by 1
- 2026New Bounds for Kernel Sums via Fast Spherical Embeddingscited by 1
- 2026Positional LSH: Binary Block Matrix Approximation for Attention with Linear Biasescited by 1
- 2026Locality Sensitive Hashing for p-Exponential Kernels with Applications to Density Estimationcited by 1
- 2023Dimension-Independent Kernel ε-Coverscited by 0
- 2024Spectral Toolkit of Algorithms for Graphs: Technical Report (2)cited by 0
- 2025Almost Linear Time Consistent Mode Estimation and Quick Shift Clusteringcited by 0
- 2025Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor Searchcited by 0
- 2026Scalable Learning of Multivariate Distributions via Coresetscited by 0
- 2026Random Fourier Features in Near-Linear Timecited by 0
- 2026Random Fourier Features in Near-Linear Time10 Oct 2026
- 2026Locality Sensitive Hashing for p-Exponential Kernels with Applications to Density Estimation4 Oct 2026
- 2026Towards Tight Bounds for Streaming Attention5 Jun 2026
- 2026Positional LSH: Binary Block Matrix Approximation for Attention with Linear Biases10 May 2026
- 2026New Bounds for Kernel Sums via Fast Spherical Embeddings2 May 2026
- 2026Scalable Learning of Multivariate Distributions via Coresets20 Mar 2026
- 2025Even Faster Kernel Matrix Linear Algebra via Density Estimation2 Oct 2025
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions31 Jul 2025
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapse22 May 2025
- 2025Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor Search21 May 2025
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform17 May 2025
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiency18 Mar 2025
17 more
- 2025Almost Linear Time Consistent Mode Estimation and Quick Shift Clustering11 Mar 2025
- 2024Differentially Private Kernel Density Estimation3 Sep 2024
- 2024Spectral Toolkit of Algorithms for Graphs: Technical Report (2)6 Jun 2024
- 2024Efficiently Computing Similarities to Private Datasets13 Mar 2024
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Models7 Feb 2024
- 2023Fast Approximation of Similarity Graphs with Kernel Density Estimation21 Oct 2023
- 2023HyperAttention: Long-context Attention in Near-Linear Time9 Oct 2023
- 2023Dimension-Independent Kernel ε-Covers28 Jun 2023
- 2023An Over-parameterized Exponential Regression29 Mar 2023
- 2023Streaming Kernel PCA Algorithm With Small Space8 Mar 2023
- 2023Fast Attention Requires Bounded Entries26 Feb 2023
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimation5 Feb 2023
- 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
- 2021DEANN: Speeding up Kernel-Density Estimation using Approximate Nearest Neighbor Search6 Jul 2021
- 2021Sublinear Least-Squares Value Iteration via Locality Sensitive Hashing18 May 2021
- 2021Faster Kernel Matrix Algebra via Density Estimation16 Feb 2021
- 2026Towards Tight Bounds for Streaming Attentioncited by 2
- 2026Towards Tight Bounds for Streaming Attention5 Jun 2026
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2023An Over-parameterized Exponential Regressioncited by 45
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2021Sublinear Least-Squares Value Iteration via Locality Sensitive Hashingcited by 15
- 2024Efficiently Computing Similarities to Private Datasetscited by 9
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
- 2021Faster Kernel Matrix Algebra via Density Estimationcited by 8
- 2021DEANN: Speeding up Kernel-Density Estimation using Approximate Nearest Neighbor Searchcited by 8
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2022Dynamic Maintenance of Kernel Density Estimation Data Structure: From Practice to Theorycited by 6
12 most cited of 27 All 27 (JSON)
- 2026Random Fourier Features in Near-Linear Time10 Oct 2026
- 2026Locality Sensitive Hashing for p-Exponential Kernels with Applications to Density Estimation4 Oct 2026
- 2026Positional LSH: Binary Block Matrix Approximation for Attention with Linear Biases10 May 2026
- 2026New Bounds for Kernel Sums via Fast Spherical Embeddings2 May 2026
- 2026Scalable Learning of Multivariate Distributions via Coresets20 Mar 2026
- 2025Even Faster Kernel Matrix Linear Algebra via Density Estimation2 Oct 2025
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions31 Jul 2025
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapse22 May 2025
- 2025Distance Adaptive Beam Search for Provably Accurate Graph-Based Nearest Neighbor Search21 May 2025
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform17 May 2025
- 2025Almost Linear Time Consistent Mode Estimation and Quick Shift Clustering11 Mar 2025
- 2024Differentially Private Kernel Density Estimation3 Sep 2024
12 newest of 27 All 27 (JSON)