Strong Coresets for k-Median and Subspace Approximation: Goodbye Dimension

Christian Sohler, David P. Woodruff

Introduction

Often in these problems one seeks a strong coreset, which means that with high probability, the data structure DD should work simultaneously for all queries QQ. That is, one may use random choices in the construction of DD, but after forming DD it should be the case that DD can be used to provide a (1+ϵ)(1+\epsilon)-relative error approximation for every possible query simultaneously. An advantage of such a coreset is that for any objective function for which a table of (1+ϵ)(1+\epsilon)-approximate values to all possible queries can be used to provide a (1+O(ϵ))(1+O(\epsilon))-approximation to the objective function, one can throw away the original set of points and instead just retain the data structure DD. For example, note that the above coreset for subspace approximation contains enough information to approximately solve principal component analysis (PCA), since if one finds the query kk-dimensional subspace with minimum approximate value, this provides a kk-dimensional subspace providing a (1+ϵ)(1+\epsilon)-approximation to the space spanned by the top kk principal components. However, the above coreset for subspace approximation can also be used to solve the kk-means problem, since the latter can be rewritten as a constrained low rank approximation problem . Thus, given that a strong coreset approximately preserves the cost of any query, it can be used in place of the original point set in any application which depends only on the answers to the queries. Note that if the coreset were instead to only approximately preserve the cost of any fixed query with high probability, then it might not be possible to solve the problem using the coreset since one may need to adaptively query the data structure, and outputs to successive queries may no longer be correct since the inputs depend on outputs to previous queries.

Another advantage of a coreset is if it small, then it leads to considerable efficiency gains. For example, in distributed settings, each machine which has a subset of input points can compress its input points to a coreset, and then communicate the coreset to a central coordinator. The central coordinator, who often has more resources available, can then combine the coresets and use them to optimize the desired function. As communication is a bottleneck, a small coreset gives rise to more efficient protocols. Similarly, when processing a data stream, a common technique is the merge-and-reduce framework, in which one partitions the stream into chunks, computes a coreset on each chunk, and merges the coresets in a binary tree like structure as one processes successive chunks of the data stream. A small coreset thus leads to small space streaming algorithms.

A major open question was if one could obtain strong coresets independent of dd (and nn) for kk-median and the subspace approximation problem with sum of distances ∑i=1n∥pi−piPV∥2\sum_{i=1}^{n}\|p_{i}-p_{i}P_{V}\|_{2}, as opposed to the sum of squares of distances. Unlike the kk-means and sum of squares objective for subspace approximation, the kk-median and sum of distances measures are much less amenable to algebraic manipulation; indeed there is no singular value decomposition (SVD) which was the driving force behind previous results. Notably, this version of the subspace problem is NP-hard , unlike minimizing the sum of squares.

Now consider the cost of an arbitrary point qq at distance 11 from the origin. The expected distance of an input point to this point is roughly 2\sqrt{2} and so the sum of distances will approach 2n\sqrt{2}n as n→∞n\rightarrow\infty. Now recall that the length of the projection of the input points goes to 00. Thus their distance to qq will be roughly 11. Thus, the sum of distances of the projected points is roughly nn plus the projection cost, which is roughly nn, and thus will give an estimate of 2n2n, which is not a (1+ϵ)(1+\epsilon)-approximation. Hence, we cannot simply work with a single additive weight as in the case of squared distances.

Next, since we can “move” each of the rows of APV∪SAP_{V\cup S} to the corresponding rows in APSAP_{S} by paying a total sum of distances cost of ϵ⋅opt\epsilon\cdot\text{opt}, it follows by the triangle inequality that for any set CC of points that is contained in a kk-dimensional subspace VV, the sum of distances from the rows of APSAP_{S} to their corresponding closest points in CC is within ϵ⋅opt\epsilon\cdot\text{opt} of the sum of distances from the rows of APV∪SAP_{V\cup S} to their corresponding closest points in CC.

