atlas

Research map / Learning theory and algorithms / Matrix and tensor methods

Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions

ICLR 2025 · Learning theory and algorithms › Matrix and tensor methods · approach: Randomized sketching for matrices · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a sum-of-entries-linear-in-n assumption on Gaussian kernel matrices from attention and an LSH-based subquadratic (about n^1.89) algorithm for approximate kernel matrix-vector multiplication with arbitrary-sign vectors.

Problem

Approximate kernel (Gaussian) matrix-vector products Kx for attention-derived asymmetric kernel matrices in subquadratic time for unrestricted vectors x in high dimensions.

Approach

Assume the total entry sum of K is linear in n (tail sum at most a constant times head sum of top-n entries), then combine vector pre-processing, LSH-based heavy-key finding, and adaptive importance-style subsampling of light keys with per-row sample counts estimated via KDE, giving an additive l2 error guarantee ||Kx-y|| <= eps||x|| that works for any x.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ApproxKMV under the head-to-tail sparsity assumption instead of the prior LSH-based algorithmGaussian kernel matrix-vector multiplication for unrestricted vectors · Gaussian kernel matrices satisfying Assumption (A)runtime exponent in n: n^{1.173+o(1)} -> n^{1.89}Helped
Evaluate the head-to-tail assumption on reduced Gaussian kernel matrices from BERT attentionReduced Gaussian kernel matrices · BERT base (uncased) on SQuAD sentencesmaximum head-to-tail ratio: less than 4.6No clear effect
Evaluate the head-to-tail assumption on reduced Gaussian kernel matricesReduced Gaussian kernel matrices · GPT-1 on SQuAD sentencesmaximum head-to-tail ratio: less than 5.15No clear effect
Evaluate the head-to-tail assumption on reduced Gaussian kernel matricesReduced Gaussian kernel matrices · RoBERTa on SQuAD sentencesmaximum head-to-tail ratio: less than 5.39No clear effect
Use adaptive sampling budgets based on per-query empirical variance in the approximate attention implementationKDEFormer-based normalized attention approximation · GloVe embeddings, sequence lengths 4K–16Kexact-to-approximate runtime ratioHelped

Surprising findings

Limitations

Experimental setup

Datasets: SQuAD

Benchmarks: SQuAD (sentences for attention matrices) GloVe embeddings (runtime experiment)

Metrics: head-to-tail ratio c median ratio of nth and 2nth largest entries wall-clock runtime ratio exact vs approximate

Baselines: Exact O(n^2 d) multiplication KDEFormer Kernel noisy power method (Alman et al.)

Builds on: locality sensitive hashing Fast Gaussian KDE (Charikar et al.-style LSH KDE) KDEFormer Kernel noisy power method

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy