Improved Graph Clustering

Yudong Chen, Sujay Sanghavi, Huan Xu

I Introduction

This paper proposes a new algorithm for the following task: given an undirected unweighted graph, assign the nodes into disjoint clusters so that the density of edges within clusters is higher than the edge density across clusters. Clustering arises in applications such as a community detection, user profiling, link prediction, collaborative filtering etc. In these applications, one is often given as input a set of similarity relationships (either “1” or “0”) and the goal is to identify groups of similar objects. For example, given the friendship relations on Facebook, one would like to detect tightly connected communities, which is useful for subsequent tasks like customized recommendation and advertisement.

Graphs in modern applications have several characteristics that complicate graph clustering:

Small density gap: the edge density across clusters is only a small additive or multiplicative factor different from within clusters;

Sparsity: the graph is overall very sparse even within clusters;

High dimensionality: the number of clusters may grow unbounded as a function of the number of nodes nn, which means the sizes of the clusters can be vanishingly small compared to nn;

Unaffiliated nodes: there may exist a large number of nodes that do not belong to any clusters and are loosely connected to the rest of the graph;

Heterogeneity: the cluster sizes, node degrees and edge densities may be non-uniform across the graph; edge connections may not be well-modeled by a probabilistic distribution, and there may exist hierarchical cluster structures.

Various large modern datasets and graphs have such characteristics ; examples include the web graph and social graphs of various social networks etc. As has been well-recognized, these characteristics make clustering more difficult. When the in-cluster and across-cluster edge densities are close or there are many unstructured unaffiliated nodes, the clustering structure is less significant and thus harder to detect. Sparsity further reduces the amount of information and makes the problem noisier. In the high dimensional regime, there are many small clusters, which are easy to lose in the noise. Heterogeneous and non-random structures in the graphs foil many algorithms that otherwise perform well; for example, conventional spectral clustering methods are often known to be not robust to heterogeneity in the graphs . Finally, the existence of hierarchical structures and unaffiliated nodes renders many existing algorithms and theoretical results inapplicable, as they fix the number of clusters a priori and force each node to be assigned to a cluster. It is desirable to design an algorithm that can handle all these issues in a principled manner.

Our algorithmic contribution is a new method for unweighted graph clustering. It is motivated by the maximum-likelihood estimator for the classical Stochastic Blockmodel (also known as the Planted Partition Model ) for random clustered graphs. In particular, we show that this maximum-likelihood estimator can be written as a linear objective over combinatorial constraints; our algorithm is a convex relaxation of these constraints, yielding a convex program overall. While this is the motivation, it performs well—both in theory and empirically—in settings that are not just the standard stochastic blockmodel.

Our main analytical result in this paper is theoretical guarantees on our algorithm’s performance; we study it in a semi-random generalized stochastic blockmodel. This model generalizes not only the standard stochastic blockmodel and planted partition model, but many other classical planted models including planted kk-disjoint-cliques , planted dense subgraph , planted coloring and their semi-random variants . Our main result gives the conditions (as a function of the in/cross-cluster edge densities pp and qq, the density gap ∣p−q∣|p-q|, the minimum cluster size KK and the total number of nodes nn) under which our algorithm is guaranteed to recover the ground-truth clustering. When p>qp>q, the key condition reads

here all the parameters are allowed to scale with nn. Note that the condition does not depend explicitly on the number of unaffiliated nodes or the number of clusters. An analogous result holds for p<qp<q.

While the planted and stochastic block models have a rich literature, this single result shows that the performance of our algorithm matches all existing methods (up to at most logarithmic factors) in exact recovery; moreover, in the cases of the standard planted partition/kk-disjoint-cliques/noisy-coloring models with general scaling of p,qp,q and KK, we achieve order-wise improvement over existing methods, in the sense that our algorithm succeeds for a much larger range of the parameters. In fact, there is evidence indicating that we are close to the boundary at which any polynomial-time algorithm can be expected to work. The proof for our main theorem is relatively simple, relying only on standard concentration results. Our simulation study supports our theoretic finding, that the proposed method is effective in clustering noisy graphs and outperforms existing methods.

The rest of the paper is organized as follows: Section I-B provides an overview of related work; Section II presents our algorithm; Section III describes the Semi-Random Generalized Stochastic Blockmodel, which is a generalization of the standard stochastic blockmodel, one that allows the modeling of the issues mentioned above; Section IV presents the main results—a performance analysis of our algorithm for the semi-random generalized stochastic blockmodel, and provides a detailed comparison to the existing literature and a discussion of the implications for different special cases; Section V provides simulation results; the proofs of our theoretic results are given in Sections VI to IX; the paper concludes with a discussion in Section X

I-B Related Work

The general field of clustering, or even graph clustering, is too vast for a detailed survey here; we focus on the most related threads, and therein too primarily on work which provides analytical guarantees on the resulting algorithms.

Also called “planted models” , these are arguably the most natural random clustered graph models. In the simplest or standard setting, nn nodes are partitioned into disjoint subsets of equal size KK (called the true clusters), and then edges are generated independently and at random, with the probability pp of an edge between two nodes in the same cluster higher than the probability qq for two nodes in different clusters. The task is to recover the true clusters given the graph. The parameters p,q,Kp,q,K and nn typically govern whether an algorithm succeeds in recovery or not.

There is now a long line of analytical work on stochastic block models; we focus on methods that allow for exact recovery (i.e., every node is correctly classified), and summarize the conditions required by known methods in Table I. As can be seen, we improve over existing methods by polynomial factors for general values of KK—in particular, when the cluster size satisfies K=n1−αK=n^{1-\alpha} for any constant α>0\alpha>0 (which means the number of clusters is growing at the rate n/K=nαn/K=n^{\alpha}.) Our comparison focuses on polynomial factors and the setting with general values of KK. We note that in the special case of K=Θ(n)K=\Theta(n), some existing results (e.g.,) are better then ours by logarithmic factors. In addition, as opposed to several of these methods, our method can handle unaffiliated nodes, heterogeneity, hierarchy in clustering etc, and apply to other models including planted clique and planted noisy coloring.

A complimentary line of work has investigated lower bounds for the stochastic blockmodel; i.e., for what values/scalings of p,qp,q and KK it is not possible (either for any algorithm, or for any polynomial-time algorithm) to recover the underlying true clusters . We discuss and compare with these two lines of work in more details in the main results section.

I-B2 Convex methods for matrix decomposition

Our method is related to recent literature on the recovery of low-rank matrices using convex optimization, and in particular the recovery of such matrices from “sparse” perturbations (i.e., where a fraction of the elements of the low-rank matrix are possibly arbitrarily modified, while others are untouched). Sparse and low-rank matrix decomposition using convex optimization was initiated by ; follow-up works have the current state-of-the-art guarantees on this problem, and applies it directly to graph clustering.

The method in this paper is Maximum Likelihood, but it can also be viewed as a weighted version of sparse and low-rank matrix decomposition, with different elements of the sparse part penalized differently, based on the given input graph. There is currently little work or analysis on weighted matrix decomposition; in that sense, while our weights have a natural motivation in our setting, our recovery results are likely to have broader implications, for example robust versions of PCA when not all errors are created equal but have a corresponding prior.