Now we want to replace our original points (the rows of AA) with their projections onto SS, namely, replace AA with APSAP_{S}. Although this step by itself does not reduce the number nn of points, each of the nn points after projection lives in a much lower k/ϵ2k/\epsilon^{2} dimensional subspace (rather than the initial space which has dimension dd), and we will then be able to apply coreset construction techniques which depend on this much smaller dimension. For any set CC of points contained in a kk-dimensional subspace VV, by the Pythagorean theorem we can write the distance of a row pp of AA to CC as a2+b2\sqrt{a^{2}+b^{2}}, where aa is the distance of pp to V∪SV\cup S, and bb is the distance of the projection of pp onto V∪SV\cup S, to CC. We instead try to approximate a2+b2\sqrt{a^{2}+b^{2}} by f2+g2\sqrt{f^{2}+g^{2}}, where ff is the distance of pp to SS and gg is the distance of the projection of pp onto SS, to CC. We observe in Lemma 4 that ∣a2+b2−f2+g2∣≤∣a−f∣+∣b−g∣|\sqrt{a^{2}+b^{2}}-\sqrt{f^{2}+g^{2}}|\leq|a-f|+|b-g|, and we know that the average values (over the nn points) of ∣a−f∣|a-f| and ∣b−g∣|b-g| are small by Lemma 6 combined with the triangle inequality.

Note that the value ff, which is different for each of the nn rows of AA, does not depend on VV or CC, whereas the value gg is exactly the distance of the row of APSAP_{S} to CC. If we were simply to define B=APSB=AP_{S}, then ∥B−BC∥1,2\|B-B_{C}\|_{1,2}, where the i-thth row of BCB_{C} contains the closest point (of the closure) of CC to the corresponding row of BB, would fail to capture the distances of the nn rows of AA to SS. Further, unlike for the ∥⋅∥2,2\|\cdot\|_{2,2} norm, we cannot add a single number ∥A(I−PS)∥2,2\|A(I-P_{S})\|_{2,2} to account for this, which is a technique used in ; this is precisely the difficulty of the ∥⋅∥1,2\|\cdot\|_{1,2} norm that we must deal with. Instead, a crucial idea is to append one additional coordinate to each row of BB, where in the ii-th row we append ∥Ai∗(I−PS)∥2\|A_{i*}(I-P_{S})\|_{2}, where PSP_{S} is the orthogonal projection onto SS. Then, to compute the distance to a kk-dimensional subspace VV, instead of approximating ∥A−AC∥1,2\|A-A_{C}\|_{1,2} by ∥B−BC∥1,2\|B-B_{C}\|_{1,2}, where the ii-th rows of ACA_{C} and BCB_{C} contain the closest points (of the closure) of CC to the corresponding row of AA and the first dd coordinates of the corresponding row of BB, respectively, we approximate ∥A−APV∥1,2\|A-AP_{V}\|_{1,2} by ∥B−BCIT∥1,2\|B-B_{C}I^{T}\|_{1,2}, where BCITB_{C}I^{T} is the matrix which appends an all 00 column to BCB_{C}. Thus, the norm of the ii-th row of B−BCITB-B_{C}I^{T} is f2+g2\sqrt{f^{2}+g^{2}}, where ff is the distance of AiA_{i} to SS, captured by the (d+1)(d+1)-st coordinate of BB, and gg is the distance of AiPSA_{i}P_{S} to CC. Thus, we have “encoded” the distances of the rows of AA to APSAP_{S} in the coreset this way. Note that this appended additional coordinate cannot be taken out of each row and combined into a single number, as in , because for each row, its square is added to the squared distance of a point to its projection onto SS, and then a square root is taken, so it occurs “under the square root” in the distance computations.

1.2 Coreset Construction for Subspace Approximation

1.3 Coreset Construction for kk-Median

