Sampling Algorithms and Coresets for Lp Regression

Anirban Dasgupta, Petros Drineas, Boulos Harb, Ravi Kumar, Michael W. Mahoney

Introduction

An important question in algorithmic problem solving is whether there exists a small subset of the input such that if computations are performed only on this subset, then the solution to the given problem can be approximated well. Such a subset is often known as a coreset for the problem. The concept of coresets has been extensively used in solving many problems in optimization and computational geometry; e.g., see the excellent survey by Agarwal, Har-Peled, and Varadarajan .

(2) Subspace-preserving sampling. We show that sampling rows of A{A} according to information in the rows of a well-conditioned basis of AA minimizes the sampling variance and consequently, the rank of AA is not lost by sampling. This is critical for our relative-error approximation guarantees. The notion of subspace-preserving sampling was used in for p=2p=2, but we abstract and generalize this concept for all p∈[1,∞)p\in[1,\infty).

We note that for p=2p=2, our sampling complexity matches that of , which is O(d2/ϵ2)O(d^{2}/\epsilon^{2}); and for p=1p=1, it improves that of from O(d3.5(log⁡d)/ϵ2)O(d^{3.5}(\log d)/\epsilon^{2}) to O(d2.5/ϵ2)O(d^{2.5}/\epsilon^{2}).

Overview of our methods. Given an input matrix AA, we first construct a well-conditioned basis for AA and use that to obtain bounds on a slightly non-standard notion of a pp-norm condition number of a matrix. The use of this particular condition number is crucial since the variance in the subspace preserving sampling can be upper bounded in terms of it. An ε\varepsilon-net argument then shows that the first stage sampling gives us a 88-approximation. The next twist is to use the output of the first stage as a feedback to fine-tune the sampling probabilities. This is done so that the “positional information” of bb with respect to AA is also preserved in addition to the subspace. A more careful use of a different ε\varepsilon-net shows that the second stage sampling achieves a (1+ϵ)(1+\epsilon)-approximation.

2 Related work

Preliminaries

Two crucial ingredients in our proofs are ε\varepsilon-nets and tail-inequalities. A subset N(D)\mathcal{N}(D) of a set DD is called an ε\varepsilon-net in DD for some ε>0\varepsilon>0 if for every x∈Dx\in D, there is a y∈N(D)y\in\mathcal{N}(D) with ∥x−y∥≤ε\left\lVert x-y\right\rVert\leq\varepsilon. In order to construct an ε\varepsilon-net for D{D} it is enough to choose N(D)\mathcal{N}(D) to be the maximal set of points that are pairwise ε\varepsilon apart. It is well known that the unit ball of a dd-dimensional space has an ε\varepsilon-net of size at most (3/ε)d(3/\varepsilon)^{d} .

Finally, throughout this paper, we will use the following sampling matrix formalism to represent our sampling operations. Given a set of nn probabilities, pi∈(0,1]p_{i}\in(0,1], for i=1,…,ni=1,\ldots,n, let SS be an n×nn\times n diagonal sampling matrix such that SiiS_{ii} is set to 1/pi1/p1/p_{i}^{1/p} with probability pip_{i} and to zero otherwise. Clearly, premultiplying A{A} or bb by SS determines whether the ii-th row of A{A} and the corresponding element of bb will be included in the sample, and the expected number of rows/elements selected is r′=∑i=1npir^{\prime}=\sum_{i=1}^{n}p_{i}. (In what follows, we will abuse notation slightly by ignoring zeroed out rows and regarding SS as an r′×nr^{\prime}\times n matrix and thus SASA as an r′×mr^{\prime}\times m matrix.) Thus, e.g., sampling constraints from Equation (1) and solving the induced subproblem may be represented as solving

Main technical ingredients

We introduce the following notion of a “well-conditioned” basis.

The existence and efficient construction of these bases is given by the following.

Let A{A} be an n×mn\times m matrix of rank dd, let p∈[1,∞)p\in[1,\infty), and let qq be its dual norm. Then there exists an (α,β,p)(\alpha,\beta,p)-well-conditioned basis U{U} for the column space of A{A} such that: if p<2p<2, then α=d1p+12\alpha=d^{\frac{1}{p}+\frac{1}{2}} and β=1\beta=1, if p=2p=2, then α=d12\alpha=d^{\frac{1}{2}} and β=1\beta=1, and if p>2p>2, then α=d1p+12\alpha=d^{\frac{1}{p}+\frac{1}{2}} and β=d1q−12\beta=d^{\frac{1}{q}-\frac{1}{2}}. Moreover, U{U} can be computed in O(nmd+nd5log⁡n)O(nmd+nd^{5}\log n) time (or in just O(nmd)O(nmd) time if p=2p=2).

