A subspace embedding for some ε∈(0,1/3) and linear subspace W is a matrix Π satisfying
A simple argument then shows that if one instead computes
A recent line of work sought to improve the O(ndlogn) term above to a quantity that depends only on the sparsity of the matrix A as opposed to its ambient dimension. The works give an OSE with m=O(d2/ε2) where every Π in the support of the OSE has only s=1 non-zero entry per column. The work also showed how to achieve m=O(d1+γ/ε2),s=\poly(1/γ)/ε for any constant γ>0. Using these OSE’s together with other optimizations (for details see the reductions in ), these works imply approximate regression algorithms running in time O(\nnz(A)+(d3logd)/ε2) (the s=1 case), or Oγ(\nnz(A)/ε+dω+γ/ε2) or Oγ((\nnz(A)+d2)log(1/ε)+dω+γ) (the case of larger s). Interestingly the algorithm which yields the last bound only requires an OSE with distortion (1+ε0) for constant ε0, while still approximately the least squares optimum up to 1+ε.
As seen above we now have several upper bounds, though our understanding of lower bounds for the OSE problem is lacking. Any subspace embedding, and thus any OSE, must have m≥d since otherwise some non-zero vector in the subspace will be in the kernel of Π and thus not have its norm preserved. Furthermore, it quite readily follows from the works that any OSE must have m=Ω(min{n,log(d/δ)/ε2}) (see Corollary 5). Thus the best known lower bound to date is m=Ω(min{n,d+ε−2log(d/δ)}), while the best upper bound is m=O(min{n,(d+log(1/δ))/ε2}) (the OSE supported only on the n×n identity matrix is indeed an OSE with ε=δ=0). We remark that although some problems can make use of OSE’s with distortion 1+ε0 for some constant ε0 to achieve (1+ε)-approximation to the final problem, this is not always true (e.g. no such reduction is known for approximating leverage scores). Thus it is important to understand the required dependence on ε.
We show that for any ε,δ∈(0,1/3), any OSE with distortion 1+ε and error probability δ must have m=Ω(min{n,(d+log(1/δ))/ε2}), which is optimal.
We also make progress in understanding the tradeoff between m and s. The work observed via a simple reduction to nonuniform balls and bins that any OSE with s=1 must have m=Ω(d2). Also recall the upper bound of of m=O(d1+γ/ε2),s=\poly(1/γ)/ε for any constant γ>0.
Our contribution II:
We show that for δ a fixed constant and n>100d2, any OSE with m=o(ε2d2) must have s=Ω(1/ε). Thus a phase transition exists between sparsity s=1 and super-constant sparsity somewhere around m being d2. We also show that for m<d1+γ and γ∈((10loglogd)/(αlogd),α/4) and 2/(εγ)<d1−α, for any constant α>0, it must hold that s=Ω(α/(εγ)). Thus the s=\poly(1/γ)/ε dependence of is correct (although our lower bound requires m<d1+γ as opposed to m<d1+γ/ε2).
Our proof in the first contribution follows Yao’s minimax principle combined with concentration arguments and Cauchy’s interlacing theorem. Our proof in the second contribution uses a bound for nonuniform balls and bins and the simple fact that for any distribution over unit vectors, two i.i.d. samples are not negatively correlated in expectation.
1 Notation
Dimension lower bound
Let U∈On×d be such that the columns of U form an o.n. basis for a d-dimensional linear subspace W. Then the condition in Eq. (1) is equivalent to all singular values of ΠU lying in the interval [1−ε,1+ε]. Let κ(A) denote the condition number of matrix A, i.e. its largest singular value divided by its smallest singular value, so that for any such U an OSE has κ(ΠU)≤1+ε with probability 1−δ over the randomness of Π. Thus D being an OSE implies the condition
We now show a lower bound for m in any distribution D satisfying Eq. (2) with δ<1/3. Our proof will use a couple lemmas. The first is quite similar to the Johnson-Lindenstrauss lemma itself. Without the appearance of the matrix D, it would follow from the the analyses in using Gaussian symmetry.
Let the columns of U∈On×m span E, and let ui denote the ith row of U. Let the singular values of D be σ12,…,σn2. The random unit vector u can be generated as g/∥g∥ for a multivariate Gaussian g with identity covariance matrix. Then
and ∥DUUTD∥≤∥D∥2⋅∥UUT∥=σmax2. Therefore by the Hanson-Wright inequality,
Similarly \E∥g∥2=n and ∥g∥ is also the product of a matrix with orthonormal columns (the identity matrix), a diagonal matrix with σmin=σmax=1 (the identity matrix), and a multivariate gaussian. The analysis above thus implies
Therefore with probability 1−C(e−Ω(ε2n)+e−Ω(ε2m)) for some constant C>0,
We also need the following lemma, which is a special case of Cauchy’s interlacing theorem.
Lastly, we need the following theorem and corollary, which follows from . A similar conclusion can be obtained using , but requiring the assumption that d<n1−γ for some constant γ>0.
Then m≳min{n,ε−2log(t/δ)}.
The proof uses Yao’s minimax principle. That is, let U be an arbitrary distribution over t-tuples of vectors in Sn−1. Then
The work [9, Theorem 9] gave a particular distribution Uhard for the case t=1 so that no Π0 can satisfy Eq. (5) unless m≳min{n,ε−2log(1/δ)}. In particular, it showed that the left hand side of Eq. (5) is at most 1−e−O(ε2m+1) as long as m≤n/2 in the case t=1. For larger t, we simply let the hard distribution be Uhard⊗t, i.e. the t-fold product distribution of Uhard. Then the left hand side of Eq. (5) is at most (1−e−C(ε2m+1))t. Let δ′=e−C(ε2m+1). Thus D cannot satisfy the property in the hypothesis of the lemma if (1−δ′)t<1−δ. We have (1−δ′)t≤e−tδ′, and furthermore e−x=1−Θ(x) for 0<x<1/2. Thus we must have tδ′=O(δ), i.e. e−C(ε2m+1)=δ′=O(δ/t). Rerranging terms proves the theorem. ∎
Now we prove the main theorem of this section.
Let D be any OSE with ε,δ<1/3. Then m=Ω(min{n,d/ε2}).
We assume d/ε2≤cn for some constant c>0. Our proof uses Yao’s minimax principle. Thus we must construct a distribution Uhard such that
Let Π0=LDWT be the singular value decomposition (SVD) of Π0, i.e. L∈Om×n,W∈On×n, and D is n×n with Di,i≥0 for all 1≤i≤m, and all other entries of D are 0. Note that WTU is distributed identically as U, which is identically distributed as W′U where W′ is an n×n block diagonal matrix with two blocks. The upper-left block of W′ is a random rotation M∈Om×m according to Haar measure. The bottom-right block of W′ is the (n−m)×(n−m) identity matrix. Thus it is equivalent to analyze the singular values of the matrix LDW′U. Also note that left multiplication by L does not alter singular values, and the singular values of DW′U and D′MATU are identical, where A is the n×m matrix whose columns are e1,…,em. Also D′ is an m×m diagonal matrix with Di,i′=Di,i. Thus we wish to show that if m is sufficiently small, then
Henceforth in this proof we assume for the sake of contradiction that m≤c⋅min{d/ε2,n} for some small positive constant c>0. Also note that we may assume by Corollary 5 that m=Ω(min{n,ε−2log(d/δ)}).
Assume that with probability strictly larger than 2/3 over the choice of U, we can find unit vectors z1,z2 so that ∥ATUz1∥/∥ATUz2∥>1+ε. Now suppose we have such z1,z2. Define y1=ATUz1/∥ATUz1∥,y2=ATUz2/∥ATUz2∥. Then a random M∈Om×m has the same distribution as M′T, where M′ is i.i.d. as M, and T can be any distribution over Om×m, so we write M=M′T. T may even depend on U, since M′U will then still be independent of U and a random rotation (according to Haar measure). Let T be the m×m identity matrix with probability 1/2, and Ry1,y2 with probability 1/2 where Ry1,y2 is the reflection across the bisector of y1,y2 in the plane containing these two vectors, so that Ry1,y2y1=y2,Ry1,y2y2=y1. Now note that for any fixed choice of M′ it must be the case that ∥D′M′y1∥≥∥D′M′y2∥ or ∥D′M′y2∥≥∥D′M′y1∥. Thus ∥D′M′Ty1∥≥∥D′M′Ty2∥ occurs with probability 1/2 over T, and the reverse inequality occurs with probability 1/2. Thus for this fixed U for which we found such z1,z2, over the randomness of M′,T we have κ(D′MATU)≥∥D′MATUz1∥/∥D′MATUz2∥ is greater than 1+ε with probability at least 1/2. Since such z1,z2 exist with probability larger than 2/3 over chioce of U, we have established Eq. (7). It just remains to establish the existence of such z1,z2.
Also note ETu/∥ETu∥ is uniformly random in Sm−1, and also BTC has orthonormal rows since BTCCTB=BTB=I, and thus again by Lemma 2 with E being the row space of BTC and D=Λ, we have ∥BTCΛETu∥=Θ(∥ETu∥⋅d/m)=Θ(d/n) with probability 1−e−Ω(d).
For c small, the above is bigger than (1+ε)2(1+C2ε)2m/n as desired.
Case 2 (cd/ε≤m≤cd/ε2cd/\varepsilon\leq m\leq cd/\varepsilon^{2}):
Sparsity Lower Bound
If n≥100d2 and m≤ε2d(d−1)/32, then s=Ω(1/ε).
Let P be a distribution over vectors of norm at most 1 and u and v be independent samples from P. Then \E⟨u,v⟩≥0.
Let δ=\E⟨u,v⟩. Assume for the sake of contradiction that δ<0. Take t samples u1,…,ut from P. By linearity of expectation, we have 0≤\E(∑iui)2≤t+t(t−1)δ. This is a contradiction because the RHS tends to −∞ as t→∞. ∎
Let X be a random variable bounded by 1 and \EX≥0. Then for any 0<δ<1, we have Pr(X≤−δ)≤1/(1+δ).
We prove the contrapositive. If Pr(X≤−δ)>1/(1+δ), then
Let ui be the i column of ΠU, ri and zi be the index and the value of the coordinate of the maximum absolute value of ui, and vi be ui with the coordinate at position ri removed. Let p2j−1(respectively, p2j) be the fractions columns of Π whose entry of maximum absolute value is on row j and is positive (respectively, negative). Let Ci,j be the indicator variable indicating whether ri=rj and zi and zj are of the same sign. Let E=\EC1,2=∑i=12mpi2. Let C=∑i<j≤dCi,j. We have
If i1,i2,i3,i4 are distinct then Ci1,i2,Ci3,i4 are independent. If the pairs (i1,i2) and (i3,i4) share one index then Pr(Ci1,i2=1∧Ci3,i4=1)=∑ipi3 and Pr(Ci1,i2=1∧Ci3,i4=0)=∑ipi2(1−pi). Thus for this case,
Thus, with probability at least 1−O(ε), we have C≥4ε−2. We now argue that there exist 1/ε pairwise-disjoint pairs (ai,bi) such that rai=rbi and zai and zbi are of the same sign. Indeed, let d2j−1 (respectively, d2j) be the number of ui’s with ri=j and zi being positive (respectively, negative). Wlog, assume that d1,…,dt are all the di’s that are at least 2. We can always get at least ∑i=1t(di−1)/2 disjoint pairs. We have
For each pair (ai,bi), by Lemmas 8 and 9, Pr[⟨vai,vbi⟩≤−ε]≤1+ε1 and these events for different i’s are independent so with probability at least 1−(1+ε)−1/ε≥1−eε/2−1, there exists some i such that ⟨vai,vbi⟩>−ε. For Π to be a subspace embedding for the column span of U, it must be the case, for all i, that ∥ui∥=∥ΠUei∥≥1−ε. We have ∣zi∣≥s−1/2∥ui∥≥s−1/2(1−ε)∀i. Therefore, ⟨uai,ubi⟩≥s−1(1−ε)2−ε. We have
However, ∥ΠU∥≤1+ε so s≥(1−ε)2/(5ε). ∎
2 Lower bound in terms of mm
For n≥100d2, logd20loglogd<γ<1/12 and ε=1/2, if m≤d1+γ, then s=Ω(1/γ).
We first prove a standard bound for a certain balls and bins problem. The proof is included for completeness.
Let α be a constant in (0,1). Consider the problem of throwing d balls independently and uniformly at random at m≤d1+γ bins with αlogd10loglogd<γ<1/12. With probability at least 99/100, at least d1−α/2 bins have load at least α/(2γ).
Let Xi be the indicator r.v. for bin i having t=α/(2γ) balls, and X=def∑iXi. Then
Thus, \EX≥d1−α. Because Xi’s are negatively correlated,
Thus, with probability 1−4dα−1, there exist d1−α/2 bins with at least α/(2γ) balls. ∎
Next we prove a slightly weaker bound for the non-uniform version of the problem.
Consider the problem of throwing d balls independently at m≤d1+γ bins. In each throw, bin i receives the ball with probability pi. With probability at least 99/100, there exist d1−α/2 disjoint groups of balls of size α/(4γ) each such that all balls in the same group land in the same bin.
The following procedure is inspired by the alias method, a constant time algorithm for sampling from a given discrete distribution (see e.g. ). We define a set of m virtual bins with equal probabilities of receiving a ball as follows. The following invariant is maintained: in the ith step, there are m−i+1 values p1,…,pm−i+1 satisfying ∑jpj=(m−i+1)/m. In the ith step, we create the ith virtual bin as follows. Pick the smallest pj and the largest pk. Notice that pj≤1/m≤pk. Form a new virtual bin from pj and 1/m−pj probability mass from pk. Remove pj from the collection and replace pk with pk+pj−1/m.
By Lemma 11, there exist d1−α/2 virtual bins receiving at least α/(2γ) balls. Since each virtual bin receives probability mass from at most 2 bins, there exist d1−α/2 groups of balls of size at least α/(4γ) such that all balls in the same group land in the same bin. ∎
Finally we use the above bound for balls and bins to prove the lower bound. Let pi be the fraction of columns of Π whose coordinate of largest absolute value is on row i. By Lemma 12, there exist a row i and α/(4γ) columns of ΠU such that the coordinates of maximum absolute value of those columns all lie on row i. Π is a subspace embedding for the column span of U only if ∥ΠUej∥∈[1/2,3/2]∀j. The columns of ΠU are s sparse so for any column of ΠU, the largest absolute value of its coordinates is at least s−1/2/2. Therefore, ∥eiTΠU∥2≥α/(16γs). Because ∥ΠU∥≤3/2, it must be the case that s=Ω(α/γ).
3 Combining both types of lower bounds
For n≥100d2, m<d1+γ, α∈(0,1), αlogd10loglogd<γ<α/4, 0<ε<1/2, and 2/(εγ)<d1−α, we must have s=Ω(α/(εγ)).
Let ui be the i column of ΠU, ri and zi be the index and the value of the coordinate of the maximum absolute value of ui, and vi be ui with the coordinate at position ri removed. Fix t=α/(4γ). Let p2i−1 (respectively, p2i) be the fractions of columns of Π whose largest entry is on row i and positive (respectively, negative). By Lemma 12, there exist d1−α/2 disjoint groups of t columns of ΠU such that the columns in the same group have the entries with maximum absolute values on the same row. Consider one such group G={ui1,…,uit}. By Lemma 8 and linearity of expectation, \E∑ui,uj∈G,i=j⟨vi,vj⟩≥0. Furthermore, ∑ui,uj∈G,i=j⟨vi,vj⟩≤t(t−1). Thus, by Lemma 9, Pr(∑ui,uj∈G,i=j⟨vi,vj⟩≤−t(t−1)(εγ))≤1+εγ1. This event happens independently for different groups, so with probability at least 1−(1+εγ)−1/(εγ)≥1−eεγ/2−1, there exists a group G such that
The matrix Π is a subspace embedding for the column span of U only if for all i, we have ∥ui∥=∣ΠUei∥≥(1−ε). We have ∣zi∣≥s−1/2∥ui∥≥s−1/2(1−ε). Thus, ∑ui,uj∈G,i=j⟨ui,uj⟩≥t(t−1)((1−ε)2s−1−εγ). We have
Because ∥ΠU∥≤1+ε, we must have s≥(16+α)ε(α/γ−4)(1−ε)2. ∎