To obtain a coreset for kk-median, we first apply our dimensionality reduction to get a matrix BB such that for every set of kk-centers CC we have ∣∥A−AC∥1,2−∥B−BCIT∥1,2∣≤ϵ⋅∥A−AC∥1,2\big|\|A-A_{C}\|_{1,2}-\|B-B_{C}I^{T}\|_{1,2}\big|\leq\epsilon\cdot\|A-A_{C}\|_{1,2}, where ACA_{C} and BCB_{C} denote the matrices that contain in the ii-th row the closest center of CC to the ii-th row of AA and BB, respectively. We note that BB can be viewed as a point set in O(k/ϵ2)O(k/\epsilon^{2}) dimensions. We can then use an arbitrary coreset construction for this low dimensional point set where we append kk arbitrary dimensions to the space. Thus, the effect of the construction will be to replace the dd in a coreset construction by O(k/ϵ2)O(k/\epsilon^{2}). We claim that a coreset for this enlarged space is also a coreset for the dd-dimensional space. The reason is that any set of kk-centers in the dd-dimensional space is either in the span of BB (in which case the coreset guarantee holds) or there is an orthogonal transformation that does not change BB and maps the remaining centers to the kk added dimensions. This implies that the coreset property holds for the full space. Thus, the cost of the coreset approximates the cost of BB upto a factor of 1±ϵ1\pm\epsilon. Combining this with the error bound of ∣∥A−AC∥1,2−∥B−BC∥1,2∣≤ϵ⋅∥A−AC∥1,2\big|\|A-A_{C}\|_{1,2}-\|B-B_{C}\|_{1,2}\big|\leq\epsilon\cdot\|A-A_{C}\|_{1,2} gives that the resulting set will be a 1+O(ϵ)1+O(\epsilon) coreset and the result follows by rescaling ϵ\epsilon by a constant. Notice that the guarantee the coreset provides is slightly stronger than what we need as our centers will always have the last (special) coordinate equal to 00.

Plugging in the kk-median coresets of or , which are both of size O(dklog⁡kϵ2)O(\frac{dk\log k}{\epsilon^{2}}) (the first one has negative weights, which may be undesirable in some situations), we obtain a coreset of size O(k2log⁡kϵ4)O(\frac{k^{2}\log k}{\epsilon^{4}}).

1.4 Outline

In Section 2, we give preliminaries. In Section 3, we provide our main dimensionality reduction technique. In Section 4, we obtain our coresets for subspace approximation. Finally, in Section 5, we obtain our coreset for kk-median.

Preliminaries

We start with a few claims that will be useful to deal with norms and powers of norms. These are elementary properties about numbers and we defer the proofs to the Appendix.

Let a,b,c≥0a,b,c\geq 0 such that a2=b2−c2a^{2}=b^{2}-c^{2}. For p≥2p\geq 2 we have ap≤bp−cpa^{p}\leq b^{p}-c^{p}.

Let a,b,c≥0a,b,c\geq 0 such that a2=b2−c2a^{2}=b^{2}-c^{2}, ap≥ϵbpa^{p}\geq\epsilon b^{p} and bp≥cpb^{p}\geq c^{p}. Let 1≤p≤21\leq p\leq 2 and 1≥ϵ>01\geq\epsilon>0. Then ap≤10⋅ϵp−2p⋅(bp−cp)a^{p}\leq 10\cdot\epsilon^{\frac{p-2}{p}}\cdot(b^{p}-c^{p}).

Let a,b≥0a,b\geq 0 and 1≥ϵ>01\geq\epsilon>0 and p≥1p\geq 1. Then

Dimensionality Reduction

Our first result is a dimensionality reduction lemma for clustering problems where the cluster centers are contained in a low-dimensional subspace such as, for example, kk-median clustering.