Let A=QR{A}=QR, where QQ is any n×dn\times d matrix that is an orthonormal basis for span⁡(A)\operatorname{span}({A}) and RR is a d×md\times m matrix. If p=2p=2, then QQ is the desired basis U{U}; from the discussion following Definition 3, α=d\alpha=\sqrt{d} and β=1\beta=1, and computing it requires O(nmd)O(nmd) time. Otherwise, fix QQ and pp and define the norm, ∥z∥Q,p≜∥Qz∥p\left\lVert z\right\rVert_{Q,p}\triangleq\left\lVert Qz\right\rVert_{p} . A quick check shows that ∥⋅∥Q,p\left\lVert\cdot\right\rVert_{Q,p} is indeed a norm. (∥z∥Q,p=0\left\lVert z\right\rVert_{Q,p}=0 if and only if z=0z=0 since QQ has full column rank; ∥γz∥Q,p=∥γQz∥p=∣γ∣∥Qz∥p=∣γ∣∥z∥Q,p\left\lVert\gamma z\right\rVert_{Q,p}=\left\lVert\gamma Qz\right\rVert_{p}=\lvert\gamma\rvert\left\lVert Qz\right\rVert_{p}=\lvert\gamma\rvert\left\lVert z\right\rVert_{Q,p}; and ∥z+z′∥Q,p=∥Q(z+z′)∥p≤∥Qz∥p+∥Qz′∥p=∥z∥Q,p+∥z′∥Q,p\left\lVert z+z^{\prime}\right\rVert_{Q,p}=\left\lVert Q(z+z^{\prime})\right\rVert_{p}\leq\left\lVert Qz\right\rVert_{p}+\left\lVert Qz^{\prime}\right\rVert_{p}=\left\lVert z\right\rVert_{Q,p}+\left\lVert z^{\prime}\right\rVert_{Q,p}.)

where ∥z∥\sclj2=zTFz\left\lVert z\right\rVert_{\text{\sc lj}}^{2}=z^{T}Fz (see, e.g. [9, pp. 413–4]). Since the matrix FF is symmetric positive definite, we can express it as F=GTGF=G^{T}G, where GG is full rank and upper triangular. Since QQ is an orthogonal basis for span⁡(A)\operatorname{span}({A}) and GG is a d×dd\times d matrix of full rank, it follows that U=QG−1{U}=QG^{-1} is an n×dn\times d matrix that spans the column space of A{A}. We claim that U≜QG−1{U}\triangleq QG^{-1} is the desired pp-well-conditioned basis.

In order to construct UU, we need to compute QQ and GG and then invert GG. Our matrix A{A} can be decomposed into QRQR using the compact QRQR decomposition in O(nmd)O(nmd) time. The matrix FF describing the Löwner–John ellipsoid of the unit ball of ∥⋅∥Q,p\left\lVert\cdot\right\rVert_{Q,p} can be computed in O(nd5log⁡n)O(nd^{5}\log n) time. Finally, computing GG from FF takes O(d3)O(d^{3}) time, and inverting GG takes O(d3)O(d^{3}) time. ∎

2 Subspace-preserving sampling

In the previous subsection (and in the notation of the proof of Theorem 4), we saw that given p∈[1,∞)p\in[1,\infty), any n×mn\times m matrix A{A} of rank dd can be decomposed as

where U=QG−1U=QG^{-1} is a pp-well-conditioned basis for span⁡(A)\operatorname{span}(A) and τ=GR\tau=GR. The significance of a pp-well-conditioned basis is that we are able to minimize the variance in our sampling process by randomly sampling rows of the matrix A{A} and elements of the vector bb according to a probability distribution that depends on norms of the rows of the matrix U{U}. This will allow us to preserve the subspace structure of span⁡(A)\operatorname{span}(A) and thus to achieve relative-error approximation guarantees.

More precisely, given p∈[1,∞)p\in[1,\infty) and any n×mn\times m matrix A{A} of rank dd decomposed as A=Uτ{A}={U}\tau, where U{U} is an (α,β,p)(\alpha,\beta,p)-well-conditioned basis for span⁡(A)\operatorname{span}(A), consider any set of sampling probabilities pip_{i} for i=1,…,ni=1,\ldots,n, that satisfy:

