Johnson–Lindenstrauss lemma

From testwiki
Jump to navigation Jump to search

Template:Short description In mathematics, the Johnson–Lindenstrauss lemma is a result named after William B. Johnson and Joram Lindenstrauss concerning low-distortion embeddings of points from high-dimensional into low-dimensional Euclidean space. The lemma states that a set of points in a high-dimensional space can be embedded into a space of much lower dimension in such a way that distances between the points are nearly preserved. In the classical proof of the lemma, the embedding is a random orthogonal projection.

The lemma has applications in compressed sensing, manifold learning, dimensionality reduction, graph embedding, and natural language processing. Much of the data stored and manipulated on computers, including text and images, can be represented as points in a high-dimensional space (see vector space model for the case of text). However, the essential algorithms for working with such data tend to become bogged down very quickly as dimension increases. [Note 1] It is therefore desirable to reduce the dimensionality of the data in a way that preserves its relevant structure.

Statement

Given 0<ε<1, a set X of N points in ℝn , and an integer k>8(ln⁡N)/ε2,[2] there is a linear map f:ℝn→ℝk such that

(1−ε)‖u−v‖2≤‖f(u)−f(v)‖2≤(1+ε)‖u−v‖2

for all u,v∈X.

The formula can be rearranged:(1+ε)−1‖f(u)−f(v)‖2≤‖u−v‖2≤(1−ε)−1‖f(u)−f(v)‖2

Alternatively, for any ε∈(0,1) and any integer k≥15(ln⁡N)/ε2[Note 2] there exists a linear function f:ℝn→ℝk such that the restriction f|X is (1+ε)-bi-Lipschitz.[Note 3]

Also, the lemma is tight up to a constant factor, i.e. there exists a set of points of size N that needs dimension

Ω(log⁡(N)ε2)

in order to preserve the distances between all pairs of points within a factor of (1±ε).[3]

The classical proof of the lemma takes f to be a scalar multiple of an orthogonal projection P onto a random subspace of dimension k in ℝn. An orthogonal projection collapses some dimensions of the space it is applied to, which reduces the length of all vectors, as well as distance between vectors in the space. Under the conditions of the lemma, concentration of measure ensures there is a nonzero chance that a random orthogonal projection reduces pairwise distances between all points in X by roughly a constant factor c. Since the chance is nonzero, such projections must exist, so we can choose one P and set f(v)=Pv/c.

To obtain the projection algorithmically, it suffices with high probability to repeatedly sample orthogonal projection matrices at random. If you keep rolling the dice, you will eventually obtain one in polynomial random time.

Proof

The proof below is based on the course notes of Afonso Bandeira that can be found at the following link.[4]

Construct a random matrix A∼𝒩(0,1)k×n, obtained by sampling each entry from the standard normal distribution. Define P:=Ak, then for any nonzero vector x∈ℝn, let the projected vector be x̂:=Ax. Standard geometric arguments show that r:=‖x̂‖2‖x‖2 is chi-square distributed, that is, r∼χ2(k). Thus, it satisfies a concentration inequality for the chi-squared distribution:Pr⁡(r∈(1±ϵ)k)≥1−2e−k2(12ϵ2−13ϵ3)

By the union bound, the probability that this relation is true for all of x1,…,xN is greater than 1−2Ne−k2(12ϵ2−13ϵ3).

When k≥4ln⁡2Nϵ2(1−2ϵ/3), the probability is nonzero.

More generally, when k≥4(d+1)ln⁡2Nϵ2(1−2ϵ3), the probability is greater than, or equal to 1−1(2N)d, allowing arbitrarily high probability of success per sample, and a fortiori polynomial random time.

Alternate statement

A related lemma is the distributional JL lemma. This lemma states that for any 0<ε,δ<1/2 and positive integer d, there exists a distribution over ℝk×d from which the matrix A is drawn such that for k=O(ε−2log⁡(1/δ)) and for any unit-length vector x∈ℝd, the claim below holds.[5]