Proof: We know from the algorithm that ∥A−AP∥p,2p−∥A−AP∗∥p,2p≤ϵmax⁡{2p,1}opt/80\|A-AP\|_{p,2}^{p}-\|A-AP^{*}\|_{p,2}^{p}\leq\epsilon^{\max\{\frac{2}{p},1\}}\text{opt}/80. Furthermore, we have ∥A−AP∥p,2p≤(1+ϵ)⋅opt\|A-AP\|_{p,2}^{p}\leq(1+\epsilon)\cdot\text{opt} by the way SS is computed. We first consider the case when p=2p=2. Since Ai∗−Ai∗P∗A_{i*}-A_{i*}P^{*} is orthogonal to Ai∗P∗−Ai∗PA_{i*}P^{*}-A_{i*}P we know that in this case

Applying the above equality row wise we obtain

Next we consider p>2p>2. We define a=∥Ai∗P−Ai∗P∗∥2a=\|A_{i*}P-A_{i*}P^{*}\|_{2}, b=∥Ai∗−Ai∗P∥2b=\|A_{i*}-A_{i*}P\|_{2} and c=∥Ai∗−Ai∗P∗∥2c=\|A_{i*}-A_{i*}P^{*}\|_{2}. We observe that a2=b2−c2a^{2}=b^{2}-c^{2} and so by Claim 1 we obtain that

Again we can apply the inequality row-wise and obtain

Now we consider the final case of 1≤p<21\leq p<2. Here we will make a case distinction. The first case is that ∥Ai∗P∗−Ai∗P∥2p≤ϵ4∥Ai∗−Ai∗P∥2p\|A_{i*}P^{*}-A_{i*}P\|_{2}^{p}\leq\frac{\epsilon}{4}\|A_{i*}-A_{i*}P\|_{2}^{p}. Let JJ be the set of indices for which this inequality is satisfied. It follows by summing up over all rows in JJ that

For the remaining case we will use Claim 2 with a=∥Ai∗P−Ai∗P∗∥2a=\|A_{i*}P-A_{i*}P^{*}\|_{2}, b=∥Ai∗−Ai∗P∥2b=\|A_{i*}-A_{i*}P\|_{2} and c=∥Ai∗−Ai∗P∗∥2c=\|A_{i*}-A_{i*}P^{*}\|_{2}. We observe that a2=b2−c2a^{2}=b^{2}-c^{2} and that ap≥ϵ4bpa^{p}\geq\frac{\epsilon}{4}b^{p} since we are in the second case. Furthermore, bp≥cpb^{p}\geq c^{p} by the choices of PP and P∗P^{*}. Therefore, Claim 2 implies

Applying the above inequality row wise we obtain

Summing up the two cases yields the lemma. □\Box

We observe that in the proof we only used two properties of SS. The first one is that ∥A−AP∥p,2p≤(1+ϵ)⋅opt\|A-AP\|_{p,2}^{p}\leq(1+\epsilon)\cdot\text{opt} and the second one is that ∥A−AP∥p,2p−∥A−AP∗∥p,2p≤ϵmax⁡{2p,1}opt/80\|A-AP\|_{p,2}^{p}-\|A-AP^{*}\|_{p,2}^{p}\leq\epsilon^{\max\{\frac{2}{p},1\}}\text{opt}/80. Thus, any subspace that satisfies these two properties will also satisfy the above lemma. We will use this later on when we discuss optimizing the running time of our algorithm.

We first consider the case of minimizing sum of distances. This case is technically less tedious and illustrates the underlying ideas.

where opt is the cost of an optimal solution to the kk-subspace problem with sum of distances. By orthogonality, we can write

Using Lemma 4 with a=∥Ai∗−Ai∗P∗∥2a=\|A_{i*}-A_{i*}P^{*}\|_{2}, b=∥Ai∗P∗−Ai∗′∥2b=\|A_{i*}P^{*}-A^{\prime}_{i*}\|_{2}, e=∥Ai∗−Ai∗P∥2e=\|A_{i*}-A_{i*}P\|_{2} and f=∥Ai∗P−Bi∗′∥2f=\|A_{i*}P-B^{\prime}_{i*}\|_{2} we obtain that

Using the triangle inequality and the fact that Ai∗′,Bi∗′A^{\prime}_{i*},B^{\prime}_{i*} is the closest point in the closure of CC to Ai∗P∗A_{i*}P^{*} and Ai∗PA_{i*}P, respectively, we obtain

Summing up over all rows and using ∥AP−AP∗∥1,2≤ϵ2⋅opt\|AP-AP^{*}\|_{1,2}\leq\frac{\epsilon}{2}\cdot\text{opt} together with the fact that the sum of distances to CC is at least opt we obtain the result. □\Box

If CC is a kk-dimensional linear subspace we can slightly simplify the statement of the above theorem.

2 Dimensionality reduction for powers of Euclidean distances

In order to obtain a dimensionality reduction for powers of Euclidean distances we follow the same approach as before. The main challenge is that some calculations become more difficult as the triangle inequality is replaced by a relaxed triangle inequality.

where opt is the cost of an optimal solution to the kk-subspace problem with sum of powers of distances. By orthogonality, we can write

Now let us assume that ∥Ai∗−Ai∗′∥2≤∥Bi∗−Bi∗′IT∥2\|A_{i*}-A^{\prime}_{i*}\|_{2}\leq\|B_{i*}-B^{\prime}_{i*}I^{T}\|_{2} (the other case is analogous). By the triangle inequality and the definition of A′A^{\prime} and B′B^{\prime} we have

where the last inequality follows from Claim 5 with λ2\lambda^{2} replacing the ϵ\epsilon there. We can write

Thus, using λ=ϵ1/2+1/p/(21p)\lambda=\epsilon^{1/2+1/p}/(21p) we obtain

The final result follows by summing up over all rows, replacing (x)p(\sqrt{x})^{p} by ∥Ai∗−Ai∗′∥2p\|A_{i*}-A_{i*}^{\prime}\|_{2}^{p}, and plugging in the bound for ∥AP−AP∗∥p,2p\|AP-AP^{*}\|_{p,2}^{p}.

Now let us assume that ∥Ai∗−Ai∗′∥2>∥Bi∗−Bi∗′IT∥2\|A_{i*}-A^{\prime}_{i*}\|_{2}>\|B_{i*}-B^{\prime}_{i*}I^{T}\|_{2}. By the triangle inequality and the definition of A′A^{\prime} and B′B^{\prime} we have

where the last inequality follows from Claim 5 with λ2\lambda^{2} replacing the ϵ\epsilon there. We can write

Thus, using λ=ϵ1/2+1/p/(21p)\lambda=\epsilon^{1/2+1/p}/(21p) we obtain

The final result follows by summing up over all rows, replacing (x)p(\sqrt{x})^{p} by ∥Ai∗−Ai∗′∥2p\|A_{i*}-A_{i*}^{\prime}\|_{2}^{p}, and plugging in the bound for ∥AP−AP∗∥p,2p\|AP-AP^{*}\|_{p,2}^{p}.

3 Optimizing the Running Time

We first give an alternative algorithm to our DimensionalityReduction algorithm. This algorithm can be implemented using a black box call to an algorithm for finding low dimensional subspaces approximately minimizing the ∥⋅∥p,2p\|\cdot\|_{p,2}^{p} norm.

There are 10/τ10/\tau summands in the telescoping sum, and they sum up to at most opt, so a 9/109/10-fraction of them must be at most τopt\tau\text{opt}. Let i∗i^{*} be the index sampled by the algorithm. Then with probability at least 9/109/10, we have ∥A(I−PVi∗)∥p,2p−∥A(I−PVi+1)∥p,2p≤τopt\|A(I-P_{V^{i^{*}}})\|_{p,2}^{p}-\|A(I-P_{V^{i^{+}1}})\|_{p,2}^{p}\leq\tau\text{opt}, and let us condition on this event.

where we used that ∥A(I−PVi∗)∥1,2−∥A(I−PVi∗+1)∥1,2≤τopt\|A(I-P_{V^{i^{*}}})\|_{1,2}-\|A(I-P_{V^{i^{*}+1}})\|_{1,2}\leq\tau\text{opt} for our choice of i∗i^{*}, and also that ∥A(I−PVi∗)∥p,2p≤opt\|A(I-P_{V^{i^{*}}})\|_{p,2}^{p}\leq\text{opt}.

Note that the overall success probability is at least 1−1/10−1/101-1/10-1/10 in the first case and 1−1/10−1/20−1/20=4/51-1/10-1/20-1/20=4/5 in the second, and the claimed running time follows from , and . □\Box

We also need the following lemma stating that the approximations returned by Lemma 12 suffice.

Suppose we replace the last column vv of BB with a vector v′v^{\prime} for which vi=(1±ϵ)vi′v_{i}=(1\pm\epsilon)v^{\prime}_{i} for all i∈[n]i\in[n]. Then (1) continues to hold with ϵ\epsilon replaced with O(ϵ)O(\epsilon).

Proof: Notice that this operation changes ∥B−BIPIT∥p,2p\|B-BIPI^{T}\|_{p,2}^{p} by at most a (1+O(ϵ))(1+O(\epsilon)) factor for constant pp, since each row changes by at most this factor. Letting B′B^{\prime} denote the new matrix, we have

and rescaling ϵ\epsilon by a constant factor gives the desired guarantee. □\Box

where the first equality uses the definition of BB, the second equality uses (3), the third equality just expands the square, the fourth equality uses (4) and that dist(Ai,AiP)=dist(Ai,S)\text{dist}(A_{i},A_{i}P)=\text{dist}(A_{i},S), the penultimate equality absorbs the previous equality in the asymptotic notation O(ϵ)O(\epsilon), and the final equality uses that ∥Bi−(B′I)i∥22=dist(AiP,C)2+dist(Ai,S)2\|B_{i}-(B^{\prime}I)_{i}\|_{2}^{2}=\text{dist}(A_{i}P,C)^{2}+\text{dist}(A_{i},S)^{2}.

Now, for a given ii, ∥Bi−(B′I)i∥22=dist(AiP,C)2+dist(Ai,S)2\|B_{i}-(B^{\prime}I)_{i}\|_{2}^{2}=\text{dist}(A_{i}P,C)^{2}+\text{dist}(A_{i},S)^{2}. Notice that dist(AiP,C)≤dist(Ai,C)+dist(AiP,Ai)=dist(Ai,C)+dist(S,Ai)\text{dist}(A_{i}P,C)\leq\text{dist}(A_{i},C)+\text{dist}(A_{i}P,A_{i})=\text{dist}(A_{i},C)+\text{dist}(S,A_{i}), and consequently ∥Bi−(B′I)i∥22=O(dist(Ai,C)2+dist(Ai,S)2)\|B_{i}-(B^{\prime}I)_{i}\|_{2}^{2}=O(\text{dist}(A_{i},C)^{2}+\text{dist}(A_{i},S)^{2}), and plugging into (5),

where the first equality follows by plugging into (5), the second equality follows from (dist(Ai,C)2+dist(Ai,S)2)p/2≤(2max⁡(dist(Ai,C)2,dist(Ai,S)2))p/2≤2p/2max⁡(dist(Ai,C)p,dist(Ai,S)p)≤2p/2(dist(Ai,C)p+dist(Ai,S)p)(\text{dist}(A_{i},C)^{2}+\text{dist}(A_{i},S)^{2})^{p/2}\leq(2\max(\text{dist}(A_{i},C)^{2},\text{dist}(A_{i},S)^{2}))^{p/2}\leq 2^{p/2}\max(\text{dist}(A_{i},C)^{p},\text{dist}(A_{i},S)^{p})\leq 2^{p/2}(\text{dist}(A_{i},C)^{p}+\text{dist}(A_{i},S)^{p}), the third equality follows from ∑idist(Ai,S)p≤(1+ϵ)∑idist(Ai,C)p\sum_{i}\text{dist}(A_{i},S)^{p}\leq(1+\epsilon)\sum_{i}\text{dist}(A_{i},C)^{p} by definition of SS and the fact that CC is contained in a kk-dimensional subspace, and the final equality just uses the definition of ∥A−A′∥p,2p\|A-A^{\prime}\|_{p,2}^{p}. □\Box

Coresets for Subspace Approximation

Plugging in the guarantee of Lemma 11 into Remark 7 shows how to obtain an n×(d+1)n\times(d+1) matrix BB for which

for all rank-kk orthogonal projection matrices PP. Lemma 11 shows how to efficiently find the SS for which B=APSB=AP_{S}, and Lemma 12 shows how to efficiently find an approximate vector vv of (d+1)(d+1)-st coordinates of BB. Further, after scaling ϵ\epsilon by a constant factor, Lemma 13 shows that (6) continues to hold with the approximate vector vv of (d+1)(d+1)-st coordinates of BB furnished by Lemma 12.

Before showing how to find a sampling and rescaling matrix TT, we first need the following theorem due to Dvoretsky.

Proof: Let tt be as in Fact 15, and fix the d×td\times t matrix GG of that fact. Applying the guarantee of Fact 15 to each row of B−BIPITB-BIPI^{T},

where for a matrix CC, ∥C∥p,pp\|C\|_{p,p}^{p} denotes the sum of pp-th powers of absolute values of its entries.

since each column of BGBG is in the column span of AUAU. Again applying the guarantee of Fact 15 to each row of TBG−TBIPITGTBG-TBIPI^{T}G, we have

and the guarantee of the lemma follows by rescaling ϵ\epsilon by a constant factor. □\Box

Proof: We start by proving the structural part of the theorem, and then address the running time.

Let BB be the output of DimensionalityReduction, which has property (6). As described above, we can assume DimensionalityReduction produces B=[APS,v]B=[AP_{S},v], where PSP_{S} and vv are described above. Further, we can assume APSAP_{S} is given in factored form (AU)UT(AU)U^{T} for PS=UUTP_{S}=UU^{T}.

By Lemma 16, we can find a sampling and rescaling matrix TT for which for all rank-kk orthogonal projection matrices PP, ∥TB−TBIPIT∥p,2p=(1±ϵ)∥B−BIPIT∥p,2p\|TB-TBIPI^{T}\|_{p,2}^{p}=(1\pm\epsilon)\|B-BIPI^{T}\|_{p,2}^{p}, so

and rescaling ϵ\epsilon by a constant factor gives the desired guarantee. We note that By Lemma 16, TT will have O(k(log⁡k)/ϵ4)O(k(\log k)/\epsilon^{4}) rows for p=1p=1 if we run DimensionalityReduction.

Coresets for kk-Median

We can combine our dimensionality reduction with coreset computations. We first compute the matrix BB using our dimensionality reduction. Recall that this matrix has rank O(k/ϵ2)O(k/\epsilon^{2}). We can therefore compute an orthogonal basis for the span of BB and add kk arbitrary dimensions. Then we apply an arbitrary coreset construction in the resulting space. We will only be interested in the space spanned by the first dd dimensions of BB (recall that the last dimension is only needed to “adjust” the distances). Since the Euclidean distance does not change under orthogonal transformations we can rotate any set of centers to our subspace without changing the distances. Therefore, the coreset will be a coreset for the whole input space.

Here ACA^{C} contains for each row of AA the nearest center of CC, TCT^{C} contains for each row of TT the nearest center of CC with respect to TITTI^{T}.

We get the following guarantees. Theorem 8 implies

Rescaling ϵ\epsilon gives the result. □\Box

Acknowledgment

Christian Sohler acknowledges the support of the German Science Foundation (DFG) Collaborative Research Center SFB 876 ”Providing Information by Resource-Constrained Analysis”, project A2. David Woodruff acknowledges support in part by an Office of Naval Research (ONR) grant N00014-18-1-2562.

