Subquadratic Algorithms for Kernel Matrices via Kernel Density Estimation
Ainesh Bakshi, Piotr Indyk, Praneeth Kacham, Sandeep Silwal, Samson Zhou
Abstract
Kernel matrices, as well as weighted graphs represented by them, are ubiquitous objects in machine learning, statistics and other related fields. The main drawback of using kernel methods (learning and inference using kernel matrices) is efficiency -given n input points, most kernel-based algorithms need to materialize the full n × n kernel matrix before performing any subsequent computation, thus incurring Ω(n 2 ) runtime. Breaking this quadratic barrier for various problems has therefore, been a subject of extensive research efforts. We break the quadratic barrier and obtain subquadratic time algorithms for several fundamental linear-algebraic and graph processing primitives, including approximating the top eigenvalue and eigenvector, spectral sparsification, solving linear systems, local clustering, lowrank approximation, arboricity estimation and counting weighted triangles. We build on the recently developed Kernel Density Estimation framework, which (after preprocessing in time subquadratic in n) can return estimates of row/column sums of the kernel matrix. In particular, we develop efficient reductions from weighted vertex and weighted edge sampling on kernel graphs, simulating random walks on kernel graphs, and importance sampling on matrices to Kernel Density Estimation and show that we can generate samples from these distributions in sublinear (in the support of the distribution) time. Our reductions are the central ingredient in each of our applications and we believe they may be of independent interest. We empirically demonstrate the efficacy of our algorithms on low-rank approximation (LRA) and spectral sparsification, where we observe a 9x decrease in the number of kernel evaluations over baselines for LRA and a 41x reduction in the graph size for spectral sparsification.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0c87ccf1-bb94-41e0-a6bb-5cb4176cce80Cited by top-tier papers7
- Efficiently Computing Similarities to Private DatasetsArturs Backurs, Zinan Lin, Sepideh Mahabadi, Sandeep Silwal et al.ICLR 2024 · 9 citations
- Fast Approximation of Similarity Graphs with Kernel Density EstimationPeter Macgregor, He SunNeurIPS 2023 · 5 citations
- Sublinear Time Low-Rank Approximation of Hankel MatricesMichael Kapralov, Cameron Musco, Kshiteej ShethSODA 2026 · 1 citation
- Even Faster Kernel Matrix Linear Algebra via Density EstimationRikhav Shah, Sandeep Silwal, Haike XuICML 2026 · 1 citation
- Dynamic Similarity Graph Construction with Kernel Density EstimationSteinar Laenen, Peter Macgregor, He SunICML 2025
Builds on9
- Triangle and Four Cycle Counting with Predictions in Graph StreamsJustin Y. Chen, Talya Eden, Piotr Indyk, Honghao Lin et al.ICLR 2022 · 29 citations
- Faster Kernel Matrix Algebra via Density EstimationArturs Backurs, Piotr Indyk, Cameron Musco, Tal WagnerICML 2021 · 10 citations
- Kernel Density Estimation through Density Constrained Near Neighbor SearchMoses Charikar, Michael Kapralov, Navid Nouri, Paris SiminelakisFOCS 2020 · 9 citations
- Testing Positive Semi-Definiteness via Random SubmatricesAinesh Bakshi, Nadiia Chepurko, Rajesh JayaramFOCS 2020 · 8 citations
- Algorithms and Hardness for Linear Algebra on Geometric GraphsJosh Alman, Timothy Chu, Aaron Schild, Zhao SongFOCS 2020 · 5 citations
Related papers
- Sublinear time spectral density estimationVladimir Braverman, Aditya Krishnan, Christopher MuscoSTOC 2022 · 9 citations
- Near Input Sparsity Time Kernel Embeddings via Adaptive SamplingDavid P. Woodruff, Amir ZandiehICML 2020 · 20 citations
- Quantum Algorithms for Spectral SumsAlessandro Luongo, Changpeng ShaoAAAI 2026 · 9 citations
- General Graph Random FeaturesIsaac Reid, Krzysztof Marcin Choromanski, Eli Berger, Adrian WellerICLR 2024 · 11 citations
- Optimal Sublinear Sampling of Spanning Trees and Determinantal Point Processes via Average-Case Entropic IndependenceNima Anari, Yang P. Liu, Thuy-Duong VuongFOCS 2022 · 1 citation