where r=r(α,β,p,d,ϵ)r=r(\alpha,\beta,p,d,\epsilon) to be determined below. Let us randomly sample the ithi^{th} row of A{A} with probability pip_{i}, for all i=1,…,ni=1,\ldots,n. Recall that we can construct a diagonal sampling matrix SS, where each Sii=1/pi1/pS_{ii}=1/p_{i}^{1/p} with probability pip_{i} and otherwise, in which case we can represent the sampling operation as SAS{A}.

The following theorem is our main result regarding this subspace-preserving sampling procedure.

Several things should be noted about this result. First, it implies that \mboxrank(SA)=\mboxrank(A)\mbox{rank}(SA)=\mbox{rank}(A), since otherwise we could choose a vector x∈\mboxnull(SA)x\in\mbox{null}(SA) and violate the theorem. In this sense, this theorem generalizes the subspace-preservation result of Lemma 4.14.1 of to all p∈[1,∞)p\in[1,\infty). Second, regarding sampling complexity: if p<2p<2 the sampling complexity is O(dp2+2)O(d^{\frac{p}{2}+2}), if p=2p=2 it is O(d2)O(d^{2}), and if p>2p>2 it is O(dd1p+12d1q−12)p=O(dp+1)O(dd^{\frac{1}{p}+\frac{1}{2}}d^{\frac{1}{q}-\frac{1}{2}})^{p}=O(d^{p+1}). Finally, note that this theorem is analogous to the main result of Schechtman , which uses the notion of Auerbach bases.

The sampling algorithm

In the second stage, the algorithm uses information from the residual of the 88-approximation computed in the first stage to refine the sampling probabilities. Define the residual ρ^=Ax^c−b\hat{\rho}={A}\hat{x}_{c}-b (and note that ∥ρ^∥p≤8 Z\|\hat{\rho}\|_{p}\leq 8\,{\cal Z}). Then, roughly O(dp+1/ϵ2)O(d^{p+1}/\epsilon^{2}) rows of A{A}, and the corresponding elements of bb, are randomly sampled according to the probability distribution

Note that since the algorithm of Figure 1 constructs the (α,β,p)(\alpha,\beta,p)-well-conditioned basis U{U} using the procedure in the proof of Theorem 4, our sampling complexity depends on α\alpha and β\beta. In particular, it will be O(d(αβ)p)O(d(\alpha\beta)^{p}). Thus, if p<2p<2 our sampling complexity is O(d⋅dp2+1)=O(dp2+2)O(d\cdot d^{\frac{p}{2}+1})=O(d^{\frac{p}{2}+2}); if p>2p>2 it is O(d(d1p+12d1q−12)p)=O(dp+1)O(d(d^{\frac{1}{p}+\frac{1}{2}}d^{\frac{1}{q}-\frac{1}{2}})^{p})=O(d^{p+1}); and (although not explicitly stated, our proof will make it clear that) if p=2p=2 it is O(d2)O(d^{2}). Note also that we have stated the claims of the theorem as holding with constant probability, but they can be shown to hold with probability at least 1−δ1-\delta by using standard amplification techniques.

2 Proof for first-stage sampling – constant-factor approximation

To prove the claims of Theorem 6 having to do with the output of the algorithm after the first stage of sampling, we begin with two lemmas. First note that, because of our choice of r1r_{1}, we can use the subspace preserving Theorem 5 with only a constant distortion, i.e., for all xx, we have

with probability at least 0.990.99. The first lemma below now states that the optimal solution to the original problem provides a small (constant-factor) residual when evaluated in the sampled problem.

∥S(Ax\scopt−b)∥≤3Z\left\lVert S(Ax_{\text{\sc opt}}-b)\right\rVert\leq 3{\cal Z}, with probability at least 1−1/3p1-1/3^{p}.

The next lemma states that if the solution to the sampled problem provides a constant-factor approximation (when evaluated in the sampled problem), then when this solution is evaluated in the original regression problem we get a (slightly weaker) constant-factor approximation.

If ∥S(Ax^c−b)∥≤3 Z\left\lVert S({A}\hat{x}_{c}-b)\right\rVert\leq 3\,{\cal Z}, then ∥Ax^c−b∥≤8 Z\left\lVert{A}\hat{x}_{c}-b\right\rVert\leq 8\,{\cal Z}.

To conclude the proof of the claims for the first stage of sampling, note that by our choice of r1r_{1}, Theorem 5 fails to hold for our first stage sampling with probability no greater than 1/1001/100. In addition, Lemma 7 fails to hold with probability no grater than 1/3p1/3^{p}, which is no greater than 1/31/3 for all p∈[1,∞)p\in[1,\infty). Finally, let r1^\widehat{r_{1}} be a random variable representing the number of rows actually chosen by our sampling schema, and note that E ⁣[r1^]≤r1E\!\left[\widehat{r_{1}}\right]\leq r_{1}. By Markov’s inequality, it follows that r1^>20r1\widehat{r_{1}}>20r_{1} with probability less than 1/201/20. Thus, the first stage of our algorithm fails to give an 88-approximation in the specified running time with a probability bounded by 1/3+1/20+1/100<2/51/3+1/20+1/100<2/5.

3 Proof for second-stage sampling – relative-error approximation

The proof of the claims of Theorem 6 having to do with the output of the algorithm after the second stage of sampling will parallel that for the first stage, but it will have several technical complexities that arise since the first triangle inequality approximation in the proof of Lemma 8 is too coarse for relative-error approximation. By our choice of r2r_{2} again, we have a finer result for subspace preservation. Thus, with probability 0.990.99, the following holds for all xx

As before, we start with a lemma that states that the optimal solution to the original problem provides a small (now a relative-error) residual when evaluated in the sampled problem. This is the analog of Lemma 7. An important difference is that the second stage sampling probabilities significantly enhance the probability of success.

∥T(Ax\scopt−b)∥≤(1+ϵ)Z\left\lVert T(A{x}_{\text{\sc opt}}-b)\right\rVert\leq(1+\epsilon){\cal Z}, with probability at least 0.990.99.

Next we show that if the solution to the sampled problem provides a relative-error approximation (when evaluated in the sampled problem), then when this solution is evaluated in the original regression problem we get a (slightly weaker) relative-error approximation. We first establish two technical lemmas.

The following lemma says that for all optimal solutions x^\scopt\hat{x}_{\text{\sc opt}} to the second-stage sampled problem, Ax^\scopt{A}\hat{x}_{\text{\sc opt}} is not too far from Ax^c{A}\hat{x}_{c}, where x^c\hat{x}_{c} is the optimal solution from the first stage, in a pp-norm sense. Hence, the lemma will allow us to restrict our calculations in Lemmas 11 and 12 to the ball of radius 12 Z12\,{\cal Z} centered at Ax^c{A}\hat{x}_{c}.

∥Ax^\scopt−Ax^c∥≤12 Z\left\lVert{A}\hat{x}_{\text{\sc opt}}-{A}\hat{x}_{c}\right\rVert\leq 12\,{\cal Z}.

Thus, if we define the affine ball of radius 12 Z12\,{\cal Z} that is centered at Ax^c{A}\hat{x}_{c} and that lies in span⁡(A)\operatorname{span}({A}),

then Lemma 10 states that Ax^\scopt∈B{A}\hat{x}_{\text{\sc opt}}\in B, for all optimal solutions x^\scopt\hat{x}_{\text{\sc opt}} to the sampled problem. Let us consider an ε\varepsilon-net, call it BεB_{\varepsilon}, with ε=ϵ Z\varepsilon=\epsilon\,{\cal Z}, for this ball BB. Using standard arguments, the size of the ε\varepsilon-net is (3⋅12 Zϵ Z)d=(36ϵ)d\left(\frac{3\cdot 12\,{\cal Z}}{\epsilon\,{\cal Z}}\right)^{d}=\left(\frac{36}{\epsilon}\right)^{d}. The next lemma states that for all points in the ε\varepsilon-net, if that point provides a relative-error approximation (when evaluated in the sampled problem), then when this point is evaluated in the original regression problem we get a (slightly weaker) relative-error approximation.

For all points AxεAx_{\varepsilon} in the ε\varepsilon-net, BεB_{\varepsilon}, if ∥T(Axε−b)∥≤(1+3ϵ)Z\left\lVert T(Ax_{\varepsilon}-b)\right\rVert\leq(1+3\epsilon){\cal Z}, then ∥Axε−b∥≤(1+6ϵ)Z\left\lVert Ax_{\varepsilon}-b\right\rVert\leq(1+6\epsilon){\cal Z}, with probability 0.990.99.

Finally, the next lemma states that if the solution to the sampled problem (in the second stage of sampling) provides a relative-error approximation (when evaluated in the sampled problem), then when this solution is evaluated in the original regression problem we get a (slightly weaker) relative-error approximation. This is the analog of Lemma 8, and its proof will use Lemma 11.

If ∥T(Ax^\scopt−b)∥≤(1+ϵ)Z\left\lVert T({A}\hat{x}_{\text{\sc opt}}-b)\right\rVert\leq(1+\epsilon){\cal Z}, then ∥Ax^\scopt−b∥≤(1+7ϵ)Z\left\lVert{A}\hat{x}_{\text{\sc opt}}-b\right\rVert\leq(1+7\epsilon){\cal Z}.

To conclude the proof of the claims for the second stage of sampling, recall that the first stage failed with probability no greater than 2/52/5. Note also that by our choice of r2r_{2}, Theorem 5 fails to hold for our second stage sampling with probability no greater than 1/1001/100. In addition, Lemma 9 and Lemma 11 each fails to hold with probability no greater than 1/100. Finally, let r2^\widehat{r_{2}} be a random variable representing the number of rows actually chosen by our sampling schema in the second stage, and note that E ⁣[r2^]≤2r2E\!\left[\widehat{r_{2}}\right]\leq 2r_{2}. By Markov’s inequality, it follows that r2^>40r2\widehat{r_{2}}>40r_{2} with probability less than 1/201/20. Thus, the second stage of our algorithm fails with probability less than 1/20+1/100+1/100+1/100<1/101/20+1/100+1/100+1/100<1/10. By combining both stages, our algorithm fails to give a (1+ϵ)(1+\epsilon)-approximation in the specified running time with a probability bounded from above by 2/5+1/10=1/22/5+1/10=1/2.

Extensions

In this section we outline several immediate extensions of our main algorithmic result.

References

Appendix A Tail inequalities

With respect to tail inequalities, we will use the following version of the Bernstein’s inequality.

Let {Xi}i=1n\{X_{i}\}_{i=1}^{n} be independent random variables with E[Xi2]<∞E[X_{i}^{2}]<\infty and Xi≥0X_{i}\geq 0. Set Y=∑iXiY=\sum_{i}X_{i} and let γ>0\gamma>0. Then

If Xi−E[Xi]≤ΔX_{i}-E[X_{i}]\leq\Delta for all ii, then with σi2=E[Xi2]−E[Xi]2\sigma_{i}^{2}=E[X_{i}^{2}]-E[X_{i}]^{2} we have

Appendix B Proofs for Section 3

Equation 12 follows since, according to the definition of pip_{i} in Equation (5), pip_{i} may equal 11 for some rows, and since these rows are always included in the random sample, Xi=E ⁣[Xi]X_{i}=E\!\left[X_{i}\right] for these rows. To bound the right hand side of Equation 12, note that for all ii such that pi<1p_{i}<1,

From Equation (13), if follows that for each ii such that pi<1p_{i}<1,

Thus, we may define Δ=(αβ)p∥Ax∥p/r\Delta=(\alpha\beta)^{p}\left\lVert Ax\right\rVert^{p}/r. In addition, it also follows from Equation (13) that

from which it follows that ∑i:pi<1σi2≤∑i:pi<1E ⁣[Xi2]≤(αβ)p∥Ax∥2p/r\sum_{i:p_{i}<1}\sigma_{i}^{2}\leq\sum_{i:p_{i}<1}E\!\left[X_{i}^{2}\right]\leq(\alpha\beta)^{p}\left\lVert Ax\right\rVert^{2p}/r.

To apply the upper tail bound in Theorem 13, define γ=((1+ϵ/4)p−1)∥Ax∥p\gamma=((1+\epsilon/4)^{p}-1)\left\lVert Ax\right\rVert^{p}. It follows that γ2≥(pϵ/4)2∥Ax∥2p\gamma^{2}\geq(p\epsilon/4)^{2}\left\lVert Ax\right\rVert^{2p} and also that

where the second inequality follows by standard manipulations since ϵ≤1\epsilon\leq 1 and since p≥1p\geq 1. Thus, by Equation (10) of Theorem 13, it follows that

Similarly, to apply the lower tail bound of Equation (9) of Theorem 13, define γ=(1−(1−ϵ/4)p)∥Ax∥p\gamma=(1-(1-\epsilon/4)^{p})\left\lVert Ax\right\rVert^{p}. Since γ≥ϵ∥Ax∥p/4\gamma\geq\epsilon\left\lVert Ax\right\rVert^{p}/4, we can follow a similar line of reasoning to show that

Choosing r≥32p(αβ)p(dln⁡(12ϵ)+ln⁡(2δ))/(p2ϵ2)r\geq 32^{p}(\alpha\beta)^{p}(d\ln(\frac{12}{\epsilon})+\ln(\frac{2}{\delta}))/(p^{2}\epsilon^{2}), we get that for every fixed xx, the following is true with probability at least 1−(ϵ12)dδ1-\left(\frac{\epsilon}{12}\right)^{d}\delta:

where the last inequality follows since ∥y∗−yε∗∥≤ε\left\lVert y^{*}-y^{*}_{\varepsilon}\right\rVert\leq\varepsilon, (y∗−yε∗)/ε∈B(y^{*}-y^{*}_{\varepsilon})/\varepsilon\in B, and

Appendix C Proofs for Section 4

Define Xi=(Sii∣Ai⋆x\scopt−bi∣)pX_{i}=(S_{ii}\lvert{{A}}_{i\star}x_{\text{\sc opt}}-b_{i}\rvert)^{p}. Thus, ∑iXi=∥S(Ax\scopt−b)∥p\sum_{i}X_{i}=\left\lVert S(Ax_{\text{\sc opt}}-b)\right\rVert^{p}, and the first moment is E ⁣[∑iXi]=∥Ax\scopt−b∥p=ZE\!\left[\sum_{i}X_{i}\right]=\left\lVert Ax_{\text{\sc opt}}-b\right\rVert^{p}={\cal Z}. The lemma follows since, by Markov’s inequality,

i.e., ∥S(Ax\scopt−b)∥p>3p∥Ax\scopt−b∥p\left\lVert S(Ax_{\text{\sc opt}}-b)\right\rVert^{p}>3^{p}\left\lVert Ax_{\text{\sc opt}}-b\right\rVert^{p}, with probability no more than 1/3p1/3^{p}. ∎

C.2 Proof of Lemma 8

We will prove the contrapositive: If ∥Ax^c−b∥>8 Z\left\lVert{A}\hat{x}_{c}-b\right\rVert>8\,{\cal Z}, then ∥S(Ax^c−b)∥>3 Z\left\lVert S({A}\hat{x}_{c}-b)\right\rVert>3\,{\cal Z}. To do so, note that, by Theorem 5, and the choice of r1r_{1}, we have that

C.3 Proof of Lemma 9

Define the random variable Xi=(Tii∣Ai⋆x\scopt−bi∣)pX_{i}=(T_{ii}\lvert{{A}}_{i\star}x_{\text{\sc opt}}-b_{i}\rvert)^{p}, and recall that Ai⋆=Ui⋆τ{A}_{i\star}={U}_{i\star}\tau since A=Uτ{A}={U}\tau. Clearly, ∑i=1nXi=∥T(Ax\scopt−b)∥p\sum_{i=1}^{n}X_{i}=\left\lVert T({A}x_{\text{\sc opt}}-b)\right\rVert^{p}. In addition, since E ⁣[Xi]=∣Ai⋆x\scopt−bi∣pE\!\left[X_{i}\right]=\lvert{{A}}_{i\star}x_{\text{\sc opt}}-b_{i}\rvert^{p}, it follows that ∑i=1nE ⁣[Xi]=∥Ax\scopt−b∥p\sum_{i=1}^{n}E\!\left[X_{i}\right]=\left\lVert{A}x_{\text{\sc opt}}-b\right\rVert^{p}. We will use Equation (10) of Theorem 13 to provide a bound for ∑i(Xi−E ⁣[Xi])=∥T(Ax\scopt−b)∥p−∥Ax\scopt−b∥p\sum_{i}\left(X_{i}-E\!\left[X_{i}\right]\right)=\left\lVert T({A}x_{\text{\sc opt}}-b)\right\rVert^{p}-\left\lVert{A}x_{\text{\sc opt}}-b\right\rVert^{p}.

From the definition of qiq_{i} in Equation (7), it follows that for some of the rows, qiq_{i} may equal 11 (just as in the proof of Theorem 5). Since Xi=E ⁣[Xi]X_{i}=E\!\left[X_{i}\right] for these rows, ∑i(Xi−E ⁣[Xi])=∑i:pi<1(Xi−E ⁣[Xi])\sum_{i}\left(X_{i}-E\!\left[X_{i}\right]\right)=\sum_{i:p_{i}<1}\left(X_{i}-E\!\left[X_{i}\right]\right), and thus we will bound this latter quantity with Equation (10). To do so, we must first provide a bound for Xi−E ⁣[Xi]≤XiX_{i}-E\!\left[X_{i}\right]\leq X_{i} and for ∑i:pi<1σi2≤∑iE ⁣[Xi2]\sum_{i:p_{i}<1}\sigma_{i}^{2}\leq\sum_{i}E\!\left[X_{i}^{2}\right]. To that end, note that:

where the final inequality follows from the definition of Z{\cal Z} and the results from the first stage of sampling. Next, note that from the conditions on the probabilities qiq_{i} in Equation (7), as well as by Definition 3 and the output of the first-stage of sampling, it follows that

Thus, since Xi−E ⁣[Xi]≤Xi≤∣Ai⋆x\scopt−bi∣p/qiX_{i}-E\!\left[X_{i}\right]\leq X_{i}\leq\lvert{{A}}_{i\star}x_{\text{\sc opt}}-b_{i}\rvert^{p}/q_{i}, it follows that for all ii such that qi<1q_{i}<1,

where we set cp=2p−1(9p+8p)c_{p}=2^{p-1}(9^{p}+8^{p}). Thus, we may define Δ=cp(αβ)pZp/r2\Delta=c_{p}(\alpha\beta)^{p}{\cal Z}^{p}/r_{2}. In addition, it follows that

To apply the upper tail bound of Equation (10) of Theorem 13, define γ=((1+ϵ)p−1)Zp\gamma=((1+\epsilon)^{p}-1){\cal Z}^{p}. We have γ≥pϵ Zp\gamma\geq p\epsilon\,{\cal Z}^{p}, and since ϵ≤1/7\epsilon\leq 1/7, we also have γ≤((87)p−1)Zp\gamma\leq\left(\left(\frac{8}{7}\right)^{p}-1\right){\cal Z}^{p}. Hence, by Equation (10) of Theorem 13, it follows that

Thus, Pr[∥T(Ax\scopt−b)∥>(1+ϵ)Z]≤exp⁡(−p2ϵ2r236p(αβ)p){\rm Pr}\left[{\left\lVert T(Ax_{\text{\sc opt}}-b)\right\rVert>(1+\epsilon){\cal Z}}\right]\leq\exp\left(\frac{-p^{2}\epsilon^{2}r_{2}}{36^{p}(\alpha\beta)^{p}}\right), from which the lemma follows by our choice of r2r_{2}. ∎

C.4 Proof of Lemma 10

By two applications of the triangle inequality, it follows that

where the second inequality follows since ∥Ax^c−b∥≤8 Z\left\lVert{A}\hat{x}_{c}-b\right\rVert\leq 8\,{\cal Z} from the first stage of sampling and since Z=∥Ax\scopt−b∥{\cal Z}=\left\lVert{A}x_{\text{\sc opt}}-b\right\rVert. In addition, we have that

where the third inequality follows since x^\scopt\hat{x}_{\text{\sc opt}} is optimal for the sampled problem. The lemma follows since ϵ≤1/7\epsilon\leq 1/7. ∎

C.5 Proof of Lemma 11

Fix a given point yε∗=Axε∗∈Bεy^{*}_{\varepsilon}=Ax^{*}_{\varepsilon}\in B_{\varepsilon}. We will prove the contrapositive for this point, i.e., we will prove that if ∥Axε∗−b∥>(1+6ϵ)Z\left\lVert Ax^{*}_{\varepsilon}-b\right\rVert>(1+6\epsilon){\cal Z}, then ∥T(Axε∗−b)∥>(1+3ϵ)Z\left\lVert T(Ax^{*}_{\varepsilon}-b)\right\rVert>(1+3\epsilon){\cal Z}, with probability at least 1−1100(ϵ36)d1-\frac{1}{100}\left(\frac{\epsilon}{36}\right)^{d}. The lemma will then follow from the union bound.

To this end, define the random variable Xi=(Tii∣Ai⋆xε∗−bi∣)pX_{i}=(T_{ii}\lvert{{A}}_{i\star}x^{*}_{\varepsilon}-b_{i}\rvert)^{p}, and recall that Ai⋆=Ui⋆τ{{A}}_{i\star}={{U}}_{i\star}\tau since A=Uτ{A}={U}\tau. Clearly, ∑i=1nXi=∥T(Axε∗−b)∥p\sum_{i=1}^{n}X_{i}=\left\lVert T({A}x^{*}_{\varepsilon}-b)\right\rVert^{p}. In addition, since E ⁣[Xi]=∣Ai⋆xε∗−bi∣pE\!\left[X_{i}\right]=\lvert{{A}}_{i\star}x^{*}_{\varepsilon}-b_{i}\rvert^{p}, it follows that ∑i=1nE ⁣[Xi]=∥Axε∗−b∥p\sum_{i=1}^{n}E\!\left[X_{i}\right]=\left\lVert{A}x^{*}_{\varepsilon}-b\right\rVert^{p}. We will use Equation (9) of Theorem 13 to provide an upper bound for the event that ∥T(Axε∗−b)∥p≤∥Axε∗−b∥p−γ\left\lVert T({A}x^{*}_{\varepsilon}-b)\right\rVert^{p}\leq\left\lVert{A}x^{*}_{\varepsilon}-b\right\rVert^{p}-\gamma, where γ=∥Axε∗−b∥p−(1+3ϵ)pZp\gamma=\left\lVert Ax^{*}_{\varepsilon}-b\right\rVert^{p}-(1+3\epsilon)^{p}{\cal Z}^{p}, under the assumption that ∥Axε∗−b∥>(1+6ϵ)Z\left\lVert Ax^{*}_{\varepsilon}-b\right\rVert>(1+6\epsilon){\cal Z}.

From the definition of qiq_{i} in Equation (7), it follows that for some of the rows, qiq_{i} may equal 11 (just as in the proof of Theorem 5). Since Xi=E ⁣[Xi]X_{i}=E\!\left[X_{i}\right] for these rows, ∑i(Xi−E ⁣[Xi])=∑i:pi<1(Xi−E ⁣[Xi])\sum_{i}\left(X_{i}-E\!\left[X_{i}\right]\right)=\sum_{i:p_{i}<1}\left(X_{i}-E\!\left[X_{i}\right]\right), and thus we will bound this latter quantity with Equation (9). To do so, we must first provide a bound for ∑i:pi<1E ⁣[Xi2]\sum_{i:p_{i}<1}E\!\left[X_{i}^{2}\right]. To that end, note that:

where the final inequality follows from the radius of the high-dimensional ball in which the ε\varepsilon-net resides. From this, we can show that

To apply the lower tail bound of Equation (9) of Theorem 13, define γ=∥Axε∗−b∥p−(1+3ϵ)pZp\gamma=\left\lVert Ax^{*}_{\varepsilon}-b\right\rVert^{p}-(1+3\epsilon)^{p}{\cal Z}^{p}. Thus, by Equation (21) and by Equation (9) of Theorem 13 it follows that

Since r2≥24p(αβ)p(dln⁡(36ϵ)+ln⁡(200))/ϵ2r_{2}\geq 24^{p}(\alpha\beta)^{p}(d\ln(\frac{36}{\epsilon})+\ln(200))/\epsilon^{2}, it follows that ∥T(Axε∗−b)∥≤(1+3ϵ)Z\left\lVert T(Ax^{*}_{\varepsilon}-b)\right\rVert\leq(1+3\epsilon){\cal Z}, with probability no greater than 1200(ϵ36)d\frac{1}{200}\left(\frac{\epsilon}{36}\right)^{d}. Since there are no more than (36ϵ)d\left(\frac{36}{\epsilon}\right)^{d} such points in the ε\varepsilon-net, the lemma follows by the union bound. ∎

C.6 Proof of Lemma 12

We will prove the contrapositive: If ∥Ax^\scopt−b∥>(1+7ϵ)Z\left\lVert{A}\hat{x}_{\text{\sc opt}}-b\right\rVert>(1+7\epsilon){\cal Z} then ∥T(Ax^\scopt−b)∥>(1+ϵ)Z\left\lVert T({A}\hat{x}_{\text{\sc opt}}-b)\right\rVert>(1+\epsilon){\cal Z}. Since Ax^\scopt{A}\hat{x}_{\text{\sc opt}} lies in the ball BB defined by Equation (8) and since the ε\varepsilon-net is constructed in this ball, there exists a point yε=Axεy_{\varepsilon}=Ax_{\varepsilon}, call it Axε∗{A}x^{*}_{\varepsilon}, such that ∥Ax^\scopt−Axε∗∥≤ϵ Z\left\lVert{A}\hat{x}_{\text{\sc opt}}-{A}x^{*}_{\varepsilon}\right\rVert\leq\epsilon\,{\cal Z}. Thus,

Next, since Lemma 11 holds for all points Axε{A}x_{\varepsilon} in the ε\varepsilon-net, it follows that