Lune

NeurIPS2022Top-tier venue

Faster Linear Algebra for Distance Matrices

Piotr Indyk, Sandeep Silwal

2022Year
6Citations
6Top-tier citations

Abstract

The distance matrix of a dataset XX of nn points with respect to a distance function ff represents all pairwise distances between points in XX induced by ff. Due to their wide applicability, distance matrices and related families of matrices have been the focus of many recent algorithmic works. We continue this line of research and take a broad view of algorithm design for distance matrices with the goal of designing fast algorithms, which are specifically tailored for distance matrices, for fundamental linear algebraic primitives. Our results include efficient algorithms for computing matrix-vector products for a wide class of distance matrices, such as the ℓ1\ell_1 metric for which we get a linear runtime, as well as an Ω(n2)\Omega(n^2) lower bound for any algorithm which computes a matrix-vector product for the ℓ∞\ell_{\infty} case, showing a separation between the ℓ1\ell_1 and the ℓ∞\ell_{\infty} metrics. Our upper bound results, in conjunction with recent works on the matrix-vector query model, have many further downstream applications, including the fastest algorithm for computing a relative error low-rank approximation for the distance matrix induced by ℓ1\ell_1 and ℓ22\ell_2^2 functions and the fastest algorithm for computing an additive error low-rank approximation for the ℓ2\ell_2 metric, in addition to applications for fast matrix multiplication among others. We also give algorithms for constructing distance matrices and show that one can construct an approximate ℓ2\ell_2 distance matrix in time faster than the bound implied by the Johnson-Lindenstrauss lemma.

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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

Cited by top-tier papers6

Ask how each one uses it

Builds on9

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines