Improved Spectral-Norm Bounds for Clustering
Pranjal Awasthi, Or Sheffet
Introduction
In the long-studied field of clustering, there has been substantial work [Das99, DS07, SK01, VW02, AM05, CR08b, KSV08, DHKM07, BV08] studying the problem of clustering data from mixture of distributions under the assumption that the means of the distributions are sufficiently far apart. Each of these works focuses on one particular type (or family) of distribution, and devise an algorithm that successfully clusters datasets that come from that particular type. Typically, they show that w.h.p. such datasets have certain nice properties, then use these properties in the construction of the clustering algorithm.
The recent work of Kumar and Kannan [KK10] takes the opposite approach. First, they define a separation condition, deterministic and thus not tied to any distribution, and show that any set of data points satisfying this condition can be successfully clustered. Having established that, they show that many previously studied clustering problems indeed satisfy (w.h.p) this separation condition. These clustering problems include Gaussian mixture-models, the Planted Partition model of McSherry [McS01] and the work of Ostrovsky et al [ORSS06]. In this aspect they aim to unify the existing body of work on clustering under separation assumptions, proving that one algorithm applies in multiple scenarios.We comment that, implicitly, Achlioptas and McSherry [AM05] follow a similar approach, yet they focus only on mixtures of Gaussians and log-concave distributions. Another deterministic condition for clustering was considered by [CO10], which generalized the Planted Partition Model of [McS01].
However, the attempt to unify multiple clustering works is only successful in part. First, Kumar and Kannan’s analysis is “wasteful” w.r.t the number of clusters . Clearly, motivated by an underlying assumption that is constant, their separation bound has linear dependence in and their classification guarantee has quadratic dependence on . As a result, Kumar and Kannan overshoot best known bounds for the Planted Partition Model and for mixture of Gaussians by a factor of . Similarly, the application to datasets considered by Ostrovsky et al only holds for constant . Secondly, the analysis in Kumar-Kannan is far from simple – it relies on most points being “good”, and requires multiple iterations of Lloyd steps before converging to good centers. Our work addresses these issues.
Fix . We say a datapoint satisfies the Kumar-Kannan proximity condition if for any , when projecting onto the line connecting and , the projection of is closer to than to by an additive factor of .
Kumar and Kannan proved that if all but at most -fraction of the data points satisfy the proximity condition, they can find a clustering which is correct on all but an -fraction of the points. In particular, when , their algorithm clusters all points correctly. Observe, the Kumar-Kannan proximity condition gives that the distance is also bigger than the above mentioned bound. The opposite also holds – one can show that if is greater than this bound then only few of the points do not satisfy the proximity condition.
In this work, the bulk of our analysis is based on the following quantitatively weaker version of the proximity condition, which we call center separation. Formally, we define and we assume throughout the paper that for a large constantWe comment that throughout the paper, and much like Kumar and Kannan, we think of as a large constant ( will do). However, our results also hold when , allowing for a -approximation. We also comment that we think of , so one should expect to hold, thus the reader should think of as dependent on . Still, including the degenerate case, where , simplifies our analysis in Section 3. One final comment is that (much like all the work in this field) we assume is given, as part of the input, and not unknown. we have that the means of any two clusters and satisfy
Observe that this is a simpler version of the Kumar-Kannan proximity condition, scaled down by a factor of . Even though we show that (1) gives that only a few points do not satisfy the proximity condition, our analysis (for the most part) does not partition the dataset into good and bad points, based on satisfying or non-satisfying the proximity condition. Instead, our analysis relies on basic tools, such as the Markov inequality and the triangle inequality. In that sense one can view our work as “aligning” Kumar and Kannan’s work with the rest of clustering-under-center-separation literature – we show that the bulk of Kannan and Kumar’s analysis can be simplified to rely merely on center-separation.
Our results.
We improve upon the results of [KK10] along several axes. In addition to the weaker condition of Equation (1), we also weaken the Kumar-Kannan proximity condition by a factor of , and still retrieve the target clustering, if all points satisfy the (-weaker) proximity condition. Secondly, if at most points do not satisfy the -weaker proximity condition, we show that we can correctly classify all but a -fraction of the points, improving over the bound of [KK10] of . Note that our bound is meaningful even if is a constant whereas . Furthermore, we prove that the -means cost of the clustering we output is a -approximation of the -means cost of the target clustering.
Once we have improved on the main theorem of Kumar and Kannan, we derive immediate improvements on its applications. In Section 3.1 we show our analysis subsumes the work of Ostrovsky et al [ORSS06], and applies also to non-constant . Using the fact that Equation (1) “shaves off” a factor from the separation condition of Kumar and Kannan, we obtain a separation condition of for learning a mixture of Gaussians, and we also match the separation results of the Planted Partition model of McSherry [McS01]. These results are described in Section 5.
From an approximation-algorithms perspective, it is clear why the case of is of interest, considering the ubiquity of -partition problems in TCS (e.g., -Median, Max -coverage, Knapsack for items, maximizing social welfare in -items auction – all trivially simple for constant ). In addition, we comment that in our setting only the case where is of interest, since otherwise one can approximate the -means cost using the PTAS of Kumar et al [KSS04], which doesn’t even require any separation assumptions. From a practical point of view, there is a variety of applications where is quite large. This includes problems such as clustering images by who is in them, clustering protein sequences by families of organisms, and problems such as deduplication where multiple databases are combined and entries corresponding to the same true entity are to be clustered together [CR02, MBHC95]. The challenges that arise from treating as a non-constant are detailed in the proofs overview (Section 1.4).
To formally detail our results, we first define some notations and discuss a few preliminary facts.
2 Notations and Preliminaries
The Frobenius norm of a matrix , denoted as is defined as . The spectral norm of is defined as . It is a well known fact that if the rank of is , then . The Singular Value Decomposition (SVD) of is a decomposition of as , where is a unitary matrix, is a unitary matrix, is a diagonal matrix whose entries are nonnegative real numbers, and its diagonal entries satisfy . The diagonal entries in are called the singular values of , and the columns of and , denoted and resp., are called the left- and right-singular vectors. As a convention, when referring to singular vectors, we mean the right-singular vectors. Observe that the Singular Value Decomposition allows us to write . Projecting onto its top singular vectors means taking . It is a known fact that for any , the -dimensional subspace which best fits the rows of , is obtained by projecting onto the subspace spanned by the top singular vectors (corresponding to the top singular values). Another way to phrase this result is by saying that . For a proof, see [KV09]. The same matrix, , also minimizes the spectral norm of this difference, meaning (see [GVL96] for proof).
As previously defined, denotes the spectral norm of . The target clustering, , is composed of clusters . Observe that we use as an operator, where for every set , we have . We abbreviate, and denote . From this point on, we denote the projection of onto the subspace spanned by its top -singular vectors as , and for any vector , we denote as the projection of onto this subspace. Throughout the paper, we abuse notation and use to iterate over the rows of , whereas and are used to iterate over clusters (or submatrices). So represents the th row of whereas represents the submatrix .
The analysis of our main theorem makes use of the following facts, from [McS01, KV09, KK10]. We advise the reader to go over the proofs, which are short, elegant, and provided in Appendix A. The first fact bounds the cost of assigning the points of to their original centers.
\|\hat{A}-C\|_{F}^{2}\leq 8\min\{k\|A-C\|^{2},\|A-C\|_{F}^{2}\}\ \ \biggl{(}=8n_{r}\Delta_{r}^{2}\ \textrm{ for every }r\biggr{)}.
Next, we show that we can match each target center to a unique, relatively close, center that we get in Part I of the algorithm.
For every there exists a center s.t. , so we can match each to a unique .
Finally, we exhibit the following fact, which is detailed in the analysis of [KK10].
Fix a target cluster and let be a set of points created by removing points from and adding points from each cluster , s.t. every added point satisfies . Assume and . Then
3 Formal Description of the Algorithm and Our Theorems
Having established notation, we now present our algorithm, in Figure 1. Our algorithm’s goal is three fold: (a) to find a partition that identifies with the target clustering on the majority of the points, (b) to have the -means cost of this partition comparable with the target, and (c) output centers which are close to the true centers. It is partitioned into parts. Each part requires stronger assumptions, allowing us to prove stronger guarantees.
Assuming only the center separation of (1), then Part I gives a clustering which (a) is correct on at least fraction of the points from each target cluster (Theorem 3.1), and (b) has -means cost smaller than (Theorem 3.2).
Assuming also that , i.e. assuming the non-degenerate case where , then Part II finds centers that are close to the true centers (Theorem 4.1). As a result (see Section 4.1), if points satisfy the proximity condition (weakened by a factor,), then we misclassify no more than points.
Assuming all points satisfy the proximity condition (weakened by a -factor), Part III finds exactly the target partition (Theorem 4.8).
4 Organization and Proofs Overview
Related work is detailed in Section 2. The analysis of Part I of our algorithms is in Section 3. Part I is enough for us to give a “one-line” proof in Section 3.1 showing how the work of Ostrovsky et al falls into our framework. The analysis of Part II of the algorithm is in Section 4. The improved guarantees we get by applying the algorithm to the Planted Partition model and to the Gaussian mixture model are discussed in Section 5. We conclude with an open problem in Section 6.
Proof outline for Section 3.
The first part of our analysis is an immediate application of Facts 1.1 and 1.2. Our assumption dictates that the distance between any two centers is big (). Part I of the algorithm assigns each projected point to the nearest instead of the true center and Fact 1.2 assures that the distance is small (). Consider a misclassified point , where yet . The triangle inequality assures that has a fairly big distance to its true center (). We deduce that each misclassified point contributes to the -means cost of assigning all projected points to their true centers. Fact 1.1 bounds this cost by , so the Markov inequality proves only a few points are misclassified. Additional application of the triangle inequality for misclassified points gives that the distance between the original point and a true center is comparable to the distance , and so assigning to the cluster only increases the -means cost by a small factor.
Proof outline for Section 4.
In the second part of our analysis we compare between the true clustering and some proposed clustering , looking both at the number of misclassified points and at the distances between the matching centers . As Kumar and Kannan show, the two measurements are related: Fact 1.3 shows how the distances between the means depend on the number of misclassified points, and the main lemma (Lemma 4.5) essentially shows the opposite direction. These two relations are how Kumar and Kannan show that Lloyd steps converge to good centers, yielding clusters with few misclassified points. They repeatedly apply (their version of) the main lemma, showing that with each step the distances to the true means decrease and so fewer of the good points are misclassified.
To improve on Kumar and Kannan analysis, we improve on the two above-mentioned relations. Lemma 4.5 is a simplification of a lemma from Kumar and Kannan, where instead of projecting into a -dimensional space, we project only into a -dimensional space, thus reducing dependency on . However, the dependency of Fact 1.3 on is tightIn fact, Fact 1.3 is exactly why the case of is hard – because the and norms of the vector are not comparable for non-constant .. So in Part II of the algorithm we devise sub-clusters s.t. . The crux in devising lies in Proposition 4.4 – we show that any misclassified projected point is essentially misclassified by . And since (see [AM05]) (compared to the bound ), we are able to give a good bound on .
Recall that we rely only on center separation rather than a large batch of points satisfying the Kumar-Kannan separation, and so we do not apply iterative Lloyd steps (unless all points are good). Instead, we apply the main lemma only once, w.r.t to the misclassified points in , and deduce that the distances are small. In other words, Part II is a single step that retrieve centers whose distances to the original centers are -times better than the centers retrieved by Kumar and Kannan in numerous Lloyd iterations.
5 Acknowledgements
We would like to thanks Avrim Blum for multiple helpful discussions and suggestions. We thank Amit Kumar for clarifying a certain point in the original Kumar and Kannan paper. We thank the anonymous referees for their suggestions, and especially regarding a discussion about the result of Achlioptas and McSherry.
Related Work
There has been an extensive line of work on approximation algorithms for the -means problem ([OR00, BHPI02, dlVKKR03, ES04, HPM04, KMN+02]). The current best guarantee is a -approximation algorithm of [KMN+02] (with a much simpler analysis in [GT08]) if polynomial dependence on and the dimension is desired.For constant , [KSS04] give a PTAS for the -means problem. Another popular algorithm for -means is the Lloyd’s heuristics ([Llo82]). This heuristics, combined with a careful seeding of centers, has been shown to have good performance if the data is well separated (see [ORSS06]), or to provide -approximation in general [AV07]. The separation-based results of [ORSS06] were improved by [ABS10].
Part I of the Algorithm
In this section, we look only at Part I of our algorithm. Our approximation algorithm defines a clustering , where . Our goal in this section is to show that is correct on all but a small constant fraction of the points, and furthermore, the -means cost of is no more than times the -means cost of the target clustering.
There exists a matching (given by Fact 1.2) between the target clustering and the clustering where that satisfies the following properties:
For every cluster in the target clustering, no more than points are misclassified.
For every cluster in the clustering that the algorithm outputs, we add no more than points from other clusters.
At most points are misclassified overall, where is the second largest cluster.
Let us denote as the set of points that are assigned to in the target clustering, yet are closer to than to any other . From triangle inequality we have that . We know from Fact 1.2 that . Also, since is closer to than to , the triangle inequality gives that . So,
Thus, we can look at , and using Fact 1.1 we immediately have that for every fixed
The proof of the theorem follows from fixing some or some and deducing:
Observe that for every we have that (where is the cluster with the second largest number of points), so we have that
We now show that the -means cost of is close to the -means cost of . Observe that the -means cost of is computed w.r.t the best center of each cluster (i.e., ), and not w.r.t the centers .
The -means cost of is at most .
Given , it is clear that the centers that minimize its -means cost are . Recall that the majority of points in each belong to a unique , and so, throughout this section, we assume that all points in were assigned to , and not to . (Clearly, this can only increase the cost.) We show that by assigning the points of to , our cost is at most , and so Theorem 3.2 follows. In fact, we show something stronger. We show that by assigning all the points in to , each point pays no more than . This is clearly true for all the points in . We show this also holds for the misclassified points.
Because , it holds that . Observe that for every we have that , because is the projection of onto the subspace spanned by the top -singular vectors of . Therefore, it is also true that . Because of Fact 1.2, we have that and , so we apply the triangle inequality and get
So all we need to do is to lower bound . As noted, . Thus
and we have the bound , so . ∎
One straight-forward application of Theorem 3.2 is for the datasets considered by Ostrovsky et al [ORSS06], where the optimal -means cost is an -fraction of the optimal -means cost. Ostrovsky et al proved that for such datasets a variant of the Lloyd method converges to a good solution in polynomial time. Kumar and Kannan have shown that datasets satisfying the ORSS-separation, also have the property that most points satisfy their proximity-condition. Their analysis is not immediate, and gives a -approximation. Here, we provide a “one-line” proof that Part I of Algorithm Cluster yields a -approximation, for any .
Suppose we have a dataset satisfying the ORSS-separation condition, so any -partition of the dataset have cost . For any and any , by assigning all the points in to the center , we get some -partition whose cost is exactly , so . Setting , Theorem 3.2 is immediate.
Part II of the Algorithm
In this section, our goal is to show that Part II of our algorithm gives centers that are very close to the target clusters. We should note that from this point on, we assume we are in the non-degenerate case, where . Therefore, .
Recall, in Part II we define the sets . Observe, these set do not define a partition of the dataset! There are some points that are not assigned to any . However, we only use the centers of . We prove the following theorem.
Denote . Then for every it holds that .
The proof of Theorem 4.1 is an immediate application of Fact 1.3 combined with the following two lemmas, that bound the number of misclassified points. Observe that for every point that belongs to yet is assigned to (for ) is also assigned to in the clustering discussed in the previous section. Therefore, any misclassified point satisfies that as the proof of Theorem 3.2 shows. So all conditions of Fact 1.3 hold.
Assume that for every we have that . Then at most points of do not belong to .
Redefine as the set . Assume that for every we have that . Then for every and every we have that .
First, we claim that if is such that , then it must be the case that .
This is a simple consequence of the triangle inequality, bounding . Yet, for every , the triangle inequality gives that . Assuming , we have that .
All that’s left is to show that the number of s.t. is small. This again follows from the Markov inequality: Since , then the number of such points is at most . ∎
We now turn to proving Lemma 4.3. The general outline of the proof of Lemma 4.3 resembles to the outline of the proof of Lemma 4.2. Proposition 4.4 exhibit some property that every point in must satisfy, and then we show that only few of the points in satisfy this property. Recall that indicates the projection of onto the subspace spanned by the top -singular vectors of .
Fix s.t. . Then , so .
First, for every we have that , as is a projection of .
Let us fiddle with the triangle inequality, in order to obtain a lower bound on . We have that 3\|\hat{A}_{i}-\hat{\mu}_{r}\|\geq\|\hat{\mu}_{r}-\hat{\mu}_{s}\|\geq\|\mu_{r}-\mu_{s}\|-\bigl{(}\|\mu_{r}-\nu_{r}\|+\|\nu_{r}-\hat{\mu}_{r}\|\bigr{)}-\bigl{(}\|\mu_{s}-\nu_{s}\|+\|\nu_{s}-\hat{\mu}_{s}\|\bigr{)}\geq(c-12)(\Delta_{r}+\Delta_{s}), thus .
Assume for the sake of contradiction that , and let us show this yields an upper bound on , which contradicts our lower bound. We have that
It follows that . Contradiction (). ∎
Proposition 4.4, shows that in order to bound it suffices to bound the number of points in satisfying . The major tool in providing this bound is the following technical lemma. This lemma is a variation on the work of [KK10], on which we improve on the dependency on and simplify the proof.
Let be the subspace spanned by the following vectors: . Denote as the projection onto . We denote , and observe that , and the same goes for , and . Observe also that, as a projection, (alternatively, ).
The proof follows from upper- and lower-bounding the term . We’ve just shown a lower bound, as we have that
The triangle inequality gives that , and that , so we have the upper bound of
Comparing the upper and the lower bound, we have that for any the distance . As , the Markov inequality concludes the proof
Thus, every satisfies the conditions of Lemma 4.5 with , and . We deduce the , where is the bound s.t. for every , . Since , we conclude the proof.
The fact that is small was proven by Achlioptas and McSherry (Theorem of [AM05]). Denote as the indicator vector of . Since rank, we get
As an interesting corollary, Theorem 4.1 dictates that for every we have that .
Part II of our algorithm returns centers which are close to the true centers. Suppose we use these centers to cluster the points: . It is evident that this clustering correctly classifies the majority of the points. It correctly classifies any point with for every , and the analysis of Theorem 3.1 shows that at most -fraction of the points do not satisfy this condition. In order to have a direct comparison with the Kumar-Kannan analysis, we now bound the number of misclassified points w.r.t the fraction of points satisfying the Kumar-Kannan proximity condition.
Denote . Call a point -good, if for every we have that the projection of onto the line connecting and , denoted , satisfies that ; otherwise we say the point is -bad.
If the number of -bad points is , then (a) the clustering misclassifies no more than points, and (b) , assuming .
Clearly, all bad points may be misclassified. In addition, for every and , Lemma 4.5 (setting , , and ) proves that no more than good points can be misclassified. Summing , we conclude (a).
The proof of (b) is similar to the proof of Theorem 3.1. We look at the -means cost of . We show that all -bad points contribute a large amount to this cost.
Take to be a -bad point from . Projecting it down to the line connecting and , we denote the projection as . Clearly, whereas . It follows that . Again, the Markov inequality gives that
so from each cluster, only a fraction of of the points can be bad. ∎
Observe that Corollary 4.7 allows for multiple scaled versions of the proximity condition, based on the magnitude of . In particular, setting we get a proximity condition whose bound is independent of , and still our clustering misclassifies only a small fraction of the points – at most fraction of all points might be misclassified because they are -bad, and no more than a -fraction of -good points may be misclassified. In addition, if there are no -bad points we show the following theorem. The proof (omitted) merely follows the Kumar-Kannan proof, plugging in the better bounds, provided by Lemma 4.5.
Assume all data points are -good. That is, for every point that belongs to the target cluster and every , by projecting onto the line connecting with we have that the projected point satisfies , whereas . Then the Lloyd method, starting with , converges to the true centers.
Applications
For a mixture of Gaussians, we quote the suitable results without proof, as the proof is identical to the proof in [KK10]. We are given a mixture of Gaussians, , where the standard deviation of each distribution in any direction is at most , and the weight of each distribution is . We denote and .
Suppose we are given a set of samples from a mixture of Gaussians, such that for every it holds that . Then w.h.p. these points satisfy the proximity condition.
Suppose we are given a set of samples from a mixture of Gaussians, such that for every it holds that
Then there exists an algorithm that w.h.p. correctly classifies all points.
Therefore, if for any and , both and , then both [AM05] and Theorem 5.2 give roughly the same bound. If for any and we have that , yet , then Theorem 5.2 provides a better bound. If for any and we have that , yet the directional standard deviations of the distributions vary, then the bound of [AM05], in which the distance between any two cluster centers depends only the parameters of these two distributions, is the better bound. If both the standard deviations and the weights vary significantly between the different distributions, then better bound is determined on a case by case basis.
McSherry’s Planted Partition Model.
In the Planted Partition Model [McS01, AK94, AKS98] our instance is a random -vertex graph generated by using an implicit partition of the points into clusters. There exists an unknown matrix of probabilities , and for every pair of vertices there exists an edge connecting and w.p. (assuming belongs to cluster and to cluster ). The goal here is to recover the partition of the points (thus – recover ). Viewing this graph as a matrix, each row is taken from a special distribution over – where each coordinate is an independent Bernoulli r.v. with mean , denoting as the cluster belongs to. Thus, the mean of this distribution, , is a vector with its -coordinate set to . Denote and . The result of [McS01] is that if for every
then it is possible to retrieve the partition of the vertices w.p. at least .
Kumar and Kannan were not able to match the distance bounds of McSherry, and required centers to be factor greater then the bound of (2). Here we match the bound of McSherry exactly. Following the proof in Kumar-Kannan (with few changes), we prove:
Assuming that and that the planted partition model satisfies equation 2 for every , then w.p. at least , every point satisfies the proximity condition.
We follow the proof of Kumar-Kannan, making the suitable changes. McSherry (Theorem 10 of [McS01]) showed that w.h.p. . So our goal is to show that, w.h.p., all points are -good. I.e., denoting as a unit-length vector connecting and , we show that w.h.p. that for every we have
Observe , and due to the special structure of the means in this model, we have that where . It follows that
Observe, are i.i.d - random variables with mean , so we expect their sum to deviate from its expectation by no more than a few standard deviations. Indeed, Kumar and Kannan prove that w.h.p. it holds that for every we have
where is some sufficiently large constant. This allows us to deduce that
where the last inequality is simply the power-mean inequality. ∎
An Open Problem
References
Appendix A Some Basic Lemmas
\|\hat{A}-C\|_{F}^{2}\leq 8\min\{k\|A-C\|^{2},\|A-C\|_{F}^{2}\}\ \ \biggl{(}=8n_{r}\Delta_{r}^{2}\ \textrm{ for every }r\biggr{)}.
where the first inequality holds because rank, and the last inequality follows from the fact that . For the same reason, . ∎
For every there exists a center s.t. , so we can match each to a unique .
Observe that by taking , we project to a -dimensional subspace, so we have that . Similarly, .
Assume for the sake of contradiction that s.t. for all . Since , then our -approximation algorithm yields a clustering of cost . In contrast, as each is assigned to some , the contribution of only the points in to the -means cost of the clustering is more than
where the first inequality follows from the fact that . ∎
Now, in order to prove Fact 1.3 (also cited below as Fact A.4), we need the following Fact.
Fix any cluster and a subset . Then
Let be the indicator vector of . Then
and the fact that is simply because . ∎
Fix a target cluster and let be a set of points created by removing points from and adding points from each cluster , s.t. every added point satisfies . Assume and . Then
We break into its components and deduce
Plugging in Fact A.3 we have . The last inequality comes from maximizing the sum of square-roots by taking each . ∎