We thank Lingxiao Huang for pointing out an error in the proof of Lemma 14 in an earlier version of this paper.

References

Appendix A Appendix

Proof: ( of Claim 1) By our assumptions we have

Subtracting cpc^{p} yields the claim. □\Box

Proof: ( of Claim 2) We observe that for c=0c=0 the result is trivial, so we may assume c≠0c\not=0. We know that a2+c2=b2a^{2}+c^{2}=b^{2} and so (a2+c2)p/2=bp(a^{2}+c^{2})^{p/2}=b^{p}. We write a=δca=\delta c for some δ>0\delta>0 (the case δ=0\delta=0 implies a=b=c=0a=b=c=0 and the result follows immediately). For the case δ<1\delta<1 we obtain

where the second inequality follows from (1+δ2/3)2≤1+δ2(1+\delta^{2}/3)^{2}\leq 1+\delta^{2}. The last inequality follows from from δpcp=ap≥ϵbp≥ϵcp\delta^{p}c^{p}=a^{p}\geq\epsilon b^{p}\geq\epsilon c^{p} (since c¿0) and hence δp≥ϵ\delta^{p}\geq\epsilon.

Plugging this into (a2+c2)p/2=bp(a^{2}+c^{2})^{p/2}=b^{p} gives

which implies the claim for δ<1\delta<1 by subtracting cpc^{p} and multiplying with 3ϵp−2p3\epsilon^{\frac{p-2}{p}}.

Plugging this into (a2+c2)p/2=bp(a^{2}+c^{2})^{p/2}=b^{p} gives

which implies the claim since ϵp−2p≥1\epsilon^{\frac{p-2}{p}}\geq 1.

and the claim follows analogous to the above.

Proof: ( of Claim 3) We can assume wlog. a≥ba\geq b and then this is equivalent to showing (a+x)p−ap≤(b+x)p−bp(a+x)^{p}-a^{p}\leq(b+x)^{p}-b^{p}. When x=0x=0 both sides are 00. The derivative, as a function of tt, of fc(t):=(c+t)p−cpf_{c}(t):=(c+t)^{p}-c^{p}, for a fixed cc, is p/(c+t)1−p,p/(c+t)^{1-p}, so the derivative dfa(t)/dtdf_{a}(t)/dt is less than or equal to dfb(t)/dtdf_{b}(t)/dt for every t≥0t\geq 0, and by the fundamental theorem of calculus,

Proof: ( of Claim 5) Observe that (1+ϵ/(2p))p≤1+ϵ(1+\epsilon/(2p))^{p}\leq 1+\epsilon follows from the monotonicity of the logarithm and ln⁡((1+ϵ/(2p))p)≤p⋅ϵ/(2p)≤ϵ−ϵ2/2≤ln⁡(1+ϵ)\ln((1+\epsilon/(2p))^{p})\leq p\cdot\epsilon/(2p)\leq\epsilon-\epsilon^{2}/2\leq\ln(1+\epsilon) by the Taylor expansion of ln⁡(1+x)\ln(1+x) for 0<ϵ<10<\epsilon<1 (for ϵ=1\epsilon=1 the Claim follows immediately). If b≤ϵ2p⋅ab\leq\frac{\epsilon}{2p}\cdot a then (a+b)p≤(1+ϵ2p)p⋅ap≤(1+ϵ)ap(a+b)^{p}\leq(1+\frac{\epsilon}{2p})^{p}\cdot a^{p}\leq(1+\epsilon)a^{p}. Otherwise, b>ϵ2p⋅ab>\frac{\epsilon}{2p}\cdot a. In this case (a+b)p≤(1+2pϵ)pbp(a+b)^{p}\leq(1+\frac{2p}{\epsilon})^{p}b^{p}. □\Box

Proof: ( of Lemma 4) We have by the triangle inequality and 22-norm to 11-norm relationship,