II Algorithm

We now describe our algorithm. As mentioned, it is a convex relaxation of the Maximum Likelihood (ML) estimator as applied to the standard stochastic blockmodel. So, in what follows, we first develop notation and the exact ML estimator, and then its relaxation.

We notice that this can be written, via a re-arrangement of terms, as

where CC collects the terms that are independent of YY. The ML estimator would be maximizing the above expression subject to YY being a cluster matrix. While the objective is a linear function of YY, this optimization problem is combinatorial due to the requirement that YY be a cluster matrix (i.e., block-diagonal with each block being all-ones), and is intractable in general.

Our algorithm: We obtain a convex and tractable algorithm by replacing the constraint “YY is a cluster matrix” with (i) the constraints 0≤yij≤10\leq y_{ij}\leq 1 for all pairs (i,j)(i,j), and (ii) a nuclear norm The nuclear norm of a matrix is the sum of its singular values. regularizer ∥Y∥∗\|Y\|_{*} in the objective. The latter encourages YY to be low-rank, and is based on the well-established insight that a cluster matrix has low rank—in particular, its rank equals the number of clusters. (We discuss other related relaxations later in this section.)

Also notice that the likelihood expression (2) is linear in YY and only the ratio of the two coefficients log⁡(p/q)\log(p/q) and log⁡((1−q)/(1−p))\log((1-q)/(1-p)) is important. We therefore introduce a parameter tt which allows us to choose any ratio. This has the advantage that instead of knowing both pp and qq, we only need to choose one number tt (which should be between pp and qq; we remark on how to choose tt later). This leads to the following convex formulation:

where the weights cAc_{\mathcal{A}} and cAcc_{\mathcal{A}^{c}} are given by

Here the factor 48n{48\sqrt{n}} balances the contributions of the nuclear norm and the likelihood; the specific values of this factor as well as of cAc_{\mathcal{A}} and cAcc_{\mathcal{A}^{c}} are derived from our analysis (cf. Section VII-E). The optimization problem (3)–(4) is convex and can be cast as a Semidefinite Program (SDP) . More importantly, it can be solved using efficient first-order methods for large graphs (see Section V-A).

Our algorithm is given as Algorithm 1. Depending on the given AA and the choice of tt, the optimal solution Y^\widehat{Y} may or may not be a cluster matrix. Checking if a given Y^\widehat{Y} is a cluster matrix can be done easily, e.g., via an SVD, which will also reveal the cluster memberships if it is a cluster matrix. If it is not, any one of several rounding/aggregation ideas (e.g., the one in ) can be used empirically; we do not delve into this approach in this paper, and simply output failure. In Section IV we provide sufficient conditions under which Y^\widehat{Y} is guaranteed to be a cluster matrix, with no rounding required.

Note that while we derive our algorithm from the standard stochastic blockmodel, our analytical results hold in a much more general setting. In practice, one could execute the algorithm (with appropriate choice of tt, and hence cAc_{\mathcal{A}} and cAcc_{\mathcal{A}^{c}}) on any given graph.

The formulation (3)–(4) is not the only way to relax the non-convex ML estimator. Instead of the nuclear norm regularizer, a hard constraint ∥Y∥∗≤n\|Y\|_{*}\leq n may be used. One may further replace this constraint with the positive semidefinite constraint Y⪰0Y\succeq 0 and the linear constraints yii=1y_{ii}=1, both satisfied by any cluster matrix. The constraints yii=1,∀iy_{ii}=1,\forall i are satisfied when there is no unaffiliated node. It is not hard to check that these modifications lead to convex relaxations with smaller feasible sets, so any performance guarantee for our formulation (3)–(4) also applies to these alternative formulations. We choose to focus on our original formulation based on the following theoretical and practical considerations: a) Its performance guarantees apply to the other tighter relaxations as well. b) We do not obtain order-wise better theoretical guarantees with these alternative formulations. The work considers these tighter relaxations but does not obtain better exact recovery guarantees than ours. In fact, as we argue in the next section, our guarantees are likely to be order-wise optimal and thus any alternative convex formulations are unlikely to provide significant improvements in a scaling sense. c) Our simpler formulation facilitates efficient solution for large graphs via first-order methods; we describe one such method in Section V-A.

Choice of tt

Our algorithm requires an extraneous input tt. For the standard planted kk-disjoint-cliques problem (with kk disjoint cliques planted in a random graph Gn,1/2G_{n,1/2}), one can use t=3/4t=3/4 (see Section IV-C2). For the standard stochastic blockmodel (with nodes partitioned into equal-size clusters and edge probabilities being uniformly pp and qq inside and across clusters), the value of tt can be determined from the data (see Section IV-D). In these cases, our algorithm has no tuning parameters whatsoever and does not require knowledge of the number or sizes of the clusters. For the general setting, tt should be chosen to lie between pp and qq, which now represent the lower/upper bounds for the in/cross-cluster edge densities. As such, tt can be interpreted as the resolution of the clustering algorithm. To see this, suppose the clusters have a hierarchical structure, where each big cluster is partitioned into smaller sub-clusters with higher edge densities inside. In this case, either level of the clusters, the top-level big ones or the bottom-level small ones, can be considered as the ground truth, and it is a priori not clear which of them should be recovered. This ambiguity is resolved by specifying tt: our algorithm recovers those clusters with in-cluster edge density higher than tt and cross-cluster density lower than tt. With a larger tt, the algorithm operates at a higher resolution and detects small clusters with high density. By varying tt, our algorithm can be turned into a method for multi-resolution clustering which explores all levels of the cluster hierarchy. We leave this to future work. Importantly, the above example shows that it is generally impossible to uniquely determine the value of tt from data.

III The Generalized Stochastic Blockmodel

While our algorithm above is derived as a relaxation of ML estimator for the standard stochastic blockmodel, we establish performance guarantees in a much more general setting. The model is described below, which is defined by six parameters nn, n1n_{1}, rr, KK, pp and qq.

The n=n1+n2n=n_{1}+n_{2} nodes are divided into two sets V1V_{1} and V2V_{2}. The n1n_{1} nodes in V1V_{1} are further partitioned into rr disjoint sets, which we will refer to as the “true” clusters. Let KK be the minimum size of a true cluster. If p>qp>q, consider a random graph generated as follows: For every pair of nodes i,ji,j that belong to the same true cluster, edge (i,j)(i,j) is present in the graph with probability that is at least pp, while for every pair where the nodes are in different clusters the edge is present with probability at most qq. The other n2n_{2} nodes in V2V_{2} are not in any cluster (we will call them unaffiliated nodes); for each i∈V2i\in V_{2} and j∈V1∪V2j\in V_{1}\cup V_{2}, there is an edge between the pair i,ji,j with probability at most qq. If p<qp<q, then the graph is generated similarly as above, except that the probability of an in-cluster edge is at most pp, while the probability of other edges is at least qq. Note that it is implicit that r≥1r\geq 1, K≥1K\geq 1 and n≥n1≥rKn\geq n_{1}\geq rK.

On a graph generated from GSBM with p>qp>q (p<qp<q, resp.), an adversary is allowed to arbitrarily (a) add (remove, resp.) edges between pairs of nodes in the same true cluster, and (b) remove (add, resp.) edges between pairs of nodes if they are in different clusters, or if at least one of them is an unaffiliated node in V2V_{2}.

The objective is to find the underlying true clusters, given the graph generated from the semi-random GSBM.

The standard stochastic blockmodel/planted partition model is a special case of GSBM with n2=0,r≥2n_{2}=0,r\geq 2, all cluster sizes equal to KK, and all in-cluster and cross-cluster probabilities equal to pp and qq, respectively. GSBM generalizes the standard models as it allows for heterogeneity in the graph:

pp and qq are lower and upper bounds instead of exact edge probabilities, so nodes can have different degrees; there may also exist nested clusters (cf. Section II-A).

KK is also a lower bound, so clusters can have different sizes.

Unaffiliated nodes (nodes not in any cluster) are allowed.

GSBM removes many restrictions in the standard planted models and better models practical graphs.

The semi-random GSBM allows for further modeling power. It blends the worst case models, which are often overly pessimistic, For example, the minimum graph bisection problem is NP-hard. and the purely random graphs, which are extremely unstructured and have very special properties usually not possessed by real-world graphs . This semi-random framework has been used and studied extensively in the computer science literature as a better model for real-world networks , as it allows for non-randomness in a graph. Note that the term “adversary” means arbitrary deviation from the random model (as long as it is allowed by the semi-random model), and it covers, but is not limited to, adversarial deviation. At first glance, the adversary seems to make the problem easier as it adds in-cluster edges and removes cross-cluster edges (when p>qp>q). This is not necessarily the case. The adversary can significantly change some statistical properties of the random graph (e.g., alter spectral structure and node degrees, and create local optima by adding dense spots ), and foil algorithms that over-exploit such properties. For example, some spectral algorithms that work well on random models are proved to fail in the semi-random setting . An algorithm that works well in the semi-random setting is likely to be more robust to model mis-specification in real-world applications . As shown later, our algorithm processes this desired property.

GSBM recovers as special cases many classical and widely studied models for clustered graphs, by considering different values for the parameters n1n_{1}, n2n_{2}, rr, KK, pp and qq. We classify these models into two categories based on the relation between pp and qq.

p>qp>q: GSBM with p>qp>q models homophily, the tendency that individuals belonging to the same community tend to connect more than those in different communities. Special cases include:

Planted Clique : p=1p=1, r=1r=1 (so n1=Kn_{1}=K) and n2>0n_{2}>0;

Planted rr-Disjoint-Cliques : p=1p=1 and r≥1r\geq 1;

Planted Dense Subgraph : p<1p<1, r=1r=1 and n2>0n_{2}>0;

Stochastic Blockmodel, Planted Partition : n2=0n_{2}=0, r≥2r\geq 2 with all cluster sizes equal to KK. The special case with r=2r=2 can be call the Planted Bisection Model .

p<qp<q: This is complementary to the homophily case above. Special cases include:

Planted Coloring : q>p=0q>p=0, r≥2r\geq 2, and n2=0n_{2}=0;

Planted rr-Cut, Planted Noisy Coloring : q>p≥0q>p\geq 0, r≥2r\geq 2, and n2=0n_{2}=0.

Recall that the max-clique, max-cut, graph partition and graph coloring problems are all NP-hard in the worst case . The above “planted” variants of these problems are standard models for studying their average-case behavior.

In the next section, we provide performance guarantees for our algorithm under the semi-random GSBM. This implies guarantees for all the special cases above. We provide a detailed comparison with literature after presenting our results.

IV Main Results: Performance Guarantees

In this section we study the performance of our algorithm under the semi-random GSBM and provide theoretical guarantees. We give a unified theorem, and then discuss its consequences for various special cases, and compare with literature. We also discuss how to estimate the parameter tt in the special case of the standard stochastic blockmodel. We shall first consider the case with p>qp>q. The p<qp<q case is similar and is discussed in Section IV-C3. All proofs are postponed to Sections VI to IX.

Our optimization-based algorithm has a nice monotone property: adding/removing edges “aligned with” the optimal Y^\widehat{Y} (as is done by the adversary under the semi-random setting) cannot result in a different optimal solution. This is summarized in the following lemma.

Suppose p>qp>q and Y^\widehat{Y} is the unique optimal solution of (3)–(4) for a given AA and tt. If now we arbitrarily change some edges of AA to obtain A~\widetilde{A}, by (a) choosing some edges such that y^ij=1\widehat{y}_{ij}=1 but aij=0a_{ij}=0, and making a~ij=1\widetilde{a}_{ij}=1, and (b) choosing some edges where y^ij=0\widehat{y}_{ij}=0 but aij=1a_{ij}=1, and making a~ij=0.\widetilde{a}_{ij}=0. Then, Y^\widehat{Y} is also the unique optimal solution of (3)–(4) with A~\widetilde{A} as the input and the same tt.

The lemma shows that our algorithm is inherently robust under the semi-random model. In particular, the algorithm succeeds in recovering the true clusters on the semi-random GSBM as long as it succeeds on the GSBM with the same parameters. In the sequel, we therefore focus solely on the GSBM, with the understanding that any guarantee for it immediately implies a guarantee for the semi-random variant.

IV-B Main Theorem

Let Y∗Y^{*} be the matrix corresponding to the true clusters in the GSBM, i.e., yij∗=1y_{ij}^{*}=1 if and only if i,j∈V1i,j\in V_{1} and they are in the same true cluster, and 0 otherwise. The theorem below establishes conditions under which our algorithm, specifically the convex program (3)–(4), yields this Y∗Y^{*} as the unique optimal solution with high probability (without any further need for rounding etc.).

Suppose the graph AA is generated according to the GSBM with p>qp>q. If tt in (5) is chosen to satisfy

then Y∗Y^{*} is the unique optimal solution to the convex program (3)–(4) with probability at least 1−4n−81-4n^{-8} provided

where c1c_{1} is an absolute constant independent of p,q,K,rp,q,K,r and nn.

Our theorem quantifies the tradeoff between the four parameters governing the hardness of GSBM—the minimum in-cluster edge density pp, the maximum across-cluster density qq, the minimum cluster size KK and the number of unaffiliated nodes n2=n−n1n_{2}=n-n_{1}—required for our algorithm to succeed, i.e., to recover the underlying true clustering without any error. Note that we can handle any values of p,q,n2p,q,n_{2} and KK as long as they satisfy the condition in the theorem; in particular, they are allowed to scale with nn. Interestingly, the theorem does not have an explicit dependence on the number of clusters rr (except for the requirement rK≤nrK\leq n). We note that by using a slightly stronger version of the spectral bound in Lemma 4 in the appendix (see e.g., ), it is possible to improve the log⁡2n\log^{2}n factor in (7) to log⁡n\sqrt{\log n}. We omit such logarithmic improvement for reasons of space.

