Breaking the Small Cluster Barrier of Graph Clustering
Nir Ailon, Yudong Chen, Xu Huan
Introduction
This paper considers a classic problem in machine learning and theoretical computer science, namely graph clustering, i.e., given an undirected unweighted graph, partition the nodes into disjoint clusters, so that the density of edges within one cluster is higher than those across clusters. Graph clustering arises naturally in many application across science and engineering. Some prominent examples include community detection in social network Mishra et al. 2007, submarket identification in E-commerce and sponsored search Yahoo!-Inc 2009, and co-authorship analysis in analyzing document database Ester et al. 1995, among others. From a purely binary classification theoretical point of view, the edges of the graph are (noisy) labels of similarity or affinity between pairs of objects, and the concept class consists of clusterings of the objects (encoded graphically by identifying clusters with cliques).
In this paper, we aim to break this small cluster barrier of graph clustering. Correctly identifying extremely small clusters is inherently hard as they are easily confused with ‘‘fake’’ clusters generated by noisy edges Indeed, even in a more lenient setup where one clique (i.e., a perfect cluster) of size is embedded in an Erdos-Renyi graph of nodes and probability of forming an edge, to recover this clique, the best known polynomial method requires and it has been a long standing open problem to relax this requirement., and is not the focus of this paper. Instead, in this paper we investigate a question that has not been addressed before: Can we still recover large clusters in the presence of small clusters? Intuitively, this should be doable. To illustrate, consider an extreme example where the given graph consists two disjoint subgraphs and , where is a graph that can be correctly clustered using some existing method, and is a small-size clique. certainly violates the minimum cluster size requirement of previous results, but why should spoil our ability to cluster ?
The main implication of this result is that one can apply an iterative “peeling” strategy, recovering smaller and smaller clusters. The intuition is simple – suppose the number of clusters is limited, then either all clusters are large, or the sizes of the clusters vary significantly. The first case is obviously easy. The second one is equally easy: use the aforementioned convex formulation, the larger clusters can be correctly identified. If we remove all nodes from these larger clusters, the remaining subgraph contains significantly fewer nodes than the original graph, which leads to a much lower threshold on the size of the cluster for correct recovery, making it possible for correctly clustering some smaller clusters. By repeating this procedure, indeed, we can recover the cluster structure for almost all nodes with no lower bound on the minimal cluster size. We summarize our main contributions and techniques:
(2) We provide a converse of the result just described. More precisely, we show that if for some value of the knob an optimal solution appears to look as if the interval were indeed free of cluster sizes, then the solution is useful (in the sense that it correctly identifies big clusters) even if this weren’t the case.
(3) The last two points imply that if some interval of the form is free of cluster sizes, then an exhaustive search of this interval will constructively find big clusters (though not necessarily for that particular interval). This gives rise to an iterative algorithm, using a “peeling strategy”, to recover smaller and smaller clusters that are otherwise impossible to recover. Using the “knob”, we prove that as long as the number of clusters is bounded by , regardless of the cluster sizes, we can correctly recover the cluster structure for an overwhelming fraction of nodes. To the best of our knowledge, this is the first result of provably correct graph clustering without any assumptions on the cluster sizes.
(4) We extend the result to the partial observation case, where only a faction of similarity labels (i.e., edge/no edge) is known. As expected, smaller observation rates allow identification of larger clusters. Hence, the observation rate serves as the “knob”. This gives rise to an active learning algorithm for graph clustering based on adaptively increasing the rate of sampling in order to hit a “forbidden interval” free of cluster sizes, and concentrating on smaller inputs as we identify big clusters and peel them off.
Beside these technical contributions, this paper provides novel insights into low-rank matrix recovery and more generally high-dimensional statistics, where data are typically assumed to obey certain low-dimensional structure. Numerous methods have been developed to exploit this a priori information so that a consistent estimator is possible even when the dimensionality of data is larger than the number of samples. Our result shows that one may combine these methods with a “peeling strategy” to further push the envelope of learning structured data – By iteratively recovering the easier structure and then reducing the problem size, it is possible to learn structures that are otherwise difficult using previous approaches.
The literature of graph clustering is too vast for a detailed survey here; we concentrate on the most related work, and in specific those provide theoretical guarantees on cluster recovery.
Correlation Clustering This problem, originally defined by Bansal, Blum and Chawla Bansal et al. 2004, also considers graph clustering but in an adversarial noise setting. The goal there is to find the clustering minimizing the total disagreement (intercluster edges plus intracluster nonedges), without there being necessarily a notion of true clustering (and hence no “exact recovery”). This problem is usually studied in the combinatorial optimization framework and is known to be NP-Hard to approximate to within some constant factor. Prominent work includes Demaine et al. 2006; Ailon et al. 2008; Charikar et al. 2005. A PTAS is known in case the number of clusters is fixed Giotis and Guruswami 2006.
Low rank matrix decomposition via trace norm: Motivated from robust PCA, it has recently been shown Chandrasekaran et al. 2011; Candès et al. 2011, that it is possible to recover a low-rank matrix from sparse errors of arbitrary magnitude, where the key ingredient is using trace norm (aka nuclear norm) as a convex surrogate of the rank. A similar result is also obtained when the low rank matrix is corrupted by other types of noise Xu et al. 2012.
Active learning/Active clustering Another line of work that motivates this paper is study of active learning algorithms (a settings in which labeled instances are chosen by the learner, rather than by nature), and in particular active learning for clustering. The most related work is Ailon et al. 2012, who investigated active learning for correlation clustering. The authors obtain a -approximate solution with respect to the optimal, while (actively) querying no more than edges. The result imposed no restriction on cluster sizes and hence inspired this work, but differs in at least two major ways. First, Ailon et al. 2012 did not consider exact recovery as we do. Second, their guarantees fall in the ERM (Empirical Risk Minimization) framework, with no running time guarantees. Our work recovers true cluster exactly using a convex relaxation algorithm, and is hence computationally efficient. The problem of active learning has also been investigated in other clustering setups including clustering based on distance matrix Voevodski et al. 2012; Shamir and Tishby 2011, and hierarchical clustering Eriksson et al. 2011; Krishnamurthy et al. 2012. These setups differ from ours and cannot be easily compared.
Notation and Setup
Throughout, denotes a ground set of elements, which we identify with the set . We assume a true ground truth clustering of given by a pairwise disjoint covering , where is the number of clusters. We say if for some , otherwise . We let for all . For any , is the unique index satisfying .
The ground truth clustering matrix, denoted , is defined so that is , otherwise . This is a block diagonal matrix, each block consisting of ’s only. Its rank is . The input is a symmetric matrix , a noisy version of . It is generated using the well known planted clustering model, as follows. There are two fixed edge probabilities, . We think of as the adjacency matrix of an undirected random graph, where edge is in the graph for with probability if , otherwise with probability , independent of other choices. The error matrix is denoted by . We let denote the noise locations.
Note that our results apply to the more practical case in which the edge probability of is for each and for , as long as .
Results
There exist constants such that the following holds with probability at least . For any parameter and , define
then , where for a matrix , is the matrix defined by
An matrix is a partial clustering matrix if there exists a collection of pairwise disjoint sets (the induced clusters) such that if and only if for some , otherwise . If is a partial clustering matrix then is defined as .
In order for this fact to be useful algorithmically, we also need a type of converse: there exists an event with high probability (in the random process generating the input), such that for all values of , if an optimal solution to the corresponding (CP1) looks like the solution defined in Theorem 1, then the blocks of correspond to actual clusters.
There exists constants such that with probability at least , the following holds. For all and , if is an optimal solution to (CP1) with as defined in Theorem 1, and additionally is a partial clustering induced by , and also
then are actual ground truth clusters, namely, there exists an injection such that for all .
(Note: Our proof of Theorem 3 uses Hoeffding tail bounds for simplicity, which are tight for bounded away from and . Bernstein tail bounds can be used to strengthen the result for other classes of . We elaborate on this in Section 3.1.)
The combination of Theorems 1 and 3 implies that, as long as there exists a relatively small interval which is disjoint from the set of cluster sizes, and such that at least one cluster size is larger than this interval (and large enough), we can recover at least one (large) cluster using (CP1). This is made clear in the following.
Assume we have a guarantee that there exists a number , such that no cluster size falls in the interval and at least one cluster size is of size at least . Then with probability at least , we can recover at least one cluster of size at least efficiently by solving (CP1) with .
There exists such that the following holds. Assume that , and that we are guaranteed that , where . Then with probability at least Algorithm 1 will recover at least one cluster in at most iterations.
The proof is deferred to the supplemental material section. Lemma 5 ensures that by trying at most a logarithmic number of values of , we can recover at least one large cluster, assuming the number of clusters is roughly logarithmic in . The next proposition tells us that as long as this step recovers the clusters covering at most all but a vanishing fraction of elements, the step can be repeated.
A pair of numbers is called good if and . If is good, then is good for all satisfying and .
The proof is trivial. The proposition implies an inductive process in which at least one big (with respect to the current unrecovered size) cluster can be efficiently removed as long as the previous step recovered at most a -fraction of its input. Combining, we proved the following:
Assume satisfy the requirements of Lemma 5. Then with probability at least Algorithm 2 recovers clusters covering all but at most a fraction of the input in the full observation case, without any restriction of the minimal cluster size. Moreover, if we assume that is bounded by a constant , then the algorithm will recover clusters covering all but a constant number of input elements.
We now consider the case where the input matrix is not given to us in entirety, but rather that we have oracle access to for of our choice. Unobserved values are formally marked with .
Consider a more particular setting in which the edge probabilities defining are (for ) and (for ), and we observe with probability , for each , independently. More precisely: For we have with probability , with probability and with remaining probability. For we have with probability , with probability and with remaining probability. Clearly, by pretending that the values in are , we emulate the full observation case with , .
Of particular interest is the case in which are held fixed and tends to zero as grows. In this regime, by varying and fixing , Theorem 1 implies the following:
There exist constants such that for any sampling rate parameter the following holds with probability at least . define
then , where is as defined in Theorem 1.
(Note: We’ve abused notation by reusing previously defined global constants (e.g. ) with global functions of (e.g. ).) Notice now that the observation probability can be used as a knob for controlling the cluster sizes we are trying to recover, instead of . We would also like to obtain a version of Theorem 3. In particular, we would like to understand its asymptotics as tends to .
There exist constants such that for all observation rate parameters , the following holds with probability at least . If is an optimal solution to (CP1) with as defined in Theorem 8, and additionally is a partial clustering induced by , and also
then are actual ground truth clusters, namely, there exists an injection such that for all .
The proof can be found in the supplemental material. Using the same reasoning as before, we derive the following:
Let (with defined in Corollary 8). There exists a constant such that the following holds. Assume the number of clusters is bounded by some known number . Let . Then there exists in the set for which, if is obtained with observation rate (zeroing ’s), then with probability at least , any optimal solution to (CP1) with from Corollary 8 satisfies (4).
values of . On the other end of the spectrum, if and is large enough (exponential in ), then we can recover at least one large cluster after querying no more than values of . (We omit the details of the last fact from this version.) This is summarized in the following:
Assume an upper bound on the number of clusters . As long as is larger than some function of , Algorithm 4 will recover, with probability at least , at least one cluster of size at least , regardless of the size of other (small) clusters. Moreover, if is a constant, then clusters covering all but a constant number of elements will be recovered with probability at least , and the total number of observation queries is (5), hence almost linear.
Note that unlike previous results for this problem, the recovery guarantee does not impose any lower bound on the size of the smallest cluster. Also note that the underlying algorithm is an active learning one, because more observations fall in smaller clusters which survive deeper in the recursion of Algorithm 4.
Experiments
We experimented with simplified versions of our algorithms. Here we did not make an effort to compute the various constants defining the algorithms in this work, creating a difficulty in exact implementation. Instead, for Algorithm 1, we increase by a multiplicative factor of in each iteration until a partial clustering matrix is found. Similarly, in Algorithm 3, is increased by an additive factor of . Still, it is obvious that our experiments support our theoretical findings. A more practical “user’s guide” for this method with actual constants is subject to future work.
In all experiment reports below, we use a variant of the Augmented Lagrangian Multiplier (ALM) method Lin et al. 2009 to solve the semi-definite program (CP1). Whenever we say that “clusters were recovered”, we mean that a corresponding instantiation of (CP1) resulted in an optimal solution for which was a partial clustering matrix induced by .
Consider nodes partitioned into clusters , of sizes , respectively. The graph is generated according to the planted partition model with , , and we assume the full observation setting. We apply a simplified version of Algorithm 2, which terminates in steps. The recovered clusters at each step are detailed in Table 1.
Experiment 2 (Partial Observation - Fixed Sample Rate)
We have with clusters of sizes . The observed graph is generated with , , and observation rate . We repeatedly solved (CP1) with as in Corollary 8. At each iteration, at least one large cluster (compared to the input size at that iteration) was recovered exactly and removed. This terminated in exactly iterations. Results are shown in Table 1.
Experiment 3 (Partial Observation - Incremental Sampling Rate)
We tried a simplified version of Algorithm 4. We have with clusters of sizes . The observed graph is generated with , , and an observation rate which we now specify. We start with and increase it by incrementally until we recover (and then remove) at least one cluster, then repeat. The algorithm terminates in steps. Results are shown in Table 1.
Experiment 3A
We repeat the experiment with a larger instance: with clusters of sizes , and . Results are shown in Table 1. Note that we recover the smallest clusters, whose size is below .
Experiment 4 (Mid-Size Clusters)
Discussion
Our study was mainly theoretical, focusing on the planted partition model. As such, our experiments focused on confirming the theoretical findings with data generated exactly according to the distribution we could provide provable guarantees for. It would be interesting to apply the presented methodology to real applications, particularly big data sets merged from web application and social networks.
Another interesting direction is extending the “peeling strategy” to other high-dimensional learning problems. This requires understanding when such a strategy may work. One intuitive explanation of the small cluster barrier encountered in previous work is ambiguity – when viewing the input at the “big cluster resolution”, a small cluster is both a low-rank matrix and a sparse matrix. Only when “zooming in” (after recovering big clusters), small clusters patterns emerge. There are other formulations with similar property. For example, in Xu et al. 2012, the authors propose to decompose a matrix into the sum of a low rank one and a column sparse one to solve an outlier-resistant PCA task. Notice that a column sparse matrix is also a low rank matrix. We hope the “peeling strategy” may also help with that problem.
References
Appendix A Notation and Conventions
We use the following notation and conventions throughout the supplement. For a real matrix , we use the unadorned norm to denote its spectral norm. The notation refers to the Frobenius norm, is and is .
We will also study operators on the space of matrices. To distinguish them from the matrices studied in this work, we will simply call these objects “operators”, and will denote them using a calligraphic font, e.g. . The norm of an operator is defined as
For a fixed, real matrix , we define the matrix linear subspace as follows:
In words, this subspace is the set of matrices spanned by matrices each row of which is in the row space of , and matrices each column of which is in the column space of .
For a matrix , we let denote the set of matrices supported on a subset of the support of . Note that for any matrix ,
It is a well known fact that is given as follows:
where is projection (of a vector) onto the column space of , and is projection onto the row space of .
Slightly abusing notation, we will use the set complement operator to formally define to be (by this we are stressing that the space is given as where is any matrix such that and have complementary supports). Note that
For a matrix , is defined as the matrix satisfying:
Appendix B Proof of Theorem 1
The proof is based on Chen et al. 2012. We prove it for . The adjustment for is done using a padding argument, presented at the end of the proof.
We remind the reader that the projection is defined as follows:
The projection is defined as follows:
In words, projects onto the set of matrices supported on . Note that by the theorem assumption, (equivalently, projects onto the set of matrices supported on ).
which contains all feasible deviation from .
For simplicity we write and .
.
and commute with each other.
Consider any feasible solution to (CP1) ; we know due to the inequality constraints in (CP1). We will show that this solution will have strictly higher objective value than if .
For this , let be a matrix in satisfying and ; such a matrix always exists because . Suppose . Clearly, and, due to desideratum 1, we have . Therefore, is a subgradient of at . On the other hand, define the matrix . We have and . Therefore, is a subgradient of at , and is a subgradient of at . Using these three subgradients, the difference in the objective value can be bounded as follows:
The last six terms of the last RHS satisfy:
, because .
and , because and.
and , due to the definition of .
Consider the second term in the last RHS, which equals . We bound these three separately.
Third term: Due to the block diagonal structure of the elements of , we have
Combining the above three bounds with Eq. (6), we obtain
which is strictly greater than zero for . ∎
B.2 Constructing QQ.
is given by , where for ,
Note that these matrices have zero-mean entries.
as follows. For ,
B.3 Validating QQ
Note that . We show that all four terms are upper-bounded by .
(b) is a random matrix supported on , whose entries are i.i.d., zero mean, bounded almost surely by , and have variance . It follows from Lemma 16 that
because and , which holds under the assumption of the theorem.
(d) Note that is a random matrix with i.i.d. zero-mean entries which are bounded almost surely by and have variance bounded by . Lemma 16 gives .
Now observe that is the sum of i.i.d. zero-mean random variables with bounded magnitude and variance. Using Lemma 18, we obtain that for ,
On the other hand, under the definition of and , we have
Consider the two terms in the parenthesis in the last RHS. For the first term, we have
For the second term, we have the following
which implies . We conclude that
Consider the factor before the norm in the last RHS. Similarly as before, we have
This implies . We conclude that
Properties 5) and 6): It is obvious that these two properties hold by construction of .
Note that properties 3)-6) hold deterministically.
B.4 The κ>1\kappa>1 case
Applying Theorem 1 with (which we have proved) to and the padded program (CP1’), we conclude that the unique optimal solution to (CP1’) has the form
We claim that is the unique optimal solution to (CP1).
Proof by contradiction: suppose an optimal solution to (CP1) is . By optimality we have
contradicting the fact that is the unique optimal to (CP1’).
Appendix C Proof of Theorem 3
Fix and in the allowed range, let be an optimal solution to (CP1) , and assume is a partial clustering induced by for some integer , and also assume satisfies (3). Let .
We need a few helpful facts. First, note that any value of in the allowed range satisfies . Also note that from the definition of ,
We say that a pair of sets is cluster separated if there is no pair satisfying .
There exists a constant such that for all pairs of cluster-separated sets of size at least each,
where .
This is proven by a Hoeffding tail bound and a union bound to hold with probability at least . To see why, fix the sizes of , assume w.l.o.g. For each such choice, there are at most possibilities for the choice of sets , for some . For each such choice, the probability that does not hold is
using Hoeffding inequality, for some . Hence, as long as as defined above, for properly chosen , using union bound (over all possibilities of and of ) we obtain (8) uniformly.
(which can be done by setting ) the implication of the assumption is that it cannot be the case that some contains a subset of size in the range such that for some . Indeed, if such a set existed, then we would find a strictly better solution to (CP1), call it , which is defined so that is obtained from by splitting the block corresponding to into two blocks, one corresponding to and the other to . The difference between the cost of and is (renaming and ) . But the sign of is exactly the sign of which is strictly negative by (8) and (7). (We also used the fact that the trace norm part of the utility function is equal for both solutions: ).
The conclusion is that for each , the sets must all be of size at most , except maybe for at most one set of size at least . If we now also assume that
then we conclude that not all these sets can be of size at most . Hence exactly one of these sets must have size at least . From this we conclude that there is a function such that for all ,
We now claim that this function is an injection. We will need the following assumption:
For any pairwise disjoint subsets such that for some , , , :
The assumption holds with probability at least by using Hoeffding inequality, union bounding over all possible sets as above. Indeed, notice that for fixed (with, say, ), and for each tuple such that , the probability that (12) is violated is at most
for some . Using (10), this is at most
for some global . Now notice that the number of possibilities to choose such a tuple of sets is bounded above by , for some global . Assuming
for some , and applying a union bound over all possible combinations of sizes respectively, of which there are at most for some , we conclude that (12) is violated for some combination with probability at most
for some . Apply a union bound now over the possible combinations of the tuple , of which there are at most to conclude that (12) holds uniformly for all possibilities of with probability at least .
Now assume by contradiction that is not an injection, so for some distinct . Set , . Note that and . Consider the solution where is obtained from by replacing the two blocks corresponding to with four blocks: . Inequality (12) guarantees that the cost of is strictly lower than that of , contradicting optimality of the latter. (Note that .)
We can now also conclude that . Fix . We show that not too many elements of can be contained in . We need the following assumption.
For all pairwise disjoint sets such that , , for some , , :
The assumption holds with probability at least . To see why, first notice that by (3), as long as is large enough. This implies that the RHS of (18) is upper bounded by
Proving that the LHS of (18) (denoted ) is larger than (19) (denoted ) uniformly w.h.p. can now be easily done as follows. By fixing , the number of combinations for is at most for some global . On the other hand, the probability that for any such option is at most
for some . Hence, by union bounding, the probability that some tuple of sizes respectively satisfies is at most
which is at most assuming
for some . Another union bound over the possible choices of proves that (18) holds uniformly with probability at least .
Now for some set and assume by contradiction that . Set and . Define the solution where is obtained from by replacing the block corresponding to in with two blocks: and . Assumption 15 tells us that the cost of is strictly lower than that of . Note that the expression in the RHS of (18) accounts for the trace norm difference .
We are prepared to perform the final “cleanup” step. At this point we know that for each , the set satisfies
(The second inequality is implied by the fact that at most elements of may be contained in for , and another at most elements in . We are now going to conclude from this that for all . To that end, let be the feasible solution to (CP1) defined so that is a partial clustering induced by . We would like to argue that if then the cost of is strictly smaller than that of . Fix the value of the collection
Let denote the number of such that plus the number of such that . We can assume , otherwise for all as required. The number of possibilities for and giving rise to is for some . (Note that depends on only, while depends on all elements of ). For each such possibility, the probability that the cost of is lower than that of is at most
using Hoeffding inequalities, for some . (Note that special care needs to be made to account for the difference - this is similar to what we did above .) As long as
for some , we conclude that the cost of is at least that of for some giving rise to with probability at most . The number of combinations of for a fixed value of is at most . By union bounding, we conclude that for fixed , the probability that some has cost at most that of is at most . Finally union bound over all possibilities for , of which there are at most .
Taking large enough to satisfy the requirements above concludes the proof.
Appendix D Proof of Theorem 9
The proof of Theorem 3 in the previous section made repeated use of Hoeffding tail inequalities, for bounding the size of the intersection of the noise support with various submatrices. This is tight for which are bounded away from and . However, if , the noise probabilities are fixed and tends to , a sharper bound is obtained using Bernstein tail bound (see Appendix F.2,Lemma 17). Using Bernstein inequality instead of Chernoff inequality, the expression in (9),(11),(13),(14),(15),(16),(17),(20),(21), (22),(23) can be replaced with . This clearly gives the required result.
Appendix E Proof of Lemma 5
Appendix F Technical Lemmas
It is well-known that the spectral norm of a zero-mean random matrix is bounded above w.h.p. by , where is a constant that might depend on the variance and magnitude of the entries of . Here we state and (re-)prove an upper bound of with an explicit estimate of the constant , which is needed in the proof of the main theorem.
Let , be independent random variables, each of which has mean and variance at most and is bounded in absolute value by . Then with probability at least
F.2 Standard Bernstein Inequality for Sum of Independent Variables
(Bernstein inequality) be independent random variables, each of which has variance bounded by and is bounded in absolute value by a.s.. Then we have that
The following well known consequence of the theorem will also be of use.
(vershynin2010nonasym, Proposition 5.16) be independent random variables, each of which has variance bounded by and is bounded in absolute value by a.s. Then we have
with probability at least where the positive constants , , are independent of , , and .