TL;DR
Multiplying a massive $n \times n$ matrix by a vector normally requires $O(n^2)$ operations—a brutal computational bottleneck for everything from classical machine learning to Transformer attention. By recognizing that many real-world dense matrices are actually "light" (meaning the sum of all their absolute entries scales linearly with $n$ rather than quadratically), the authors design approximate multiplication algorithms that shatter the quadratic barrier. Better yet, for geometric kernel matrices, they pull this off on the fly without ever building the matrix or doing any upfront preprocessing.
What Problem Does This Paper Address?
Matrix-vector products ($Ax$) are the heartbeat of numerical linear algebra. When $n$ gets huge, computing $Ax$ naively takes $\Omega(n^2)$ time, which is dead on arrival for modern scale. Fortunately, downstream ML tasks rarely need exact answers—an approximation within an additive error of $\varepsilon\|x\|_2$ usually suffices.
We already know how to multiply sparse matrices quickly. What the authors study here is a vastly milder condition they call lightness: the total $\ell_1$-mass (sum of absolute values of all entries) of an $n \times n$ matrix $A$ is bounded by $\gamma n$. Unlike strict sparsity, "lightness" covers dense probability transition matrices, noisy sparse matrices, and—crucially—Transformer self-attention and kernel matrices, where tokens typically correlate strongly with only a few others.
Existing subquadratic algorithms for kernel matrices ($K_{i,j} = \kappa(r_i, c_j)$ for points in $\mathbb{R}^d$) had frustrating blind spots: they often required symmetric matrices, non-negative vectors $x$, weaker error bounds, or "white-box" hacks tailored strictly to Gaussian kernels. Can we get fast, general-purpose approximate multiplication under lightness alone?
Methods
The authors tackle this in two stages: first for arbitrary matrices (allowing preprocessing), and then for kernel matrices (zero preprocessing).
- General Matrices (Heavy-Light Split + Tree Sampling): Ideally, to estimate the dot product of row $A_i$ and vector $x$, you’d sample entries proportional to $|a_{ij}x_j|$. Since $x$ isn't known during preprocessing, the authors build a binary sum-tree over each row to sample entries proportional to $|a_{ij}|$ in $O(\log n)$ time. When a query $x$ arrives, they split its coordinates into "heavy" (large) and "light" (small) buckets. Heavy coordinates are few, so their exact product is computed directly. Light coordinates are estimated via row-wise importance sampling. Balancing the heavy threshold against sample counts yields an $\widetilde{O}(n^{1.5})$ runtime. (They also provide a deterministic $O(n^{1.5})$ variant in the appendix using low-rank approximations.)
- Kernel Matrices (Simulated Trees via Fast-KDE): Building exact row-trees for a kernel matrix $K$ would take $\Omega(n^2 d)$ time, defeating the whole purpose. Instead, the authors keep a logical binary tree and estimate subtree weights "on the fly" using a black-box Fast Kernel Density Estimation (Fast-KDE) data structure built on the underlying $d$-dimensional points. Because Fast-KDE introduces additive noise $\mu$ that can ruin sampling probabilities in near-empty subtrees, the authors introduce a level-dependent pruning rule: any subtree whose estimated mass falls below a threshold is simply chopped off, bounding both estimation variance and pruning bias.
Datasets
Not discussed in the main body of the paper (the text focuses on theoretical guarantees and notes that empirical evaluations are deferred to Appendix Section D, which is not included in the provided pages).
Key Insights and Ideas
- Pruning turns additive noise into relative accuracy: Using black-box KDE queries inside a sampling tree sounds dangerous because small additive errors ($\mu$) can wildly distort branching probabilities when true weights get tiny. By pruning light subtrees and applying Kraft’s inequality for binary trees, the authors prove that surviving nodes always have enough true mass to dominate the additive noise—turning messy additive errors into clean multiplicative ones while keeping total discarded mass tiny.
- Future-proof, black-box modularity: Prior work on light Gaussian kernels had to crack open specific locality-sensitive hashing (LSH) machinery. By reducing the problem to black-box Fast-KDE queries, any future breakthrough in KDE data structures automatically speeds up kernel matrix-vector multiplication!
- Beyond standard kernels: Because the reduction only cares about fast subset-sum queries over point sets, it immediately works for "non-kernel" geometric structures too, like $\ell_2$ Euclidean distance matrices.
Key Results
- General Light Matrices: Achieves additive $\varepsilon\|x\|_2$ error in $\widetilde{O}(\frac{\gamma}{\varepsilon} n^{1.5})$ randomized query time with $O(n^2)$ preprocessing (or deterministic $O(\gamma n^{1.5}/\varepsilon)$ query time with $O(n^3)$ preprocessing).
- Gaussian Kernel Matrices: With $\gamma = O(1)$ and zero preprocessing, runtime drops from the prior state-of-the-art $\widetilde{O}(dn^{1.89}/\varepsilon^2)$ down to $\widetilde{O}(dn^{1.604}/\varepsilon^{1.041})$—a polynomial speedup in both $n$ and $1/\varepsilon$, scaling only linearly in dimension $d$.
- First-of-their-kind Bounds: Delivers the first subquadratic lightness-based algorithms for Exponential, Laplacian, and Rational Quadratic kernels, as well as $\ell_2$ distance matrices ($\widetilde{O}(d\gamma n^{1.5}/\varepsilon)$).
Limitations and Future Work
- Is $n^{1.5}$ a hard wall? Both of the authors' completely different approaches for general matrices (importance sampling and low-rank approximation) hit an $n^{1.5}$ ceiling, which also forms the baseline exponent for their kernel bounds. They conjecture $n^{1.5}$ might be a fundamental bottleneck.
- Missing lower bounds: Standard fine-grained complexity tools (like the Online Matrix-Vector conjecture) don't easily apply to bounded $\ell_1$-mass matrices. The authors suggest exploring connections to "approximate matrix rigidity" to prove formal hardness results—or finding a clever way to break past $n^{1.5}$.
Summary updated