We now discuss the tightness of Theorem 1 in terms of these model parameters. When the minimum cluster size K=Θ(n)K=\Theta(n), we have a near-matching converse result.

Suppose all clusters have equal size KK, and the in-cluster (cross-cluster, resp.) edge probabilities are uniformly pp (qq, resp.), with K=Θ(n)K=\Theta(n) and n2=Θ(n1)n_{2}=\Theta(n_{1}). Under GSBM with p>qp>q and nn sufficiently large, for any algorithm to correctly recover the clusters with probability at least 34\frac{3}{4}, we must have

This theorem gives a necessary condition for any algorithm to succeed regardless of its computational complexity. It shows that Theorem 1 is optimal up to logarithmic factors for all values of pp and qq when K=Θ(n)K=\Theta(n).

For smaller values of the minimum cluster size KK, Theorem 1 requires KK to be Ω(n)\Omega(\sqrt{n}) since the left hand side of (7) is less than 11. This lower-bound is achieved when pp and qq are both constants independent of nn and KK. There are reasons to believe that this requirement is unlikely to be improvable using polynomial-time algorithms. Indeed, the special case with p=1p=1 and q=12q=\frac{1}{2} corresponds to the classical planted clique problem ; finding a clique of size K=o(n)K=o(\sqrt{n}) is widely believed to be computationally hard even on average and has been used as a hard problem for cryptographic applications .

For other values of pp and qq, no general and rigorous converse result exists. However, there is evidence suggesting that no other polynomial-time algorithm is likely to have better guarantees than our result in (7). The authors of show, using non-rigorous but deep arguments from statistical physics, that recovering the clustering is impossible in polynomial time if p−qp=o(nK)\frac{p-q}{\sqrt{p}}=o\left(\frac{\sqrt{n}}{K}\right). Moreover, the work in shows that a large class of spectral algorithms fail under similar conditions. In view of these results, it is possible that our algorithm is order-wise optimal with respect to all polynomial-time algorithms for all values of pp, qq and KK.

We give several further remarks regarding Theorem 1.

A nice feature of our result is that we only need p−q{p}-{q} to be large as compared to p\sqrt{{p}}; several other existing results (see Table I) require a lower bound (as a function of nn and KK) on p−q{p}-{q} itself. When KK is Θ(n)\Theta(n), we allow p{p} and p−qp-q to be as small as Θ(log⁡4(n)/n)\Theta\left(\log^{4}(n)/n\right).

The number of clusters rr is allowed to grow rapidly with nn—sometimes called the high-dimensional setting . In particular, our algorithm can recover up to r=Θ(n)r={\Theta}(\sqrt{n}) equal-sized clusters when p−q=Θ(1)p-q=\Theta(1). Any algorithm with a better scaling would recover cliques of size o(n)o(\sqrt{n}), an unlikely task in polynomial time in light of the hardness of the planted clique problem discussed above.

The number of unaffiliated nodes can be large, as many as n2=Θ(n)=Θ(n12)n_{2}={\Theta}(n)={\Theta}(n_{1}^{2}), which is attained when p−q,rp-q,r are Θ(1)\Theta(1) and the clusters have equal size. In other words, almost all the nodes can be unaffiliated, and this is true even when there are multiple clusters that are not cliques (i.e., p<1p<1).

Not all existing methods can handle non-uniform edge probabilities and node degrees, which often require special treatment (see e.g., ). This issue is addressed seamlessly by our method by definition of GSBM.

IV-C Consequences and Comparison with Literature

In this subsection we discuss the consequences of Theorem 1 for specific planted problems and compare with existing work. Our results match the best existing results in all cases (up to logarithmic factors), and in many important settings lead to order-wise stronger guarantees.

This model assumes that all clusters have the same size KK with no unaffiliated nodes (n2=0n_{2}=0) and p>qp>q. We compared our result to past approaches and theoretical results in Table I: For general values of p,qp,q and KK, our result has the scaling p−q=Ω(pnK)p-q={\Omega}\left(\frac{\sqrt{pn}}{K}\right) and p=Ω(nK2)p=\Omega\left(\frac{n}{K^{2}}\right), which improves on all existing results by polynomial factors. This means that we can handle much noisier and sparser graphs, especially when the number of clusters r=n/Kr=n/K is growing.

IV-C2 Planted rr-Disjoint-Cliques Problem

Here the task is to find a set of rr disjoint cliques, each of size at least KK, that have been planted in an Erdos-Renyi random graphs G(n,q)G(n,q). Setting p=1p=1 in Theorem 1, we obtain the following guarantee for this problem.

For the planted rr-disjoint-cliques problem, the formulation (3)-(5) with tt chosen according to Theorem 1 finds the hidden cliques with probability at least 1−4n−81-4n^{-8} provided

In the regime where rr is allowed to scale with nn and qq is bounded away from zero, the best previous results are given in with 1−q=Ω(rnK2)1-q={\Omega}(\frac{rn}{K^{2}}) and in with 1−q=Ω(nK)1-q={\Omega}(\frac{\sqrt{n}}{K}). Corollary 1 is stronger than both of them for large rr. In the special case with r=1r=1 and q=1/2q=1/2, which is the standard planted clique problem, the corollary guarantees recovery for the clique size K=Ω(n)K=\Omega(\sqrt{n}), matching the best known bound .

IV-C3 The p<qp<q Case

Given a graph AA generated from the semi-random GSBM with in/cross-cluster densities p<qp<q, we can run our algorithm on the graph A′=11⊤−AA^{\prime}=\mathbf{1}\mathbf{1}^{\top}-A, where 11⊤\mathbf{1}\mathbf{1}^{\top} is the all-one matrix. Note that A′A^{\prime} can be considered as generated from GSBM with in/cross-cluster densities p′=1−pp^{\prime}=1-p and q′=1−qq^{\prime}=1-q, where p′>q′p^{\prime}>q^{\prime}. With this reduction, Theorem 1 immediately yields the following guarantee.

Under the semi-random GSBM with p<qp<q, the formulation (3)-(5) applied to 11⊤−A\mathbf{1}\mathbf{1}^{\top}-A with tt satisfying

finds the true clustering with probability 1−4n−81-4n^{-8} provided

This corollary implies guarantees for the planted coloring problem and the planted rr-cut (a.k.a. planted noisy coloring ) problem. We are not aware of any exiting work that explicitly considers the GSBM with p<qp<q in its general form (i.e., n2>0n_{2}>0, 1>q>p>01>q>p>0, and K=o(n)K=o(n) with potential non-random edges). However, since any guarantee for GSBM with p>qp>q implies a guarantee for GSBM with p<qp<q, Table I provides a comparison with existing work when n2=0n_{2}=0 and the edge probabilities and cluster sizes are uniform. Again our guarantee outperforms all existing ones.

IV-C4 Planted Coloring Problems

This is a special case of the above setting, where p=0p=0, n2=0n_{2}=0 and the goal is to find the rr planted groups of colored nodes with no edge between nodes with the same color. The best existing result q=Ω(nK2+log⁡nK)q=\Omega\left(\frac{n}{K^{2}}+\frac{\log n}{K}\right) is achieved by various algorithms; see e.g., . By Corollary 2, our algorithm succeeds when q=Ω(nK2+log⁡4nK)q=\Omega\left(\frac{n}{K^{2}}+\frac{\log^{4}n}{K}\right). We match the best existing algorithms for K=O(n/log⁡4(n))K=O(n/\log^{4}(n)), and are off by a few log factors for larger KK.

IV-C5 Clustering Partially Observed Graphs

In many applications the pairwise relations in the graph are partially observed, meaning that the values of AijA_{ij} are known only for a subset of the pairs (i,j)(i,j), and information of other pairs is impossible or too expensive to obtain . A standard and natural model for this setting is as follows: after the graph AA is generated according to the GSBM with edge densities pp and qq, each entry of AA is erased (i.e., unobserved) independently with probability 1−s1-s, so s∈s\in is the observation probability. One possible approach is to set to zero all the entries of AA that are unobserved, and apply our algorithm to the zero-imputed graph A′′A^{\prime\prime}. Note that A′′A^{\prime\prime} can be considered as generated from the GSBM with in/cross-cluster densities equal to psps and qsqs, respectively. Theorem 1 is powerful enough to imply the following strong guarantee for this simple approach.

Under the above setting with p>qp>q, the formulation (3)-(5) applied to A′′A^{\prime\prime} with tt satisfying

finds the true clustering with probability 1−4n−81-4n^{-8} provided

The work in considers the special case with p=1−q>1/2p=1-q>1/2. Their algorithm explicitly handles unobserved pairs and requires the condition (2p−1)s≳nlog⁡nK,(2p-1)\sqrt{s}\gtrsim\frac{\sqrt{n}\log n}{K}, which is the best known result in this setting. Corollary 3 matches this result up to at most a logarithmic factor, and in addition applies to settings with more general values of pp and qq. The algorithm proposed in also imputes unobserved pairs with zeros and requires (p−q)s≳max⁡{nK,log⁡nK}(p-q)s\gtrsim\max\{\frac{\sqrt{n}}{K},\sqrt{\frac{\log n}{K}}\}. Corollary 3 is order-wise better whenever K≲n/log⁡4nK\lesssim{n}/{\log^{4}n}.

IV-D Estimating tt in Special Cases

The following theorem guarantees that the estimation errors are sufficiently small.

Under the standard stochastic blockmodel and the condition (7) in Theorem 1, the parameters estimated in Algorithm 2 satisfy the following with probability at least 1−4n−81-4n^{-8}, where c4c_{4} is an absolute positive constant:

In particular, the estimated tt satisfies the condition (6) in Theorem 1. The above theorem also ensures that Algorithm 2 is a consistent estimator of the parameters pp and qq when condition (7) is satisfied, which may be a result of independent interest. Combining Theorem 1 and Theorem 3, we obtain a complete algorithm that is guaranteed to find the clusters for the standard stochastic blockmodel under the condition (7), without any knowledge of the parameters of the underlying generative model.

V Empirical Results

In this section we discuss implementation issues of our algorithm, and provide empirical results on synthetic and real-world datasets.

The convex program (3)–(4) can be solved using a general purpose SDP solver, but this method does not scale well to problems with more than a few hundred nodes. To facilitate a fast and efficient solution, we propose to use a family of first-order algorithms called the Augmented Lagrange Multiplier (ALM) method. Note that the program (3)–(4) can be rewritten as

While does not prove a convergence rate for the ALM method, it is observed there that it converges Q-linearly. We observe a similar behavior, as shown in Figure 1. In the subsequent simulations, we use ∥A−Y(k)−S(k)∥F/∥A∥F≤10−2\|A-Y^{(k)}-S^{(k)}\|_{F}/\|A\|_{F}\leq 10^{-2} as the stopping criterion, so the number of iteration needed is usually small. The main bottleneck of the algorithm is computing the SVD in each iteration. Therefore, the time complexity of the algorithm is roughly the time for one SVD multiplied by the number of iterations. This can be compared with spectral clustering, which requires one SVD. The memory requirement of the ALM algorithm is Θ(n2)\Theta(n^{2}), i.e., the same order as the space needed to store the graph. It is possible to improve the space and time complexity by various approaches, such as only storing sparse and low-rank matrices and computing the first few singular values/vectors instead of a full SVD; see for more discussion on implementation details.

V-B Simulations

We perform experiments on synthetic data, and compare with other methods. We generate a graph using the stochastic blockmodel with n=1000n=1000 nodes, r=5r=5 clusters with equal size K=200K=200, and p,q∈p,q\in. We apply our method to the graph, where we pick tt using Algorithm 2 and solve the optimization problem using Algorithm 3. Due to numerical accuracy, the output Y^\hat{Y} of our algorithm may not be strictly integer, so we do the following simple rounding: compute the mean yˉ\bar{y} of the entries of Y^\hat{Y}, and round each entry of Y^\hat{Y} to 11 if it is greater than yˉ\bar{y}, and 00 otherwise. We measure the error by ∥Y∗−round(Y^)∥1\|Y^{*}-\textrm{round}(\hat{Y})\|_{1}, which equals the number of misclassified pairs. We say our method succeeds if it misclassifies less than 0.1%0.1\% of the pairs.

For comparison, we consider three alternative methods: (1) Single-Linkage clustering (SLINK) , which is a hierarchical clustering method that merges the most similar clusters in each iteration. We use the difference of neighbors, namely ∥Ai⋅−Aj⋅∥1\|A_{i\cdot}-A_{j\cdot}\|_{1}, as the distance measure of nodes ii and jj, and terminate when SLINK finds a clustering with r=5r=5 clusters. (2) A spectral clustering method , where we run SLINK on the top r=5r=5 singular vectors of AA. (3) The low-rank-plus-sparse approach , followed by the rounding scheme described in the last paragraph. Note the first two methods assume knowledge of the number of clusters rr, which is not available to our method.

For each value of qq, we find the smallest pp for which a method succeeds, and average over 2020 trials. The results are shown in Figure 2(a), where the area above each curve corresponds to the range of feasible (p,q)(p,q) for each method. It can been seen that our method outperforms all others, in that we succeed for a strictly larger range of (p,q)(p,q). Figure 2(b) shows more detailed results for sparse graphs (p≤0.3,q≤0.1p\leq 0.3,q\leq 0.1), for which SLINK and the low-rank-plus-sparse approach completely fail, while our method significantly outperforms the spectral method, the only alternative method that works in this regime. The running time of each method is shown in Figure 2 (c). Our approach and the low-rank-plus-sparse approach (both based on convex optimization) require more computational time than the simpler spectral method and SLINK. This suggests a tradeoff between the statistical and computational performance of clustering algorithms.

V-C Real-world Collaboration Graph

We evaluate our method on the NIPS Conference Papers Vol. 0-12 Dataset. Available at http://www.cs.nyu.edu/~roweis/data.html It contains the authorship relation of 20372037 authors and 17401740 papers. We use this dataset to generate a 2037×20372037\times 2037 graph of the authors by connecting co-authors; that is, we place an edge between a pair of authors if they have written at least one NIPS paper together. This is a sparse graph with an overall edge density of 0.0020.002.

We apply the four methods to this graph and compare their performance. For fairness, we force all methods to partition the authors into r=8r=8 clusters as follows: the SLINK and spectral algorithms are the same as in the previous sub-section; for our method and the low-rank-plus-sparse approach, we apply SLINK to their output Y^\hat{Y} with ∥Y^i⋅−Y^j⋅∥1\|\hat{Y}_{i\cdot}-\hat{Y}_{j\cdot}\|_{1} as the distance measure to obtain 88 clusters; the parameter tt for our method is estimated using Algorithm 2 with r^\hat{r} fixed to 88. We measure the quality of the solutions by computing the in-cluster and cross-cluster edge densities, which are shown in Table II. The clustering produced by our method has higher in-cluster density and lower cross-cluster density.

VI Proof of Lemma 1

where we use 0≤yij≤10\leq y_{ij}\leq 1 for all (i,j)(i,j) in the last inequality. Summing the L.H.S. and R.H.S. of (VI)–(VI) establishes that

Since YY is arbitrary, we conclude that Y^\widehat{Y} is the unique optimal solution to the modified program.

VII Proof of Theorem 1

We prove our main theorem in this section. In the remainder of the paper, with high probability (w.h.p.) means with probability at least 1−4n−121-4n^{-12}. The proof consists of three main steps, which we elaborate below.

We show that it suffices to assume that the in-cluster edge probability is uniformly pp, and the across-cluster edge probability is uniformly qq. In the heterogeneous model, suppose an edge is placed between nodes ii and jj with probability pijp_{ij} if they are in the same cluster, where pij≥pp_{ij}\geq p. This is equivalent to the following two-step model: first flip a coin with head probability pp, and add the edge if it is head; if it is tail, then flip another coin and add the edge with probability pij−p1−p\frac{p_{ij}-p}{1-p}. By the monotone property in Lemma 1, we know that if our convex program succeeds on the graph generated in the first step, then it also succeeds for the second step, because more in-cluster edges are added. Similarly, an across-cluster edge with probability qij≤qq_{ij}\leq q can be generated equivalently as follows: (1) add an edge with probability qq; (2) if an edge is added in the first step, remove it with probability q−qijq\frac{q-q_{ij}}{q}. Monotonicity can then be applied. Therefore, heterogeneous edge probabilities only make the probability of success higher, and thus we only need to prove the homogeneous case.

VII-B Step 2: Optimality Condition

The true cluster matrix Y∗Y^{*} is an optimal solution to the program (3)–(4) if

for all feasible YY obeying (4). Suppose there is a matrix WW that satisfies

The matrix U0U0⊤+WU_{0}U_{0}^{\top}+W is a subgradient of f(X)=∥X∥∗f(X)=\|X\|_{*} at X=Y∗X=Y^{*}, so ∥Y∥∗−∥Y∗∥∗≥⟨U0U0⊤+W,Y−Y∗⟩\|Y\|_{*}-\|Y^{*}\|_{*}\geq\langle U_{0}U_{0}^{\top}+W,Y-Y^{*}\rangle for all YY. Then, we see that (12) is implied by

The above inequality holds in particular for any feasible YY of the form Y=Y∗−eiej⊤Y=Y^{*}-e_{i}e_{j}^{\top} with (i,j)∈R(i,j)\in R or Y=Y∗+eiej⊤Y=Y^{*}+e_{i}e_{j}^{\top} with (i,j)∈Rc(i,j)\in R^{c}. This leads to the following element-wise inequalities:

It is easy to see that these inequalities are actually equivalent to (VII-B), so together with (13) they form a sufficient condition for the optimality of Y∗Y^{*}.

Finding a “dual certificate” WW obeying the exact conditions (13) and (15) is difficult, and does not guarantee uniqueness of the optimum. Instead, we consider an alternative sufficient condition that only requires a WW that approximately satisfies the exact conditions. This is done in Proposition 1 below (proved in Section VII-D), which significantly simplifies the construction of WW. Note that condition (b) in the proposition is a relaxation of the equality in (13), whereas condition (c) tightens (15). Setting ϵ=0\epsilon=0 and changing equalities to inequalities in the proposition recover the exact conditions.

VII-C Step 3: Constructing WW

where II is the identity matrix. We briefly explain the ideas behind the construction. Each of the matrices W1W_{1}, W2W_{2} and W3W_{3} is the sum of two terms. The first term is derived from the equalities in condition (c) in Proposition 1. The second term is constructed in such a way that each WiW_{i} is a zero-mean random matrix (due to the randomness in the set A\mathcal{A}), so it is likely to have small norms and satisfy conditions (a) and (b). The matrix W4W_{4} accounts for the unaffiliated nodes. In particular, it is a diagonal matrix with (W4)ii(W_{4})_{ii} being non-zero if and only if i∈V2i\in V_{2}

The following proposition (proved in Section VII-E) shows that WW indeed satisfies all the desired conditions w.h.p., hence establishing Theorem 1.

Under the conditions in Theorem 1, WW constructed above satisfies the conditions (a)–(c) in Proposition 1 w.h.p. with

VII-D Proof of Proposition 1 (Optimality Condition)

Let PT⊥(W):=W−PT(W)P_{T^{\bot}}(W):=W-P_{T}(W). Consider any feasible solution YY and let D:=Y−Y∗D:=Y-Y^{*}. The difference between the objective values of YY and Y∗Y^{*} satisfies

where in the inequality we use the fact that U0U0⊤+PT⊥(W)U_{0}U_{0}^{\top}+P_{T^{\bot}}(W) is a subgradient of ∥Y∥∗\left\|Y\right\|_{*} at Y∗Y{}^{*}, a consequence of condition (a) in the proposition and ∥PT⊥(W)∥≤∥W∥\|P_{T^{\bot}}(W)\|\leq\|W\|. We substitute the condition (c) into the third term in (16) to obtain

where we used the fact that dij≤0d_{ij}\leq 0 for (i,j)∈R(i,j)\in R and dij≥0d_{ij}\geq 0 for (i,j)∈Rc(i,j)\in R^{c} since Y=Y∗+DY=Y^{*}+D satisfies (4). Applying condition (b) yields

The last R.H.S. is strictly negative whenever D≠0D\neq 0. This proves that Y∗Y^{*} is the unique optimal solution.

VII-E Proof of Proposition 2

We show that WW constructed in Section VII-C satisfies the conditions in Proposition 1 w.h.p. We need two technical lemmas. First notice that the conditions (6) and (7) in Theorem 1 imply bounds on various quantities.

Under conditions (6) and (7) in Theorem 1, we have p(1−q)≥t(1−t)≥cmax⁡{nK2,log⁡4nK}p(1-q)\geq t(1-t)\geq c\max\left\{\frac{n}{K^{2}},\frac{\log^{4}n}{K}\right\} and ϵ<12\epsilon<\frac{1}{2}.

Since 1>t>01>t>0, we have t(1−t)≥12min⁡{t,1−t}t(1-t)\geq\frac{1}{2}\min\{t,1-t\}. Under condition (6) on tt, we further have min⁡{t,1−t}≥14(p−q)\min\left\{t,1-t\right\}\geq\frac{1}{4}(p-q) and p(1−q)≥t(1−t)p(1-q)\geq t(1-t). It then follows from condition (7) that

which implies the inequalities in part (1) of the lemma. Part (2) follows directly from part (1) and the definition of ϵ\epsilon. ∎

Due to the randomness of A\mathcal{A}, W1W_{1}, W2W_{2} and W3W_{3} are symmetric random matrices with independent zero-mean entries. The support and variance of their entries are bounded in the following lemma.

The following holds under the GSBM and the conditions (6) and (7) in Theorem 1.

For i=1,2,3i=1,2,3, the absolute values of the entries of WiW_{i} are bounded by BiB_{i} a.s. and their variance is bounded by σi2\sigma_{i}^{2}, where

We have σi≥cBilog⁡2nK\sigma_{i}\geq c\frac{B_{i}\log^{2}n}{\sqrt{K}} for i=1,2,3i=1,2,3.

The first part of the lemma follows from the definitions of the WiW_{i}’s, q≤t≤pq\leq t\leq p and ϵ<12\epsilon<\frac{1}{2} (Lemma 2). The second part follows from Lemma 2. ∎

We now proceed with the proof of Proposition 2, The proof has three sub-steps, corresponding to checking the three conditions in Proposition 1.

Recall that W1W_{1} is a random matrix with i.i.d. entries, and their absolute values and variance are bounded in Lemma 3. We apply standard bounds on the spectral norm of random matrices (Lemma 4 in the Appendix) to obtain w.h.p.

where the last inequality follows from p≥cnK2p\geq c\frac{n}{K^{2}} (cf. Lemma 2). In a similar manner, we obtain that w.h.p.

where the last inequality follows from p≥tp\geq t, and w.h.p.

where the last inequality follows from 1−t≤1−q1-t\leq 1-q. Finally, since W4=(1+ϵ)λcAPRc(I)W_{4}=(1+\epsilon)\lambda c_{\mathcal{A}}P_{R^{c}}(I) is a diagonal matrix, we have

since t≥c1nt\geq c\frac{1}{n} (cf. Lemma 2). We conclude that ∥W∥≤∑i=14∥Wi∥≤1\|W\|\leq\sum_{i=1}^{4}\|W_{i}\|\leq 1.

(2) Bounding ∥PTW∥∞\left\|P_{T}W\right\|_{\infty}.

Therefore, for i=1,2,3i=1,2,3, each entry of the matrix U0U0⊤WiU_{0}U_{0}^{\top}W_{i} equals 1km\frac{1}{k_{m}} times the sum of kmk_{m} independent zero-mean random variables (which are the entries of WiW_{i}), whose absolute values and variance are bounded in Lemma 3. Therefore, ∥U0U0⊤Wi∥∞\left\|U_{0}U_{0}^{\top}W_{i}\right\|_{\infty} can be bounded by applying the standard Bernstein inequality (given as Lemma 5 in the Appendix) to each entry of U0U0⊤WiU_{0}U_{0}^{\top}W_{i} and then using the union bound over all the entries. More specifically, by choosing the constant c0c_{0} in Lemma 5 sufficiently large such that c1c_{1} in the same lemma is at least 1414, we have the following:

where we use p≥cnK2p\geq c\frac{n}{K^{2}} in the last inequality (cf. Lemma 2) with cc sufficiently large.

where we use p≥tp\geq t and log⁡n\log n being sufficiently large in the last inequality.

where we use 1−q≥1−t1-q\geq 1-t and log⁡n\log n being sufficiently in the last inequality.

Finally, since W4W_{4} is a diagonal matrix supported on RcR^{c} and U0U0⊤U_{0}U_{0}^{\top} is supported on RR, we have U0U0⊤W4=0U_{0}U_{0}^{\top}W_{4}=0.

Combining with the previous bounds on ∥U0U0⊤Wi∥∞\left\|U_{0}U_{0}^{\top}W_{i}\right\|_{\infty} for i=1,2,3,4i=1,2,3,4, we obtain ∥(U0U0⊤Wi)∥∞≤124ϵλmin⁡{cA,cAc}.\left\|(U_{0}U_{0}^{\top}W_{i})\right\|_{\infty}\leq\frac{1}{24}\epsilon\lambda\min\left\{c_{A},c_{A^{c}}\right\}.

Now observe that since WW and U0U0⊤U_{0}U_{0}^{\top} are both symmetric, we have WU0U0⊤=(U0U0⊤W)⊤WU_{0}U_{0}^{\top}=\left(U_{0}U_{0}^{\top}W\right)^{\top}. Furthermore, we have

Using the bounds on ∥U0U0⊤Wi∥∞\left\|U_{0}U_{0}^{\top}W_{i}\right\|_{\infty} derived above, we obtain that ∥PTW∥∞≤12⋅124ϵλmin⁡{cA,cAc}=12ϵλmin⁡{cA,cAc}\left\|P_{T}W\right\|_{\infty}\leq 12\cdot\frac{1}{24}\epsilon\lambda\min\left\{c_{\mathcal{A}},c_{\mathcal{A}^{c}}\right\}=\frac{1}{2}\epsilon\lambda\min\left\{c_{\mathcal{A}},c_{\mathcal{A}^{c}}\right\}.

(3) The two equalities in condition (c) in Proposition 1 hold by the definition of WW. The two inequalities in condition (c) follow from simple algebra as follows. Because 1−q≥1−t1-q\geq 1-t and p≤4tp\leq 4t, we have 1−qp≥141−tt\frac{1-q}{p}\geq\frac{1}{4}\frac{1-t}{t}. It follows from the conditions in Theorem 1 that

One verifies that this implies (1+ϵ)t1−t1−pp≤(1−2ϵ)1−tt(1+\epsilon)\sqrt{\frac{t}{1-t}}\frac{1-p}{p}\leq(1-2\epsilon)\sqrt{\frac{1-t}{t}}. Plugging in the values of cAc_{\mathcal{A}} and cAcc_{\mathcal{A}^{c}} in (5) yields

Hence, for each (i,j)∈R∩A(i,j)\in R\cap\mathcal{A}, we have

where (i)(i) follows from p≥tp\geq t. Combining (18) and (19) proves the first inequality in the condition (c).

where (ii)(ii) follows from (17) and (iii)(iii) follows from p≥tp\geq t and 1−t≥1−34p−14q≥14(1−q)1-t\geq 1-\frac{3}{4}p-\frac{1}{4}q\geq\frac{1}{4}(1-q). This implies (1+ϵ)1−ttq1−q≤(1−ϵ)t1−t(1+\epsilon)\sqrt{\frac{1-t}{t}}\frac{q}{1-q}\leq(1-\epsilon)\sqrt{\frac{t}{1-t}}. Therefore, for each (i,j)∈Rc∩Ac(i,j)\in R^{c}\cap\mathcal{A}^{c}, we have

proving the second inequality in condition (c). This completes the proof of Proposition 2.

VIII Proof of Theorem 2

We use a standard information theoretic argument via Fano’s inequality. For simplicity we assume n1/Kn_{1}/K and n2/Kn_{2}/K are both integers, and we use c1,c2…c_{1},c_{2}\ldots to denote positive absolute constants. Let F\mathcal{F} be the set of all possible ways of assigning nn nodes into n1/Kn_{1}/K clusters of equal size KK. When K=Θ(n1)=Θ(n2)K=\Theta(n_{1})=\Theta(n_{2}), the cardinality of F\mathcal{F} can be bounded as

for nn is sufficiently large, where I(A;Y∗)I(A;Y^{*}) is the mutual information between AA and Y∗Y^{*}. We now bound I(A;Y∗I(A;Y^{*}). Let H(⋅)H(\cdot) denote the Shannon entropy and H(⋅∣Y∗)H(\cdot|Y^{*}) the Shannon entropy conditioned on Y∗Y^{*}. Observe that

where in the second equality we have used the symmetry under the uniform distribution of Y∗Y^{*} and the conditional independence between aij′sa_{ij}^{\prime}s. By definition of the mutual information, we have

where in the last inequality we use γ≥αp\gamma\geq\alpha p, 1−γ≥(1−α)(1−q1-\gamma\geq(1-\alpha)(1-q) and α,1−α=Θ(1)\alpha,1-\alpha=\Theta(1). Combining pieces, we obtain

For the last R.H.S. to be less than 14\frac{1}{4}, we need (p−q)2p(1−q)≥c61n\frac{(p-q)^{2}}{p(1-q)}\geq c_{6}\frac{1}{n}. This completes the proof of the theorem.

IX Proof of Theorem 3

In the sequel, we assume we are on the event that (20) holds.

Recall that λ1=K(p−q)+nq+(1−p)\lambda_{1}=K(p-q)+nq+(1-p), λ2,…,λr=K(p−q)+(1−p)\lambda_{2},\ldots,\lambda_{r}=K(p-q)+(1-p), and λr+1,…,λn=1−p\lambda_{r+1},\ldots,\lambda_{n}=1-p. The inequality (20) implies that for some universal constant c1c_{1}:

λ^1−λ^2≤λ1−λ2+∣λ^1−λ1∣+∣λ^2−λ2∣≤nq+c1p(1−q)n\hat{\lambda}_{1}-\hat{\lambda}_{2}\leq\lambda_{1}-\lambda_{2}+\left|\hat{\lambda}_{1}-\lambda_{1}\right|+\left|\hat{\lambda}_{2}-\lambda_{2}\right|\leq nq+c_{1}\sqrt{p(1-q)n};

similarly, λ^i−λ^i+1≤c1p(1−q)n\hat{\lambda}_{i}-\hat{\lambda}_{i+1}\leq c_{1}\sqrt{p(1-q)n} for i=2,…r−1i=2,\ldots r-1 and i≥r+1i\geq r+1;

λ^r−λ^r+1≥λr−λr+1−∣λ^r−λr∣−∣λ^r+1−λr+1∣≥K(p−q)−c1p(1−q)n\hat{\lambda}_{r}-\hat{\lambda}_{r+1}\geq\lambda_{r}-\lambda_{r+1}-\left|\hat{\lambda}_{r}-\lambda_{r}\right|-\left|\hat{\lambda}_{r+1}-\lambda_{r+1}\right|\geq K(p-q)-c_{1}\sqrt{p(1-q)n}.

Under the condition (7), we have K(p−q)≥c2p(1−q)nK(p-q)\geq c_{2}\sqrt{p(1-q)n} for some constant c2c_{2}. This implies λ^r−λ^r+1>K(p−q)2>λ^i−λ^i+1\hat{\lambda}_{r}-\hat{\lambda}_{r+1}>\frac{K(p-q)}{2}>\hat{\lambda}_{i}-\hat{\lambda}_{i+1} for all i>1i>1 and i≠ri\neq r. This guarantees r^=r\hat{r}=r and thus K^=K\hat{K}=K.

By (20) and the triangle inequality, the estimation error of q^\hat{q} satisfies

Using the above bounds on p^\hat{p} and q^\hat{q}, we obtain

where in the last inequality we use p−q4≥c4p(1−q)K\frac{p-q}{4}\geq c_{4}\frac{\sqrt{p(1-q)}}{K}, satisfied under the condition (7). This proves one side of the interval for tt. The other side is proved in a similar way.

X Conclusion

This work is motivated by clustering large-scale networks such as modern online social networks, where the graphs are often highly noisy and have heterogeneous and non-random structures. We considered a natural and versatile model, namely the semi-random Generalized Stochastic Blockmodel, for clustered random graphs. This model recovers many classical generative models for graph clustering. We presented a convex optimization formulation, essentially a convexification of the maximum likelihood estimator. Our theoretic analysis shows that this method is guaranteed to recover the correct clusters under a wide range of parameters of the problem. In fact, our method order-wise outperforms existing methods in this setting, in the sense that it succeeds under less restrictive conditions. Experiment results also validate the effectiveness of the proposed method.

Possible directions for future work include faster algorithm implementations, developing effective post-processing/rounding schemes when the obtained solution is not an exact cluster matrix, and extension to online clustering settings (e.g., via incremental stochastic optimization ). It is also interesting to extend the algorithms and analysis to more general settings beyond the models in Definitions 1 and 2, for example, when the in-cluster and cross-cluster densities are not bounded uniformly and the clusters have overlaps.

Appendix A Technical Lemmas

In this section, we record two technical lemmas that are needed in the proofs of our theoretical results. The first lemma is a standard bound on the spectral norm of a random symmetric matrix.

Suppose YY is a symmetric n×nn\times n matrix, where YijY_{ij}, 1≤i,j≤n1\leq i,j\leq n are independent random variables, each of which has mean 00 and variance at most σ2\sigma^{2} and is bounded in absolute value by BB. If σ≥c1Blog⁡2nn\sigma\geq c_{1}\frac{B\log^{2}n}{\sqrt{n}} for some absolute constant c1>0c_{1}>0, then with probability at least 1−n−101-n^{-10},

Except for YY being symmetric, the proof is the same as that of Theorem 3.1 in . ∎

The second lemma is a restatement of the standard Bernstein inequality for the sum of independent random variables.

LetLet Y1,…,YNY_{1},\ldots,Y_{N} be independent random variables, each of which is bounded in absolute value by BB a.s. and has variance bounded by σ2\sigma^{2}. For any constant c1>0c_{1}>0, there exists a constant c0>0c_{0}>0 independent of σ\sigma, BB, NN and nn such that for any n≥1n\geq 1, if σ≥Blog⁡nN\sigma\geq B\sqrt{\frac{\log n}{N}}, then we have

with probability at least 1−2n−c11-2n^{-c_{1}}.

References