P(|‖Ax‖22−1|>ε)<δ

One can obtain the JL lemma from the distributional version by setting x=(u−v)/‖u−v‖2 and δ<1/n2 for some pair u,v both in X. Then the JL lemma follows by a union bound over all such pairs.

Sparse JL transform

Database-friendly JL transform

(Achlioptas, 2003)[6] proposed "database-friendly" JL transform, using matrices with only entries from (-1, 0, +1).

Template:Math theorem

Fix some unit vector v∈ℝn. Define Qi:=∑jRijvj. We have ‖f(v)‖22=1k∑iQi2.

Now, since the Q1,…,Qk are IID, we want to apply a Chernoff concentration bound for 1k∑iQi2 around 1. This requires upper-bounding the cumulant generating function (CGF).

Template:Math theorem

Template:Hidden begin

Template:Math proofTemplate:Hidden end

Now that Qi is stochastically dominated by the standard gaussian, and E[Qi2]=1, it remains to perform a Chernoff bound for Qi2, which requires bounding the cumulant generating function on both ends.

Template:Hidden begin

Template:Math proofTemplate:Hidden end

Sparser JL transform on well-spread vectors

(Matoušek, 2008)[7] proposed a variant of the above JL transform that is even more sparsified, though it only works on "well-spread" vectors.

Template:Math theoremThe above cases are generalized to the case for matrices with independent, mean-zero, unit variance, subgaussian entries in (Dirksen, 2016).[8]

Speeding up the JL transform

Given A, computing the matrix vector product takes O(kd) time. There has been some work in deriving distributions for which the matrix vector product can be computed in less than O(kd) time.

There are two major lines of work. The first, Fast Johnson Lindenstrauss Transform (FJLT),[9] was introduced by Ailon and Chazelle in 2006. This method allows the computation of the matrix vector product in just dlog⁡d+k2+γ for any constant γ>0.

Another approach is to build a distribution supported over matrices that are sparse.[10] This method allows keeping only an ε fraction of the entries in the matrix, which means the computation can be done in just kdε time. Furthermore, if the vector has only b non-zero entries, the Sparse JL takes time kbε, which may be much less than the dlog⁡d time used by Fast JL.

Tensorized random projections

It is possible to combine two JL matrices by taking the so-called face-splitting product, which is defined as the tensor products of the rows (was proposed by V. Slyusar[11] in 1996[12][13][14][15][16] for radar and digital antenna array applications). More directly, let C∈ℝ3×3 and D∈ℝ3×3 be two matrices. Then the face-splitting product C∙D is[12][13][14][15][16]

C∙D=[C1⊗D1C2⊗D2C3⊗D3].

This idea of tensorization was used by Kasiviswanathan et al. for differential privacy.[17]

JL matrices defined like this use fewer random bits, and can be applied quickly to vectors that have tensor structure, due to the following identity:[14]

(𝐂∙𝐃)(x⊗y)=𝐂x∘𝐃y=[(𝐂x)1(𝐃y)1(𝐂x)2(𝐃y)2⋮],

where ∘ is the element-wise (Hadamard) product. Such computations have been used to efficiently compute polynomial kernels and many other Template:Clarify.[18]

In 2020[19] it was shown that if the matrices C1,C2,…,Cc are independent ±1 or Gaussian matrices, the combined matrix C1∙…∙Cc satisfies the distributional JL lemma if the number of rows is at least

O(ϵ−2log⁡1/δ+ϵ−1(1clog⁡1/δ)c).

For large ϵ this is as good as the completely random Johnson-Lindenstrauss, but a matching lower bound in the same paper shows that this exponential dependency on (log⁡1/δ)c is necessary. Alternative JL constructions are suggested to circumvent this.

See also

Notes

Template:Reflist

References

Template:Reflist

Further reading


Cite error: <ref> tags exist for a group named "Note", but no corresponding <references group="Note"/> tag was found.