Lune

ICML2026Top-tier venue

Even Faster Kernel Matrix Linear Algebra via Density Estimation

Rikhav Shah, Sandeep Silwal, Haike Xu

Abstract

This paper studies the use of kernel density estimation (KDE) for linear algebraic tasks involving the kernel matrix of a collection of nn data points in Rd\mathbb{R}^d. In particular, we improve upon the best existing algorithms for computing the following up to (1+ε)(1+\varepsilon) relative error for a Gaussian kernel matrix and other kernels: matrix-vector products, matrix-matrix products, the spectral norm, and sum of all entries. The runtimes of our algorithms depend linearly on the dimension dd, sub-quadratically in the number of points nn, and polynomially on the target error ε\varepsilon. Importantly, the dependence on nn in each case is far lower when accessing the kernel matrix through KDE queries as opposed to reading individual entries. Our improvements over existing best algorithms (particularly those of [Backurs et al. ICML `21]) for these tasks reduce the polynomial dependence on ε\varepsilon, and additionally decrease the dependence on nn in the case of computing the sum of all entries of the kernel matrix. For example, we reduce the power of 1/ϵ1/\epsilon from ≈7.7\approx 7.7 to ≈3.2\approx 3.2 for a 1−ε1-\varepsilon relative error estimation of the spectral norm of a Gaussian kernel matrix. We complement our upper bounds with several lower bounds for related problems, which provide (conditional) quadratic time hardness results and additionally hint at the limits of KDE based approaches for the problems we study.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Faster Kernel Matrix Algebra via Density Estimation cites Kernel Density Estimation through Density Constrained Near Neighbor Search
  • KDEformer: Accelerating Transformers via Kernel Density Estimation cites Kernel Density Estimation through Density Constrained Near Neighbor Search
  • Fast Attention Requires Bounded Entries cites Kernel Density Estimation through Density Constrained Near Neighbor Search
  • New Bounds for Kernel Sums via Fast Spherical Embeddings cites Kernel Density Estimation through Density Constrained Near Neighbor Search
  • New Bounds for Kernel Sums via Fast Spherical Embeddings cites KDEformer: Accelerating Transformers via Kernel Density Estimation
  • HyperAttention: Long-context Attention in Near-Linear Time cites Kernel Density Estimation through Density Constrained Near Neighbor Search
  • HyperAttention: Long-context Attention in Near-Linear Time cites KDEformer: Accelerating Transformers via Kernel Density Estimation
  • HyperAttention: Long-context Attention in Near-Linear Time cites Fast Attention Requires Bounded Entries
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. New Bounds for Kernel Sums via Fast Spherical EmbeddingsTal WagnerICML 2026

Builds on12

  1. Fast Attention Requires Bounded EntriesJosh Alman, Zhao SongNeurIPS 2023 · 115 citations
  2. HyperAttention: Long-context Attention in Near-Linear TimeInsu Han, Rajesh Jayaram, Amin Karbasi, Vahab Mirrokni et al.ICLR 2024 · 104 citations
  3. KDEformer: Accelerating Transformers via Kernel Density EstimationAmir Zandieh, Insu Han, Majid Daliri, Amin KarbasiICML 2023 · 55 citations
  4. Faster Kernel Matrix Algebra via Density EstimationArturs Backurs, Piotr Indyk, Cameron Musco, Tal WagnerICML 2021 · 10 citations
  5. Kernel Density Estimation through Density Constrained Near Neighbor SearchMoses Charikar, Michael Kapralov, Navid Nouri, Paris SiminelakisFOCS 2020 · 9 citations

Related papers

  1. Subquadratic Algorithms for Kernel Matrices via Kernel Density EstimationAinesh Bakshi, Piotr Indyk, Praneeth Kacham, Sandeep Silwal et al.ICLR 2023
  2. A Quasi-Monte Carlo Data Structure for Smooth Kernel EvaluationsMoses Charikar, Michael Kapralov, Erik WaingartenSODA 2024 · 2 citations
  3. Sublinear time spectral density estimationVladimir Braverman, Aditya Krishnan, Christopher MuscoSTOC 2022 · 9 citations
  4. Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity AssumptionsPiotr Indyk, Michael Kapralov, Kshiteej Sheth, Tal WagnerICLR 2025
  5. Algorithms and Hardness for Linear Algebra on Geometric GraphsJosh Alman, Timothy Chu, Aaron Schild, Zhao SongFOCS 2020 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines