Stochastic Block Model and Community Detection in the Sparse Graphs: A spectral algorithm with optimal rate of recovery

Peter Chin, Anup Rao, Van Vu

Introduction

Community detection is an important problem in statistics, theoretical computer science and image processing. A widely studied theoretical model in this area is the stochastic block model. In the simplest case, there are two blocks V1,V2V_{1},V_{2} each of size of nn; one considers a random graph generated from the following distribution: an edge between vertices belonging to the same block appears with probability an\frac{a}{n} and an edge between vertices across different blocks appear with probability bn\frac{b}{n}, where a>b>0a>b>0. Given an instance of this graph, we would like to identify the two blocks as correctly as possible. Our paper will deal with the general case of k≥2k\geq 2 blocks, but for the sake of simplicity, let us first focus on k=2k=2.

For k=2k=2, the problem can be seen as a variant of the well known hidden bipartition problem, which has been studied by many researchers in theoretical computer science, starting with the work of [BCLS87]; (see [DF89] [Bop87] [JS93] [McS01] and the references therein for further developments). In these earlier papers, aa and bb are large (at least log⁡n\log n) and the goal is to recover both blocks completely. It is known that one can efficiently obtain a complete recovery if (a−b)2a+b≥Clog⁡nn\frac{(a-b)^{2}}{a+b}\geq C\frac{\log n}{n} and a,b≥Clog⁡na,b\geq C\log n for some sufficiently large constant CC (see, for instance [Vu14]).

In the stochastic block model problem, the graph is sparse with aa and bb being constants. Classical results from random graph theory tell us that in this range the graph contains, with high probability, a linear portion of isolated vertices [Bol01]. Apparently, there is no way to tell these vertices apart and so a complete recovery is out of question. The goal here is to recover a large portion of each block, namely finding a partition V1′∪V2′V_{1}^{\prime}\cup V_{2}^{\prime} of V=V1∪V2V=V_{1}\cup V_{2} such that ViV_{i} and Vi′V_{i}^{\prime} are close to each other. For quantitative purposes, let us introduce a definition

A collection of subsets V1′,V2′V_{1}^{\prime},V_{2}^{\prime} of V1∪V2V_{1}\cup V_{2} is γ\gamma-correct if ∣Vi∩Vi′∣≥(1−γ)n|V_{i}\cap V_{i}^{\prime}|\geq(1-\gamma)n.

For any constant γ>0\gamma>0 there are constants d0,C>0d_{0},C>0 such that if a,b>d0a,b>d_{0} and (a−b)2a+b>Clog⁡(a+b)\frac{(a-b)^{2}}{a+b}>C\log(a+b), one can find a γ\gamma-correct partition using a polynomial time algorithm.

Coja-Oglan proved Theorem 1.2 as part of a more general problem, and his algorithm was rather involved. Furthermore, the result is not yet sharp and it has been conjectured that the log⁡\log term is removable We would like to thank E. Abbe for communicating this conjecture.. Even when the log term is removed, an important question is to find out the optimal relation between the accuracy γ\gamma and the ratio (a−b)2a+b\frac{(a-b)^{2}}{a+b}. This is the main goal of this paper.

There are constants C0C_{0} and C1C_{1} such that the following holds. For any constants a>b>C0a>b>C_{0} and γ>0\gamma>0 satisfying

we can find a γ\gamma-correct partition with probability 1−o(1)1-o(1) using a simple spectral algorithm.

The constants C0,C1C_{0},C_{1} can be computed explicitly via a careful, but rather tedious, book keeping. We try not to optimize these constants to simplify the presentation. The proof of Theorem 1.3 yields the following corollary

There are constants C0C_{0} and ϵ\epsilon such that the following holds. For any constants a>b>C0a>b>C_{0} and ϵ>γ>0\epsilon>\gamma>0 satisfying

we can find a γ\gamma-correct partition with probability 1−o(1)1-o(1) using a simple spectral algorithm.

In parallel to our study, [ZZ] , proving a minimax rate result that suggested that there is a constant c>0c>0

then one cannot recover a γ\gamma-correct partition (in expectation), regardless the algorithm.

In order to prove Theorem 1.3, we design a fast and robust algorithm which obtains a γ\gamma-correct partition under the condition (a−b)2a+b≥Clog⁡1γ\frac{(a-b)^{2}}{a+b}\geq C\log\frac{1}{\gamma}. Our algorithm guarantees γ\gamma-correctness with high probability.

We can refine the algorithm to handle the (more difficult) general case of having kk blocks, for any fixed number kk. Suppose now there are kk blocks V1,...,VkV_{1},...,V_{k} with ∣Vi∣=nk|V_{i}|=\frac{n}{k} with edge probabilities an\frac{a}{n} between vertices within the same block and bn\frac{b}{n} between vertices in different blocks. As before, a collection of subsets V1′,V2′,..,Vk′V_{1}^{\prime},V_{2}^{\prime},..,V_{k}^{\prime} of V1∪V2∪...∪VkV_{1}\cup V_{2}\cup...\cup V_{k} is γ\gamma-correct if ∣Vi∩Vi′∣≥(1−γ)nk|V_{i}\cap V_{i}^{\prime}|\geq(1-\gamma)\frac{n}{k}.

There exists constants C1,C2C_{1},C_{2}, such that if kk is any constant as n→∞n\to\infty and if

(a−b)2≥C2k2alog⁡1γ(a-b)^{2}\geq C_{2}k^{2}a\log\frac{1}{\gamma},

then we can find a γ\gamma-correct partition with probability at least 1−o(1)1-o(1) using a simple spectral algorithm.

We believe that this result is sharp, up to the values of C1C_{1} and C2C_{2}; in particular, the requirement (a−b)2a=Ω(k2)\frac{(a-b)^{2}}{a}=\Omega(k^{2}) is optimal.

Our method also works (without significant changes) in the case the blocks are not equal, but have comparable sizes (say cn≥∣Vi∣≥ncn\geq|V_{i}|\geq n for some constant c≥1c\geq 1). In this case, the constants C1,C2C_{1},C_{2} above will also depend on cc. While the emphasis of this paper is on the case a,ba,b are constants, we would like to point out that this assumption is not required in our theorems, so our algorithms work on denser graphs as well.

Let us now discuss some recent works, which we just learned after posting the first version of this paper on arxiv. Mossel informed us about a recent result in [MNS13b] which is similar to Theorem 1.3 (see [MNS13b, Theorem 5.3]). They give a polynomial time algorithm and prove that there exists a constant CC such that if (a−b)2>C(a+b)(a-b)^{2}>C(a+b) and a,ba,b are fixed as n→∞n\to\infty, then the algorithm recovers an optimal fraction of the vertices. The algorithm in [MNS13b] is very different from ours, and uses non-back tracking walks. This algorithm doest not yet handle the case of more than 2 blocks, and its analysis looks very delicate. Next, Guedon sent us [GV14], in which the authors also proved a result similar to Theorem 1.3, under a stronger assumption (a−b)2≥C1γ2(a+b)(a-b)^{2}\geq C\frac{1}{\gamma^{2}}(a+b) (see Theorem 1.1 and Corollary 1.2 of [GV14]). Their approach relies on an entirely different (semi-definite program) algorithm, which, in turn, was based on Grothendick’s inequality. This approach seems to extend to the general k>2k>2 case; however, the formulation of the result in this case, using matrix approximation, is somewhat different from ours (see [GV14, Theorem 1.3]). Two more closely related papers have been brought to our attention by the reviewers. In [LMX13], authors have worked out the spectral part of the result in this paper.

It is remarkable to see so many progresses, using different approaches, on the same problem in such a short span of time. This suggests that the problem is indeed important and rich, and it will be really pedagogical to study the performance of the existing algorithms in practice. We are going to discuss the performance of our algorithm in Sections 3 and 4.

We next present an application of our method to the Censor Block Model studied by Abbe et. al. in [ABBS14]. As before, let VV be the union of two blocks V1,V2V_{1},V_{2}, each of size nn. Let G=(V,E)G=(V,E) be a random graph with edge probability pp with incidence matrix BGB_{G} and x=(x1,...,x2n)\boldsymbol{\mathit{x}}=(x_{1},...,x_{2n}) be the indicator vector of V2V_{2}. Let z\boldsymbol{\mathit{z}} be a random noise vector whose coordinates zeiz_{e_{i}} are i.i.d Bernoulli(ϵ)\text{Bernoulli}(\epsilon) (taking value 11 with probability ϵ\epsilon and 00 otherwise), where eie_{i} are the edges of GG.

where ⊕\oplus is the addition in mod 22, one would like identify the blocks. In [ABBS14], the authors proved that exact recovery (γ=0\gamma=0) is possible if and only if nplog⁡n≥2(1−2ϵ)2+o(1(1−2ϵ)2)\frac{np}{\log n}\geq\frac{2}{(1-2\epsilon)^{2}}+o(\frac{1}{(1-2\epsilon)^{2}}) in the limit ϵ→1/2\epsilon\to 1/2. Further, they gave a semidefinite programming based algorithm which succeeds up to twice the threshold. They posed the question of partial recovery (γ>0\gamma>0) for sparse graphs. Addressing this question, we show

For any given constants γ,1/2>ϵ>0\gamma,1/2>\epsilon>0, there exists constant C1,C2C_{1},C_{2} such that if np≥C1(1−2ϵ)2np\geq\frac{C_{1}}{(1-2\epsilon)^{2}} and p≥C2np\geq\frac{C_{2}}{n}, then we can find a γ\gamma-correct partition with probability 1−o(1)1-o(1), using a simple spectral algorithm.

Let us conclude this section by mentioning a related, interesting, problem, where the purpose is just to do better than a random guess (in our terminology, to find a partition which is (1/2+ϵ)(1/2+\epsilon)-correct). It was conjectured in [DKMZ11] that this is possible if and only if (a−b)2>(a+b)(a-b)^{2}>(a+b). This conjecture has been settled recently by Mossel et. al. [MNS12] [MNS13a] and Massoulie [Mas13] . Another closely related problem which has been studied in [ABH14] [MNS14] is about when one can recover at least 1−o(1)1-o(1) fraction of the vertices.

The rest of the paper is organized as follows. In section 2, we describe our algorithm for Theorem 2.1 and an overview of the proof. The full proof comes in sections 3. In section 4, we show how to modify the algorithm to handle the kk block case and prove theorem 1.5. Finally, in section 5, we prove theorem 1.6.

Two communitites

We first consider the case k=2k=2. Our algorithm will have two steps. First we use a spectral algorithm to recover a partition where the dependence between γ\gamma and (a−b)2a+b\frac{(a-b)^{2}}{a+b} is sub-optimal.

and eigenvector u2\boldsymbol{\mathit{u}}_{2} corresponding to the eigenvalue a−ba-b has coordinates

Notice that the second eigenvector of Aˉ0\bar{A}_{0} identifies the partition. We would like to use the second eigenvector of A0A_{0} to approximately identify the partition. Since A0=Aˉ0+E0,A_{0}=\bar{A}_{0}+E_{0}, perturbation theory tells us that we get a good approximation if ∥E0∥\left\|E_{0}\right\| is sufficiently small. However, with probability 1−o(1)1-o(1), the norm of E0{E_{0}} is rather large (even larger than the norm of the main term). In order to handle this problem, we modify E0{E_{0}} using the auxiliary deletion, at the cost of losing a few large degree vertices.

Let Aˉ,A,E\bar{A},A,E be the matrices obtained from Aˉ0,A0,E0\bar{A}_{0},A_{0},E_{0} after the deletion, respectively. Let Δ=defAˉ−Aˉ0\Delta\mathrel{\mathop{\kern 0.0pt=}\limits^{\text{d{}ef}}}\bar{A}-\bar{A}_{0}; we have

The key observation is that ∥E∥\left\|E\right\| is significantly smaller than ∥E0∥\left\|E_{0}\right\|. In the next section we will show that ∥E∥=O(d)\left\|E\right\|=\mathcal{O}(\sqrt{d}), with probability 1−o(1)1-o(1), while ∥E0∥\left\|E_{0}\right\| is Θ(log⁡nlog⁡log⁡n)\Theta(\sqrt{\frac{\log n}{\log\log n}}), with probability 1−o(1)1-o(1). Furthermore, we could show that ∥Δ∥\left\|\Delta\right\| is only O(1)\mathcal{O}(1) with probability 1−o(1)1-o(1). Therefore, if the second eigenvalue gap for the matrix A0A_{0} is greater than CdC\sqrt{d}, for some large enough constant CC, then Davis-Kahan sin⁡Θ\sin\Theta theorem would allow us to bound the angle between the second eigenvector of Aˉ0\bar{A}_{0} and AA by an arbitrarily small constant. This will, in turn, enable us to recover a large portion of the blocks, proving the following statement

There are constants C0C_{0} and C1C_{1} such that the following holds. For any constants a>b>C0a>b>C_{0} and γ>0\gamma>0 satisfying (a−b)2a+b≥C11γ2\frac{(a-b)^{2}}{a+b}\geq C_{1}\frac{1}{\gamma^{2}}, then with probability 1−o(1)1-o(1), Spectral Partition outputs a γ\gamma-correct partition.

The parameter d:=a+bd:=a+b can be estimated very efficiently from the adjacency matrix AA. We take this as input for a simpler exposition.

Step 2 is a further correction that gives us the optimal (logarithmic) dependence between γ\gamma and (a−b)2a+b\frac{(a-b)^{2}}{a+b}. The idea here is to use the degree sequence to correct the mislabeled vertices. Consider a mislabeled vertex u∈V1′∩V2u\in V_{1}^{\prime}\cap V_{2}. As u∈V2u\in V_{2}, we expect uu to have bb neighbors in V1V_{1} and aa neighbors in V2V_{2}. Assume that Spectral Partition output V1′,V2′V_{1}^{\prime},V_{2}^{\prime} where ∣V1\Vi′∣≤0.1n|V_{1}\backslash V_{i}^{\prime}|\leq 0.1n, we expect uu to have at most 0.9b+0.1a0.9b+0.1a neighbors in V1′V_{1}^{\prime} and at least 0.1b+0.9a0.1b+0.9a neighbors in V2′V_{2}^{\prime}. As

0.1b+0.9a>a+b2>0.9b+0.1a,0.1b+0.9a>\frac{a+b}{2}>0.9b+0.1a, we can correctly reclassify uu by thresholding. There are, however, few problems with this argument. First, everything is in expectation. This turns out to be a minor problem; we can use a large deviation result to show that a majority of mislabeled vertices can be detected this way. As a matter of fact, the desired logarithmic dependence is achieved at this step, thanks to the exponential probability bound in the large deviation result.

The more serious problem is the lack of independence. Once Spectral Partition has run, the neighbors of uu are no longer random. We can avoid this problem using a splitting trick as given in Partition. We sample randomly half of the edges of the input graph and used the graph formed by them in Spectral Partition. After receiving the first partition, we use the other (random) half of the edges for correction. This doesn’t make the two steps completely independent, but we can still prove the stated result.

The sub-routine Correction is as follows:

Figure 4 is the density plot of the matrix before and after clustering according to the algorithm described above. We can prove

Given a 0.10.1-correct partition V1′,V2′V_{1}^{\prime},V_{2}^{\prime} and a Blue graph on V1′∪V2′V_{1}^{\prime}\cup V_{2}^{\prime} as input to the subroutine Correction given in figure 3, we get a γ\gamma-correct partition with γ=2exp⁡(−0.072(a−b)2a+b).\gamma=2\exp(-0.072\frac{(a-b)^{2}}{a+b}).

First step: Proof of Theorem 2.1

We now turn to the details of the proof. Using the notation in the previous section, we let WW be the two dimensional eigenspace corresponding to the top two eigenvalues of A{\mathit{A}} and Wˉ\bar{W} be the corresponding space of Aˉ\bar{A}. For any two vector subspaces W1,W2W_{1},W_{2} of same dimension, we use the usual convention sin⁡∠(W1,W2):=∥PW1−PW2∥\sin\angle(W_{1},W_{2}):=\left\|P_{W_{1}}-P_{W_{2}}\right\|, where PWiP_{W_{i}} is the orthogonal projection onto WiW_{i}. The proof has two main steps:

Bounding the angle: We show that sin⁡∠(W,Wˉ)\sin\angle(W,\bar{W}) is small, under the conditions of the theorem.

Recovering the partition: If sin⁡∠(W,Wˉ)\sin\angle(W,\bar{W}) is small, we find an approximate partition which can then improved to find an optimal one.

For the first part, recall that A=Aˉ0+Δ+E{\mathit{A}}=\bar{{\mathit{A}}}_{0}+\Delta+E. We first prove that ∥Δ∥\left\|\Delta\right\| and ∥E∥\left\|E\right\| are small with probability 1−o(1)1-o(1). Bounding ∥Δ∥\left\|\Delta\right\| is easy as it will be sufficient to bound the number of vertices of high degrees. We need the following

There exist a constant d0d_{0} such that if d:=a+b≥d0d:=a+b\geq d_{0}, then with probability 1−exp⁡(−Ω(a−2n))1-\exp\left(-\Omega(a^{-2}n)\right) not more than a−3na^{-3}n vertices have degree ≥20d\geq 20d.

Note that the proof of the above lemma and other missing proofs in this subsection appear in appendix A.1. If there are at most a−3na^{-3}n vertices with degree ≥20d\geq 20d, then by definition, Δ\Delta has at most 2a−3n22a^{-3}n^{2} non-zero entries, and the magnitude of each entry is bounded by an\frac{a}{n}. Therefore, its Hilbert-Schmidt norm is bounded by ∥Δ∥HS≤2a−1/2\left\|\Delta\right\|_{HS}\leq\sqrt{2}a^{-1/2}.

For d0d_{0} sufficiently large, with probability 1−exp⁡(−Ω(a−3n))1-\exp(-\Omega(a^{-3}n)), ∥Δ∥≤1\left\|\Delta\right\|\leq 1.

Now we address the harder task of bounding ∥E∥\|E\|. Here is the key lemma

Suppose MM is random symmetric matrix with zero on the diagonal whose entries above the diagonal are independent with the following distribution

Let σ\sigma be a quantity such that pij≤σ2p_{ij}\leq\sigma^{2} and M1M_{1} be the matrix obtained from MM by zeroing out all the rows and columns having more than 20σ2n20\sigma^{2}n positive entries. Then with probability 1−o(1)1-o(1), ∥M1∥≤Cσn\left\|M_{1}\right\|\leq C\sigma\sqrt{n} for some constant C>0C>0.

There exist constants C0,CC_{0},C such that if a>b≥C0a>b\geq C_{0}, and EE is obtained as described before, then we have,

Now, let v1ˉ,vˉ2\bar{\boldsymbol{\mathit{v}}_{1}},\bar{\boldsymbol{\mathit{v}}}_{2} be eigenvectors of Aˉ0\bar{A}_{0} corresponding to the largest two eigenvalues λ1≥λ2\lambda_{1}\geq\lambda_{2} v1,v2\boldsymbol{\mathit{v}}_{1},\boldsymbol{\mathit{v}}_{2} be eigenvectors of A=Aˉ0+Δ+EA=\bar{A}_{0}+\Delta+E corresponding to the largest two eigenvalues. Further, Wˉ:=Span{v1ˉ,vˉ2}\bar{W}:=\text{Span}\{\bar{\boldsymbol{\mathit{v}}_{1}},\bar{\boldsymbol{\mathit{v}}}_{2}\} and W:=Span{v1,v2}W:=\text{Span}\{\boldsymbol{\mathit{v}}_{1},\boldsymbol{\mathit{v}}_{2}\}.

For any constant c<1c<1, we can choose constants C2C_{2} and C3C_{3} such that such that if a−b≥C2a+b=C2da-b\geq C_{2}\sqrt{a+b}=C_{2}\sqrt{d} and a≥C3a\geq C_{3} then, sin⁡(∠Wˉ,W)≤c<1\sin(\angle\bar{W},W)\leq c<1 with probability 1−o(1)1-o(1).

Proof of Lemma 3.5: Let C3C_{3} be a constant such that if a≥C3a\geq C_{3}, then theorem 3.2 holds giving us ∥Δ∥≤1\left\|\Delta\right\|\leq 1. From lemma 3.4 we have that ∥E∥≤Cd\left\|E\right\|\leq C\sqrt{d}. The lemma then follows from the Davis-Kahan [Dav63] [Bha97] bound for matrices Aˉ0\bar{A}_{0} and AA, which gives sin⁡(∠W,Wˉ)≤∥E+Δ∥λ2\sin(\angle W,\bar{W})\leq\frac{\left\|E+\Delta\right\|}{\lambda_{2}}. Therefore, the lemma follows by choosing C1C_{1} big enough.

2 Recovery

Given a subspace WW satisfying sin⁡(∠Wˉ,W)≤c<1/16\sin(\angle\bar{W},W)\leq c<1/16, we can recover a big portion of the vertices. We prove (in appendix A.2) that

Given a subspace WW satisfying sin⁡(∠Wˉ,W)≤c<1/16\sin(\angle\bar{W},W)\leq c<1/16, we can recover a 8c/38c/3-correct partition.

Once we have an approximate partition, we can use the Blue edges to boost it in the Correction step. We prove (in appendix A.3)

Given a 0.10.1 correct partition V1′,V2′V_{1}^{\prime},V_{2}^{\prime} as input to the Correction routine in figure 3, the algorithm outputs a γ\gamma correction partition with γ=2exp⁡(−0.072(a−b)2a+b).\gamma=2\exp(-0.072\frac{(a-b)^{2}}{a+b}).

Multiple communities

Let us start with the algorithm, which (compared to the algorithm for the case of 2 blocks) has an additional step of random splitting. This additional step is needed in order to recover the partitions. We will start by computing an approximation of the space spanned by the first kk eigenvectors of the hidden matrix. However, when k>2k>2, it is not obvious how to approximate the eigenvectors themselves. To handle this problem, we need a new argument that requires this extra step.

Since we use different set of edges for each step, we have independence across the steps.

2 Details

Step 1 is a spectral algorithm on a portion of the adjacency matrix A0A_{0} as given in figure 6.

This will enable us to recover a large portion of the blocks Z∩V1,...,Z∩VkZ\cap V_{1},...,Z\cap V_{k}. We will prove the following statement (appendix B.1)

There exists constants C1,C2C_{1},C_{2} such that for any fixed integer kk the following holds.

(a−b)2a≥C2k21γ\frac{(a-b)^{2}}{a}\geq C_{2}k^{2}\frac{1}{\gamma}, and

then we can find a γ\gamma-correct partition U1′,...,Uk′U_{1}^{\prime},...,U_{k}^{\prime} of ZZ with high probability using a simple spectral algorithm.

Step 2 (figure 7) is a further correction that gives us the optimal (logarithmic) dependence between γ\gamma and (a−b)2a+b\frac{(a-b)^{2}}{a+b}. The idea here is to use the degree sequence to correct the mislabeled vertices in Z. Consider a mislabeled vertex u∈Z∩V1u\in Z\cap V_{1}. As u∈Z∩V1u\in Z\cap V_{1}, we expect uu to have a/4a/4 Red neighbors in Z∩V1Z\cap V_{1} and b/4b/4 Red neighbors in Z∩ViZ\cap V_{i} for all i≠1i\neq 1. Assume that Spectral Partition output U1′,...,Uk′U_{1}^{\prime},...,U_{k}^{\prime} where ∣U1\U1′∣≤.1n/2k|U_{1}\backslash U_{1}^{\prime}|\leq.1n/2k, we expect uu to have at most 0.9b/4k+0.1a/4k0.9b/4k+0.1a/4k Red neighbors in Ui′U_{i}^{\prime} and at least 0.1b/4k+0.9a/4k0.1b/4k+0.9a/4k Red neighbors in U1′U_{1}^{\prime}. As

we can correctly reclassify uu by thresholding. We can prove (appendix B.2)

Given a 0.10.1 correction partition of Z=(Z∩V1)∪...∪(Z∩Vk)Z=(Z\cap V_{1})\cup...\cup(Z\cap V_{k}) and the Red graph over ZZ, the sub-routine Correction given in figure 7 computes a γ\gamma correct partition with γ=2kexp⁡(−0.04(a−b)2k(a+b))\gamma=2k\exp(-0.04\frac{(a-b)^{2}}{k(a+b)}).

Step 3 is to use the clustering information of vertices in ZZ to label the vertices in YY, and is similar to step 2. We prove (appendix B.3)

Given a 0.10.1 correction partition of Z=(Z∩V1)∪...∪(Z∩Vk)Z=(Z\cap V_{1})\cup...\cup(Z\cap V_{k}) and the Blue graph over Y∪ZY\cup Z, the sub-routine Merge is given in (figure 8) computes a γ\gamma correct partition with γ=2kexp⁡(−0.0324(a−b)2k(a+b))\gamma=2k\exp(-0.0324\frac{(a-b)^{2}}{k(a+b)}).

Combining lemmas \reflem:correctionmulti,\reflem:mergemulti\ref{lem:correction_multi},\ref{lem:merge_multi}, we get the stated result.

Censor Block Model

We first introduce some notations so as to write this problem in a way similar to the other problems in this paper. To simplify the analysis, we make the following assumptions. We assume that there are ∣V∣=2n|V|=2n vertices, with exactly nn of them labeled 11, and the rest labeled 00. As in [ABBS14], we assume that G∈G2n,pG\in G_{2n,p} is a graph generated from the Erdos-Renyi model with edge probability pp. Since any edge (i,j)(i,j) appears with probability pp, and that ze∼Bernoulli(ϵ)\boldsymbol{\mathit{z}}_{e}\sim\text{Bernoulli}(\epsilon), we have

For any i,j∈Vi,j\in V, let us write wij:=xi⊕xjw_{ij}:=x_{i}\oplus x_{j}, and W:=(wij)ijW:=(w_{ij})_{ij} the associated 2n×2n2n\times 2n matrix.

We note that yˉi,j:=E(yi,j)=pϵ+p(1−2ϵ)wi,j.\bar{y}_{i,j}:={\boldsymbol{E}}(y_{i,j})=p\epsilon+p(1-2\epsilon)w_{i,j}. Therefore, we can write yi,j=yˉi,j+ζi,jy_{i,j}=\bar{y}_{i,j}+\zeta_{i,j}, where ζi,js\zeta_{i,j}s are mean zero random variables satisfying Var(ζi,j)≤p.\text{Var}(\zeta_{i,j})\leq p. First we note that we can recover the two communities from the eigenvectors of the 2n×2n2n\times 2n matrix Yˉ:=(yˉi,j)=pϵI+p(1−2ϵ)W.\bar{Y}:=(\bar{y}_{i,j})=p\epsilon I+p(1-2\epsilon)W. Yˉ\bar{Y} is a rank 22 matrix with eigenvalues pnpn and p(1−2ϵ)np(1-2\epsilon)n, with the corresponding eigenvectors v1=(1,1,....,1)\boldsymbol{\mathit{v}}_{1}=(1,1,....,1) and v2=(1,...,1,−1,...,−1).\boldsymbol{\mathit{v}}_{2}=(1,...,1,-1,...,-1). if we can find v2\boldsymbol{\mathit{v}}_{2}, we can identify the two blocks. Let Y=(yi,j)Y=(y_{i,j}) and E=(ζi,j)E=(\zeta_{i,j}) be 2n×2n2n\times 2n matrices. Algorithm 10 (which is essentially same as algorithm 2) which takes as input the adjacency matrix YY and the edge probability pp achieves this when np≥C2(1−2ϵ)2.np\geq\frac{C_{2}}{(1-2\epsilon)^{2}}. More detail appears in appendix C.

References

Appendix A Two communities

Proof of Lemma 3.1: One can prove Lemma 3.1 using a standard argument from random graph theory. Consider a set of vertices X⊂VX\subset V of size ∣X∣=cn|X|=cn, where c<1c<1 is a constant. We first bound the probability that all the vertices in this set have degree greater than 20d20d.

Let us denote the set of edges on XX by E(X)E(X) and the set of edges with exactly one end point in XX by E(X,Xc)E(X,X^{c}). If each degree in XX is at least 20d20d, then a quick consideration reveals that either ∣E(X)∣≥2cnd|E(X)|\geq 2cnd or ∣E(X,Xc)∣≥8cnd|E(X,X^{c})|\geq 8cnd. The expected number of edges μE(X):=E(∣E(X)∣)\mu_{E(X)}:={\boldsymbol{E}}(|E(X)|) satisfies

Let δ1:=2c≤2cndμE(X)\delta_{1}:=\frac{2}{c}\leq\frac{2cnd}{\mu_{E(X)}}, then Chernoff bound (see [AS04] for example) gives

Similarly, the expected number of edges μE(X,Xc)\mu_{E(X,X^{c})} in E(X,Xc)E(X,X^{c}) satisfies

Let δ2:=4≤8cndμE(X,Xc)\delta_{2}:=4\leq\frac{8cnd}{\mu_{E(X,X^{c})}}, then by Chernoff bound

Now, if we substitute c=a−3c=a^{-3} in the above bounds, we get

subsets XX of size ∣X∣=cn|X|=cn. Substituting c=a−3c=a^{-3} again, we get

Proof of Lemma 3.3: We start by proving a simpler result.

Let MM be random symmetric matrix of size nn with zero diagonal whose entries above the diagonal are independent with the following distribution

Let σ2≥C1log⁡nn\sigma^{2}\geq C_{1}\frac{\log n}{n} be a quantity such that pij≤σ2p_{ij}\leq\sigma^{2} for all i,ji,j, where C1C_{1} is a constant. Then with probability 1−o(1)1-o(1), ∥M∥≤C2σn\left\|M\right\|\leq C_{2}\sigma\sqrt{n} for some constant C2>0C_{2}>0.

Let us address Lemma A.1. A weaker bound Cσnlog⁡nC\sigma\sqrt{n\log n} follows easily from Alshwede-Winter type matrix concentration results (see [Tro12]). To prove the claimed bound, we need to be more careful and follow the ϵ\epsilon-net approach by Kahn and Szemeredi for random regular graphs in [FKS89] (see also [AK94, FO05]).

Consider a 12\frac{1}{2}-net N\mathcal{N} of the unit sphere Sn\mathcal{S}^{n}. We can assume ∣N∣≤5n|\mathcal{N}|\leq 5^{n}. It suffices to prove that there exists a constant C2′C^{\prime}_{2} such that with probability 1−o(1)1-o(1), ∣xTMy∣≤C2′σn|\boldsymbol{\mathit{x}}^{T}M\boldsymbol{\mathit{y}}|\leq C^{\prime}_{2}\sigma\sqrt{n} for all x,y∈N\boldsymbol{\mathit{x}},\boldsymbol{\mathit{y}}\in\mathcal{N}.

For two vectors x,y∈N\boldsymbol{\mathit{x}},\boldsymbol{\mathit{y}}\in\mathcal{N}, we follow an argument of Kahn and Szemerédi [FKS89] and call all pairs (i,j)(i,j) such that ∣xiyj∣≤σn|x_{i}y_{j}|\leq\frac{\sigma}{\sqrt{n}} light and all remaining pairs heavy and denote these two classes by LL and HH respectively. We have

We now show that with probability 1−o(1)1-o(1), the last two summands are small in absolute value.

First, let us consider the contribution of light couples. We rewrite X:=∑LxiMi,jyjX:=\sum_{L}x_{i}M_{i,j}y_{j} as ∑(i,j)∈L,i>jMi,jai,j\sum_{(i,j)\in L,i>j}M_{i,j}a_{i,j}, where

By the definition light pairs, ∣ai,j∣≤2σn|a_{i,j}|\leq 2\frac{\sigma}{\sqrt{n}}. Also, since x and y are unit vectors, ∑i,jai,j2≤4\sum_{i,j}a_{i,j}^{2}\leq 4. Therefore, by Bernstein’s bound (see page 36 in [BLM13] for e.g.)

Set t=10σnt=10\sigma\sqrt{n} and use the union bound (combining with the fact that the net has at most 5n5^{n} vectors, we can conclude that with probability at least 1−exp⁡(−3n)1-\exp(-3n), ∣∑LxiMi,jyj∣≤10σ|\sum_{L}x_{i}M_{i,j}y_{j}|\leq 10\sigma.

Next we handle the heavy pairs in HH. Since 1≥∑Hxi2yj21\geq\sum_{H}x_{i}^{2}y_{j}^{2}, the definition of heavy implies that ∑H∣xiyj∣≤nσ\sum_{H}|x_{i}y_{j}|\leq\frac{\sqrt{n}}{\sigma}.

Note that AA defines a graph, say GAG_{A}, such that AA is its adjacency matrix. As pij≤σ2p_{ij}\leq\sigma^{2}, we have ∑Hpij∣xiyj∣≤σ2nσ=σn\sum_{H}p_{ij}|x_{i}y_{j}|\leq\sigma^{2}\frac{\sqrt{n}}{\sigma}=\sigma\sqrt{n}. We use the following lemma to bound the first term.

Let G~=(V~,E~)\widetilde{G}=(\widetilde{V},\widetilde{E}) be any graph whose adjacency matrix is denoted by A~\widetilde{A}, and x,y\boldsymbol{\mathit{x}},\boldsymbol{\mathit{y}} be any two unit vectors. Let d~\widetilde{d} be such that the maximum degree ≤c1d~\leq c_{1}\widetilde{d}. Further, let d~\widetilde{d} satisfy the property that for any two subsets of vertices S,T⊂V~S,T\subset\widetilde{V} one of the following holds for some constants c2c_{2} and c3c_{3}:

then ∑HxiA~i,jyj≤max⁡(16,8c1,32c2,32c3)d~\sum_{H}x_{i}\widetilde{A}_{i,j}y_{j}\leq\max(16,8c_{1},32c_{2},32c_{3})\sqrt{\widetilde{d}}. Here H:={(i,j)∣∣xiyj∣≥d~/nH:=\{(i,j)||x_{i}y_{j}|\geq\sqrt{\widetilde{d}}/n }.

Let d~:=σ2n\widetilde{d}:=\sigma^{2}n. Then with probability 1−o(1)1-o(1), the maximum degree in the graph GAG_{A} is ≤20d~\leq 20\widetilde{d} and for any S,T⊂VS,T\subset V one of the conditions (1.1) or (1.2 ) holds.

The two lemmas above guarantee that with probability 1−o(1)1-o(1), ∣∑HxiAi,jyj∣≤C′σn|\sum_{H}x_{i}A_{i,j}y_{j}|\leq C^{\prime}\sigma\sqrt{n} for some constant C′C^{\prime}.

Proof The bound on the maximum degree follows from the Chernoff bound. We have that

Consider a particular vertex kk and let X=∑iAikX=\sum_{i}A_{ik} be the random variable denoting the number of edges incident on it. We have that

For any l≥4l\geq 4, Chernoff bound (see [AS04]) implies that

Applying this with l=20l=20, and taking a union bound over all the vertices, we can bound the maximum degree by 20σ2n20\sigma^{2}n. Now let S,T⊂VS,T\subset V be any two subsets. Let X:=e(S,T)X:=e(S,T) be the number of edges going between SS and TT. We have EX≤σ2∣S∣∣T∣{\boldsymbol{E}}X\leq\sigma^{2}|S||T|. If ∣T∣≥ne|T|\geq\frac{n}{e}, then since the maximum degree is ≤20σ2n\leq 20\sigma^{2}n, we have e(S,T)≤∣S∣20σ2n≤20eσ2∣S∣∣T∣e(S,T)\leq|S|20\sigma^{2}n\leq 20e\sigma^{2}|S||T|, giving us 1.1 in this case. Therefore, we can assume ∣T∣≤ne|T|\leq\frac{n}{e}. By Chernoff bound, it follows that for any l≥4l\geq 4,

Let l′l^{\prime} be the smallest number such that l′ln⁡(l′)≥21∣T∣σ2∣S∣∣T∣log⁡(n∣T∣)l^{\prime}\ln(l^{\prime})\geq\frac{21|T|}{\sigma^{2}|S||T|}\log\left(\frac{n}{|T|}\right). As in [FO05], if we choose l=max⁡(l′,4)l=\max(l^{\prime},4), we can bound the above probability by exp⁡(−lln⁡(l)σ2∣S∣∣T∣3)(n∣S∣)(n∣T∣)≤1n3\exp\left({-\frac{l\ln(l)\sigma^{2}|S||T|}{3}}\right){n\choose|S|}{n\choose|T|}\leq\frac{1}{n^{3}}. Therefore, by the union bound we get that with probability 1−o(1)1-o(1) for all subsets S,TS,T, and

This implies that one of the conditions 1.1 or 1.2 holds with probability 1−o(1)1-o(1).

Proof of Lemma 3.3: Now we are ready to prove Lemma 3.3 by modifying the previous proof. We again handle the light couples and the heavy couples separately, but need to make a modification to the argument for the light couples.

Since we zero out some rows and columns of MM to obtain M1M_{1}, we first bound the norm of the matrix M0M_{0}, obtained from MM by zeroing out a set SS of rows and the corresponding columns. Next, we take a union bound over all choices of SS. For a fixed SS, lemma A.1 implies that with probability at least 1−exp⁡(−3n)1-\exp(-3n), for all x,y∈N1/2\boldsymbol{\mathit{x}},\boldsymbol{\mathit{y}}\in\mathcal{N}_{1/2}, ∣∑Lxi(M0)ijyj∣≤10σn|\sum_{L}x_{i}(M_{0})_{ij}y_{j}|\leq 10\sigma\sqrt{n}. Since there are at most 2n=exp⁡(nln⁡2)2^{n}=\exp\left(n\ln 2\right) choices for SS, we can apply a union bound to show that with probability at least 1−exp⁡(−(3−ln⁡2)n)1-\exp(-(3-\ln 2)n), ∣∑Lxi(M1)ijyj∣≤10σn|\sum_{L}x_{i}(M_{1})_{ij}y_{j}|\leq 10\sigma\sqrt{n}.

The proof for the heavy couples goes through without any modifications. We just have to verify that the conditions of lemma A.2 are met. Firstly, the adjacency matrix A1A_{1} obtained from M1M_{1} has bounded degree property by the definition of M1M_{1}. Now we note that only for the case of ∣S∣≤∣T∣≥ne|S|\leq|T|\geq\frac{n}{e} did we need that the maximum degree was bounded. So for any ∣S∣≤∣T∣<ne|S|\leq|T|<\frac{n}{e}, the discrepancy properties (1.1) or (1.2) holds for A1A_{1}, since zeroing out rows and columns can only decrease the edge count across sets of vertices. In the case ∣T∣≥ne|T|\geq\frac{n}{e}, like before we can show that (1.1) holds for A1A_{1} since the degrees are bounded. ■\blacksquare

Now, to bound the norm of matrix EE, we just appeal to 3.3. Suppose a>b≥C0a>b\geq C_{0}, for a large enough constant C0C_{0} to be determined later. Since A=Aˉ0+Δ+EA=\bar{A}_{0}+\Delta+E and we have bounded Δ\Delta, it remains to bound ∥E∥\left\|E\right\|. Note that

if i,ji,j belongs to the same community and

if i,ji,j belongs to different communities. Since a>ba>b, for all i,ji,j we have that

A.2 Recovery

Now we focus on the second step in the proof, namely the recovery of the blocks once the angle condition is satisfied.

If sin⁡(∠Wˉ,W)≤c≤14\sin(\angle\bar{W},W)\leq c\leq\frac{1}{4}, then we can find a vector v∈W\boldsymbol{\mathit{v}}\in W such that sin⁡(∠v,v2ˉ)≤2c\sin(\angle\boldsymbol{\mathit{v}},\bar{\boldsymbol{\mathit{v}}_{2}})\leq 2\sqrt{c}.

Proof Let PWˉ,PWP_{\bar{W}},P_{W} be the orthogonal projection operators on to the subspaces Wˉ,W\bar{W},W respectively. From the angle bound for the subspaces, we have that

The vector we want is obtained as follows. We first project vˉ1\bar{\boldsymbol{\mathit{v}}}_{1} on to WW, and then find the unit vector orthogonal to the projection in WW. We will now prove that the vector so obtained satisfies the bound stated in the lemma. Since v1ˉ,vˉ2∈Wˉ\bar{\boldsymbol{\mathit{v}}_{1}},\bar{\boldsymbol{\mathit{v}}}_{2}\in\bar{W}, we have that ∥PWviˉ−vˉi∥2≤c\left\|P_{W}\bar{\boldsymbol{\mathit{v}}_{i}}-\bar{\boldsymbol{\mathit{v}}}_{i}\right\|_{2}\leq c for i=1,2i=1,2. Let us define ui:=PWviˉ\boldsymbol{\mathit{u}}_{i}:=P_{W}\bar{\boldsymbol{\mathit{v}}_{i}} and xi:=ui−vˉi\textbf{x}_{i}:=\boldsymbol{\mathit{u}}_{i}-\bar{\boldsymbol{\mathit{v}}}_{i} (note that ∥xi∥≤c\left\|\textbf{x}_{i}\right\|\leq c) for i=1,2i=1,2. We will now show that the vector v∈W\boldsymbol{\mathit{v}}\in W perpendicular to u1\boldsymbol{\mathit{u}}_{1} is close to vˉ2\bar{\boldsymbol{\mathit{v}}}_{2}. Let u⊥=u2−u1Tu2∥u1∥2u1\boldsymbol{\mathit{u}}_{\perp}=\boldsymbol{\mathit{u}}_{2}-\frac{\boldsymbol{\mathit{u}}_{1}^{T}\boldsymbol{\mathit{u}}_{2}}{\left\|\boldsymbol{\mathit{u}}_{1}\right\|^{2}}\boldsymbol{\mathit{u}}_{1}, it is then clear that ∥u⊥∥≤1\left\|\boldsymbol{\mathit{u}}_{\perp}\right\|\leq 1. Note that ∣u1Tu2∣=∣vˉ1Tx2+vˉ2Tx1+x1Tx2∣≤2c+c2|\boldsymbol{\mathit{u}}_{1}^{T}\boldsymbol{\mathit{u}}_{2}|=|\bar{\boldsymbol{\mathit{v}}}_{1}^{T}\textbf{x}_{2}+\bar{\boldsymbol{\mathit{v}}}_{2}^{T}\textbf{x}_{1}+\textbf{x}_{1}^{T}\textbf{x}_{2}|\leq 2c+c^{2}. We have,

The last inequality holds when c≤14c\leq\frac{1}{4}. Therefore, it holds that for a unit vector v⊥u1\boldsymbol{\mathit{v}}\perp\boldsymbol{\mathit{u}}_{1},

This gives sin⁡(∠v,vˉ2)≤1−(1−2c)2≤2c\sin(\angle\boldsymbol{\mathit{v}},\bar{\boldsymbol{\mathit{v}}}_{2})\leq\sqrt{1-(1-2c)^{2}}\leq 2\sqrt{c}. ■\blacksquare

For any constant c<1c<1, we can choose constants C2C_{2} and C3C_{3} in lemma 3.5 and find a vector v\boldsymbol{\mathit{v}} such that sin⁡(∠vˉ2,v)≤c<1\sin(\angle\bar{\boldsymbol{\mathit{v}}}_{2},\boldsymbol{\mathit{v}})\leq c<1 with probability 1−o(1)1-o(1).

We now can conclude the proof of our theorem using the following deterministic fact.

If sin⁡(∠vˉ2,v)<c≤0.5\sin(\angle\bar{\boldsymbol{\mathit{v}}}_{2},\boldsymbol{\mathit{v}})<c\leq 0.5, then we can identify at least a (1−43c2)(1-\frac{4}{{3}}c^{2}) fraction of vertices from each block correctly.

Proof of Lemma A.6: Let us define two sets of vertices, V1′={i∣v(i)>0}V^{\prime}_{1}=\{i|\boldsymbol{\mathit{v}}(i)>0\} and V2′={i∣v(i)<0}V^{\prime}_{2}=\{i|\boldsymbol{\mathit{v}}(i)<0\}. One of the sets will have less than or equal to n2\frac{n}{2} vertices, let us assume without loss of generality that ∣V1′∣≤n2|V^{\prime}_{1}|\leq\frac{n}{2}. Writing v=c1vˉ2+err\boldsymbol{\mathit{v}}=c_{1}\bar{\boldsymbol{\mathit{v}}}_{2}+\textbf{err}, for a vector err perpendicular to vˉ2\bar{\boldsymbol{\mathit{v}}}_{2} and ∥err∥<c\left\|\textbf{err}\right\|<c. We also have c1>1−c2c_{1}>\sqrt{1-c^{2}}. Since ∥err∥<c\left\|\textbf{err}\right\|<c, not more than c21−c2n\frac{c^{2}}{1-c^{2}}n coordinates of err can be bigger than 1−c2n<c1n\frac{\sqrt{1-c^{2}}}{\sqrt{n}}<\frac{c_{1}}{\sqrt{n}}. Since v=c1vˉ2+err\boldsymbol{\mathit{v}}=c_{1}\bar{\boldsymbol{\mathit{v}}}_{2}+\textbf{err} at least 1−c21−c2>1−43c21-\frac{c^{2}}{1-c^{2}}>1-\frac{4}{3}c^{2} (since c≤0.5c\leq 0.5) fraction of vertices with vˉ2(i)=1n\bar{\boldsymbol{\mathit{v}}}_{2}(i)=\frac{1}{\sqrt{n}} will have v(i)>0\boldsymbol{\mathit{v}}(i)>0. Therefore, we get that there are at least (1−43c2)n(1-\frac{4}{3}c^{2})n vertices belonging to the first block. ■\blacksquare

A.3 Proof of lemma 2.3

We will use the following large deviation result (see page 36 in [BLM13] for e.g.) repeatedly

(Chernoff) If XX is a sum of nn iid indicator random variables with mean at most ρ≤1/2\rho\leq 1/2, then for any t>0t>0

In the Red graph, the edge densities are a/2na/2n and b/2nb/2n, respectively. By Theorem 2.1, there is a constant CC such that if (a−b)2a+b≥C\frac{(a-b)^{2}}{a+b}\geq C then by running Spectral Partition on the Red graph, we obtain, with probability 1−o(1)1-o(1) two sets V1′V_{1}^{\prime} and V2′V_{2}^{\prime}, where

In the rest, we condition on this event, and the event that the maximum Red degree of a vertex is at most log⁡2n\log^{2}n, which occurs with probability 1−o(1)1-o(1).

Now we use the Blue edges. Consider e=(u,v)e=(u,v). If ee is not a red edge, and u∈Vi,v∈V3−iu\in V_{i},v\in V_{3-i}, then ee is a Blue edge with probability

Similarly, if ee is not a Red edge, and u,v∈Viu,v\in V_{i}, then ee is a Blue edge with probability

Thus, for any u∈Vi′∩Viu\in V_{i}^{\prime}\cap V_{i}, the number of its Blue neighbors in V3−i′V_{3-i}^{\prime} is at most

where ξiu\xi_{i}^{u} are iid indicator variables with mean μ\mu and ζju\zeta_{j}^{u} are iid indicator variables with mean τ\tau.

Similarly, for any u∈V1′∩V2u\in V_{1}^{\prime}\cap V_{2}, the number of its Blue neighbors in V2′V_{2}^{\prime} is at least

where d(u)=log⁡2nd(u)=\log^{2}n is the Red degree of uu.

After the correction sub-routine, a vertex uu in the (corrected) set V1′V_{1}^{\prime} is misclassified if

u∈V1′∩V1u\in V_{1}^{\prime}\cap V_{1} and Su≥a+b4S_{u}\geq\frac{a+b}{4}.

u∈V1′∩V2u\in V_{1}^{\prime}\cap V_{2} and Su′≤a+b4S_{u}^{\prime}\leq\frac{a+b}{4}

Let ρ1,ρ2\rho_{1},\rho_{2} be the probability of the above events. Then the number of misclassified vertices in the (corrected) set V1′V_{1}^{\prime} is at most

where Γk\Gamma_{k} are iid indicator random variables with mean ρ1\rho_{1} and Λl\Lambda_{l} are iid indicator random variables with mean ρ2\rho_{2}.

The rest is a simple computation. First we use Chernoff bound to estimate ρ1,ρ2\rho_{1},\rho_{2}. Consider

By (2.4), one can show that 2(0.9nμ+.1nτ)+0.19(a−b)=0.71b+0.29a+o(1)≤a+b22(0.9n\mu+.1n\tau)+0.19(a-b)=0.71b+0.29a+o(1)\leq\frac{a+b}{2}. It follows that

By a similar argument, we obtain the same estimate for ρ2\rho_{2} (the contribution of the term d(u)≤log⁡2nd(u)\leq\log^{2}n is negligible). Thus, we can conclude that

Applying Chernoff’s with t:=0.9nexp⁡(−0.072(a−b)2a+b)t:=0.9n\exp(-0.072\frac{(a-b)^{2}}{a+b}), we conclude that with probability 1−o(1)1-o(1)

This implies that with probability 1−o(1)1-o(1),

By symmetry, the same conclusion holds for ∣V2′\V2∣|V_{2}^{\prime}\backslash V_{2}|.

This shows that the output V1′,V2′V_{1}^{\prime},V_{2}^{\prime} form a γ\gamma-correct partition, with γ\gamma satisfying

Proof of Corollary 1.4: Notice that in the analysis of Spectral Partition, we only require (a−b)2a+b≥C\frac{(a-b)^{2}}{a+b}\geq C for a sufficiently large constant CC (so γ\gamma does not appear in the bound). In the analysis of Correction, we require (a−b)2a+b≥13.89log⁡2γ,\frac{(a-b)^{2}}{a+b}\geq 13.89\log\frac{2}{\gamma}, as shown above. If γ<ϵ\gamma<\epsilon for a sufficiently small ϵ\epsilon, this assumption implies the first. Thus, Corollary holds with assumption (a−b)2a+b≥13.89log⁡2γ\frac{(a-b)^{2}}{a+b}\geq 13.89\log\frac{2}{\gamma}.

The constant 13.8913.89 comes from the fact that the partition obtained from Spectral Partition is .1.1-correct. If one improves upon .1.1, one improves 13.8913.89. In particular, there is a constant δ\delta such that if the first partition is δ\delta-correct, then one can improve 13.8913.89 to 8.18.1 (or any constant larger than 88–which is the limit of the method, for that matter).

Appendix B Multiple communities

We say the splitting is ‘perfect’ if we have ∣Y1∩Vi∣=n4k=∣Y2∩Vi∣|Y_{1}\cap V_{i}|=\frac{n}{4k}=|Y_{2}\cap V_{i}| for i=1,..,k.i=1,..,k. We will assume the splittings are perfect in the proofs for a simpler exposition. Though the splitting will almost always not be perfect, and there will just be a o(1)o(1) error term that we have to carry throughout to be precise. The bounds we give will all be still be essentially the same.

To analyze this algorithm, we use the machinery developed so far combined with some ideas from [Vu14]. We consider the stochastic block model with kk blocks of size nn, where kk is a fixed constant as nn grows. This is a graph V=V1∪V2∪...∪VkV=V_{1}\cup V_{2}\cup...\cup V_{k} where each ∣Vi∣=n/k|V_{i}|=n/k and for u∈Vi,v∈Vju\in V_{i},v\in V_{j}:

where Aˉ,A1ˉ\bar{A},\bar{A_{1}} are the expected matrices, and Δ\Delta is matrix containing the deleted rows and columns. Let Wˉ\bar{W} be the span of the kk left singular vectors of Aˉ1\bar{A}_{1} We can bound ∥Δ∥≤1\left\|\Delta\right\|\leq 1 by bounding the number of high degree vertices as we did before. EE is given by

if u,v∈Vi∩Y1 for some i∈1,..,ku,v\in V_{i}\cap Y_{1}\text{ for some }i\in{1,..,k} and

 if u∈Vi∩Y1 and v∈Vj∩Y1 for i≠j.\text{ if }u\in V_{i}\cap Y_{1}\text{ and }v\in V_{j}\cap Y_{1}\text{ for }i\neq j. Since σ2:=an≥Var(Eu,v)\sigma^{2}:=\frac{a}{n}\geq\text{Var}(E_{u,v}), corollary 3.3 applied to Aˉ1−A\bar{A}_{1}-A gives the following result.

There exists a constant CC such that ∥E∥≤Ca+b\left\|E\right\|\leq C\sqrt{a+b} with probability 1−o(1)1-o(1).

It is not hard to show that the rank of the matrix A1ˉ\bar{A_{1}} is kk, and its least non-trivial singular value is σk(Aˉ1)=a−bk.\sigma_{k}(\bar{A}_{1})=\frac{a-b}{k}. This fact, combined with lemma B.1 and an application of Davis-Kahan bound gives

For any c>0c>0, there exists constants C1,C2C_{1},C_{2} such that if (a−b)>C1k2a(a-b)>C_{1}k^{2}a and a>b≥C2a>b\geq C_{2}, then sin⁡∠(Wˉ,W)≤c\sin\angle(\bar{W},W)\leq c with probability 1−o(1)1-o(1).

We pick m=2log⁡nm=2\log n indices uniformly randomly from Y2Y_{2} and project the corresponding columns from the matrix BB. Let aˉi1,...,aˉim\bar{\boldsymbol{\mathit{a}}}_{i_{1}},...,\bar{\boldsymbol{\mathit{a}}}_{i_{m}} and ei1,...,eim\boldsymbol{\mathit{e}}_{i_{1}},...,\boldsymbol{\mathit{e}}_{i_{m}} be the corresponding columns of Aˉ1\bar{A}_{1} and EE, respectively. For a subspace W0W_{0}, let PW0P_{W_{0}} be the projection on to the space W0W_{0}. Note that if vertex i∈Vni∩Y2i\in V_{n_{i}}\cap Y_{2}, then

We let the vector aˉ\bar{\boldsymbol{\mathit{a}}} be

and bi=aˉi−aˉ\boldsymbol{\mathit{b}}_{i}=\bar{\boldsymbol{\mathit{a}}}_{i}-\bar{\boldsymbol{\mathit{a}}}. We therefore have

Since both aˉi,aˉ\bar{\boldsymbol{\mathit{a}}}_{i},\bar{\boldsymbol{\mathit{a}}} are in the column span of Aˉ1\bar{A}_{1}, we have for all ii

We also note that ∥bi∥=(a−b)22n\left\|\boldsymbol{\mathit{b}}_{i}\right\|=\frac{(a-b)}{2\sqrt{2n}}. Therefore, if we can recover bi{\boldsymbol{\mathit{b}}}_{i}, we can identify the set Vni∩ZV_{n_{i}}\cap Z. We now argue that we can recover bi\boldsymbol{\mathit{b}}_{i} approximately. Since ai−aˉ=bi+ei\boldsymbol{\mathit{a}}_{i}-\bar{\boldsymbol{\mathit{a}}}={\boldsymbol{\mathit{b}}}_{i}+\boldsymbol{\mathit{e}}_{i}, we have

where erri=(PW−PWˉ)bi.\boldsymbol{\mathit{err}}_{i}=\left(P_{W}-P_{\bar{W}}\right){\boldsymbol{\mathit{b}}}_{i}. Since sin⁡∠(Wˉ,W)≤δ1\sin\angle(\bar{W},W)\leq\delta_{1}, we have for any unit vector v\boldsymbol{\mathit{v}}, ∥PWv−PWˉv∥≤δ1,\left\|P_{W}\boldsymbol{\mathit{v}}-P_{\bar{W}}\boldsymbol{\mathit{v}}\right\|\leq\delta_{1}, which in turn implies for all ii

By a simple application of Chernoff bound, we have

With probability at least 1−o(1)1-o(1), at least m/2m/2 of the vectors ei1,...,eim\boldsymbol{\mathit{e}}_{i_{1}},...,\boldsymbol{\mathit{e}}_{i_{m}} satisfy

Let m1≥m/2m_{1}\geq m/2 denote the number of such vectors, hence referred to as good vectors. To avoid introducing extra notation, let us say ei1,..,eim1\boldsymbol{\mathit{e}}_{i_{1}},..,\boldsymbol{\mathit{e}}_{i_{m_{1}}} are the good vectors and the corresponding indices as good indices. Note that σ≤an\sigma\leq\frac{\sqrt{a}}{\sqrt{n}}. For any δ2>0\delta_{2}>0, there exists a big enough constant C1C_{1} such that if (a−b)>C1ka(a-b)>C_{1}\sqrt{ka}, we have that 2σk1/2≤δ2∥bij∥2\sigma k^{1/2}\leq\delta_{2}\left\|{\boldsymbol{\mathit{b}}_{i_{j}}}\right\| whenever iji_{j} is good. Therefore

Given any δ>0\delta>0, there exists constants C1,C2C_{1},C_{2} such that the following holds. If (a−b)>C1ka(a-b)>C_{1}\sqrt{ka} and a≥b≥C2a\geq b\geq C_{2}, then for all good indices iji_{j}, it holds that ∥PW(aij−aˉ)−bij∥≤δ∥bij∥\left\|P_{W}(\boldsymbol{\mathit{a}}_{i_{j}}-\bar{\boldsymbol{\mathit{a}}})-\boldsymbol{\mathit{b}}_{i_{j}}\right\|\leq\delta\left\|{\boldsymbol{\mathit{b}}_{i_{j}}}\right\|.

Let Uij′U_{i_{j}}^{\prime} be the top n/2kn/2k coordinates of the projected vector ∥PW(aij−aˉ)∥\left\|P_{W}(\boldsymbol{\mathit{a}}_{i_{j}}-\bar{\boldsymbol{\mathit{a}}})\right\|. If we choose the constants C1,C2C_{1},C_{2} appropriately, then for every good index iji_{j}, UijU_{i_{j}} contains 0.950.95 fraction of the vertices in Vnij∩ZV_{n_{i_{j}}}\cap Z.

Lemma B.5 then implies that when we throw away half of the sets U1′,...,Um′U_{1}^{\prime},...,U_{m}^{\prime} with the least Blue edge densities, then each of the remaining sets intersects some Vni∩ZV_{n_{i}}\cap Z in 0.90.9 fraction of the vertices.

There exists a constant c>0c>0 such that the following holds. Suppose we are given a set X⊂ZX\subset Z of size ∣X∣=n/2k|X|=n/2k. If for all i∈1,...,ki\in{1,...,k}

then with probability at least 1−e−cn1-e^{-cn} the number of Blue edges in the graph induced by XX is at most an/16k−0.09(a−b)n/16kan/16k-0.09(a-b)n/16k. Conversely, if

for some i∈1,...,ki\in{1,...,k}, then with with probability at least 1−e−cn1-e^{-cn} the number of Blue edges in the graph induced by XX is at least an/16k−0.09(a−b)n/16k.an/16k-0.09(a-b)n/16k.

Let e(X)e(X) denote the number of Blue edges in the graph induced by vertices in XX. Suppose ∣X∩Vi∣≤0.9∣X∣|X\cap V_{i}|\leq 0.9|X| for all i∈1,...,ki\in{1,...,k}. Then

To bound the probability that Ee(X)≥an/16k−.045(a−b)n/8k{\boldsymbol{E}}e(X)\geq an/16k-.045(a-b)n/8k, we can use Chernoff bound. Let δ=0.045(a−b)n/8kan/16k−0.09(a−b)n/8k.\delta=\frac{0.045(a-b)n/8k}{an/16k-0.09(a-b)n/8k}.

Similarly, suppose ∣X∩Vi∣≥0.95∣X∣|X\cap V_{i}|\geq 0.95|X| for some i∈1,...,ki\in{1,...,k}. Then

To bound the probability that Ee(X)≤an/16k−.045(a−b)n/8k{\boldsymbol{E}}e(X)\leq an/16k-.045(a-b)n/8k, we can use Chernoff bound. Let δ=0.04(a−b)n/16kan/16k−0.05(a−b)n/16k.\delta=\frac{0.04(a-b)n/16k}{an/16k-0.05(a-b)n/16k}.

B.2 Proof of lemma 4.2

For notional convenience, let Ui:=Z∩ViU_{i}:=Z\cap V_{i}. We will use the following large deviation result (see page 36 in [BLM13] for e.g.) repeatedly

(Chernoff) If XX is a sum of nn iid indicator random variables with mean at most ρ≤1/2\rho\leq 1/2, then for any t>0t>0

By Theorem step1, there is a constant CC such that if (a−b)2a+b≥C\frac{(a-b)^{2}}{a+b}\geq C then by running Spectral Partition on the Red graph, we obtain, with probability 1−o(1)1-o(1), sets U1′,...,Uk′U_{1}^{\prime},...,U_{k}^{\prime}, where

In the rest, we condition on this event. The probability we will talk about in this section is based on the edges that go between vertices in ZZ.

Now we use the edges that go between vertices in ZZ. Consider e=(u,v)e=(u,v). If u∈Ui,v∈Uju\in U_{i},v\in U_{j} with i≠ji\neq j, then ee is a Red edge with probability

Similarly, if u,v∈Uiu,v\in U_{i}, then ee is a Red edge with probability

For any u∈U1u\in U_{1}, the number of its neighbors in Uj′U_{j}^{\prime} is at most

Similarly, for any u∈U1u\in U_{1}, the number of its neighbors in U1′U_{1}^{\prime} is at least

After the correction sub-routine, if a vertex u∈U1u\in U_{1} is mislabeled then one of the following holds

S1j′≥a+b8S_{1j}^{\prime}\geq\frac{a+b}{8} for some j≠1j\neq 1

By an application of Chernoff bound, probability that S11≤a+b8S_{11}\leq\frac{a+b}{8} can be bounded by ρ1=exp⁡(−0.04(a−b)2k(a+b)).\rho_{1}=\exp(-0.04\frac{(a-b)^{2}}{k(a+b)}). Similarly, for any fixed j≠1j\neq 1, S1j′≥a+b8S_{1j}^{\prime}\geq\frac{a+b}{8} is bounded by ρ1.\rho_{1}. Therefore, the probability that any of these happens is bounded by kρ1k\rho_{1}. Therefore, number of vertices in U1U_{1} that will be misclassified after the correction step is at most

where Γk\Gamma_{k} are iid indicator random variables with mean ρ1\rho_{1}.

Applying Chernoff’s with t:=n2exp⁡(−0.04(a−b)2k(a+b))t:=\frac{n}{2}\exp(-0.04\frac{(a-b)^{2}}{k(a+b)}), we conclude that with probability 1−o(1)1-o(1)

This implies that with probability 1−o(1)1-o(1), number of mislabeled vertices in U1U_{1} is

Therefore, by a union bound over all ii, we have that with probability 1−o(1)1-o(1) the output U1′,U2′,...,Uk′U_{1}^{\prime},U_{2}^{\prime},...,U_{k}^{\prime} after the correction step form a γ\gamma-correct partition, with γ\gamma satisfying

B.3 Proof of lemma 4.3

In this section, we show how we can merge Vi∩YV_{i}\cap Y with Vi∩ZV_{i}\cap Z based on the Blue edges that go in between vertices in YY and ZZ. We can assume that that we are given a γ\gamma correct partition U1′,..,Uk′U^{\prime}_{1},..,U^{\prime}_{k} of U1,...,UkU_{1},...,U_{k}. Now we label the vertices in YY according to their degrees to Ui′U^{\prime}_{i} as given in the Merge routine. Let us assume γ≤0.1\gamma\leq 0.1. In the rest, we condition on this event, and the event that the maximum Red degree of a vertex is at most log⁡2n\log^{2}n, which occurs with probability 1−o(1)1-o(1).

Now we use the Blue edges. Consider e=(u,v)e=(u,v). If ee is not a red edge, and u∈Vi∩Y,v∈Vj∩Zu\in V_{i}\cap Y,v\in V_{j}\cap Z, then ee is a Blue edge with probability

Similarly, if ee is not a Red edge, and u∈Vi∩Z,v∈Vi∩Zu\in V_{i}\cap Z,v\in V_{i}\cap Z, then ee is a Blue edge with probability

Thus, for any u∈Y∩Viu\in Y\cap V_{i}, the number of Blue neighbors in Uj′U_{j}^{\prime} is at most

where ξiu\xi_{i}^{u} are iid indicator variables with mean μ\mu and ζju\zeta_{j}^{u} are iid indicator variables with mean τ\tau.

Similarly, for any u∈Y∩Viu\in Y\cap V_{i}, the number of Blue neighbors in Ui′U_{i}^{\prime} is at least

After the correction sub-routine, if a vertex uu in Y∩ViY\cap V_{i} is misclassified then one of the following holds

Let ρ\rho be the probability that at least one of the above events happens. Then the number of mislabeled vertices in the Y2Y_{2} is at most

where Γk\Gamma_{k} are iid indicator random variables with mean ρ\rho. First we use Chernoff bound to estimate ρ\rho. Consider

By a similar argument, we get the same bound for

Therefore, by a union bound, we have that

Applying Chernoff’s with t:=n2kexp⁡(−0.0324(a−b)2k(a+b))t:=\frac{n}{2}k\exp\left(-0.0324\frac{(a-b)^{2}}{k(a+b)}\right), we conclude that with probability 1−o(1)1-o(1)

This implies that with probability 1−o(1)1-o(1), the number of mislabeled vertices in YY is bounded by

We have, with probability 1−o(1)1-o(1), γ\gamma correct partition of the vertices in YY, with γ\gamma satisfying

Appendix C Censor Block Model

All we have to do now is to bound ∥E∥\left\|E\right\|. Let σ2:=p≥Var(ζi,j)\sigma^{2}:=p\geq\text{Var}(\zeta_{i,j}) for all (i,j)(i,j). Y0{\mathit{Y}}_{0} is obtained by zeroing out rows and columns of YY of high degree. We then have the following lemma. The proof is essentially the same as corollary 3.4, so we skip the details.

0<ϵ0≤ϵ<120<\epsilon_{0}\leq\epsilon<\frac{1}{2}. Then there exist constants C,C1C,C_{1} such that if p≥Cnp\geq\frac{C}{n}, then with probability 1−o(1)1-o(1), ∥Y0−Yˉ∥≤C1σn=C1np\left\|Y_{0}-\bar{Y}\right\|\leq C_{1}\sigma\sqrt{n}=C_{1}\sqrt{np}.

Since the second eigenvalue of Yˉ\bar{Y} is p(1−2ϵ)np(1-2\epsilon)n, to make the angle between the eigenspace spanned by the two eigenvectors corresponding to the top two eigenvalues small, we need to assume

Appendix D Proof of Lemma A.2

This proof is essentially same as that in [FO05]. Let us first define the following sets. For γk:=2k\gamma_{k}:=2^{k},

Further, we use the notation μi,j:=sitjdn\mu_{i,j}:=s_{i}t_{j}\frac{d}{n} and λi,j:=e(Si,Tj)/μi,j.\lambda_{i,j}:=e(S_{i},T_{j})/\mu_{i,j}. We then have

In the last line, we have used the following notation αi:=siγi2n,βj:=tjγj2n,σi,j:=λi,jdγiγj.\alpha_{i}:=s_{i}\frac{\gamma_{i}^{2}}{n},\beta_{j}:=t_{j}\frac{\gamma_{j}^{2}}{n},\sigma_{i,j}:=\frac{\lambda_{i,j}\sqrt{d}}{\gamma_{i}\gamma_{j}}. In this notation, we can write 1.2 as follows:

Now we bound ∑i,j:γiγj≥dαiβjσi,j\sum_{i,j:\gamma_{i}\gamma_{j}\geq\sqrt{d}}\alpha_{i}\beta_{j}\sigma_{i,j} by a constant. We note that ∑iαi≤4\sum_{i}\alpha_{i}\leq 4 and ∑iβi≤4.\sum_{i}\beta_{i}\leq 4. We now consider 6 cases.

λij≤c2:\lambda_{ij}\leq c_{2}: Since γiγj≥d\gamma_{i}\gamma_{j}\geq\sqrt{d} we have in this case σi,j≤c2.\sigma_{i,j}\leq c_{2}. Therefore,

γi>dγj:\gamma_{i}>\sqrt{d}\gamma_{j}: Since the maximum degree is ≤c1d\leq c_{1}d, we have that λi,j≤c1n/tj\lambda_{i,j}\leq c_{1}n/t_{j}. Therefore,

We now assume that we are not in cases 1−31-3. Therefore, we can assume that 4.5 holds. We consider the following sub cases.

log⁡λi,j>(1/4)[2log⁡γj+log⁡(1/βj)]:\log\lambda_{i,j}>(1/4)[2\log\gamma_{j}+\log(1/\beta_{j})]: 4.5 implies that σi,jαi≤4c3(γi/γjd)\sigma_{i,j}\alpha_{i}\leq 4c_{3}(\gamma_{i}/\gamma_{j}\sqrt{d}). Therefore,

Above we made use of the fact that we are not in case 33, and that ∑i:γiγj≥d4c3γiγjd\sum_{i:\gamma_{i}\gamma_{j}\geq\sqrt{d}}4c_{3}\frac{\gamma_{i}}{\gamma_{j}\sqrt{d}} is a geometric sum.

2log⁡γj≥log⁡(1/βj):2\log\gamma_{j}\geq\log(1/\beta_{j}): We can assume we are not in case (a), and hence λi,j≤γj\lambda_{i,j}\leq\gamma_{j}. Combined with the fact that we are not in case 11, we have that γi≤d\gamma_{i}\leq\sqrt{d}. Since we are not in case 22, we can assume that log⁡λi,j≥1\log\lambda_{i,j}\geq 1 and hence σi,jαi≤c3γiγjd4log⁡γj.\sigma_{i,j}\alpha_{i}\leq c_{3}\frac{\gamma_{i}}{\gamma_{j}\sqrt{d}}4\log\gamma_{j}. Therefore,

2log⁡γj≤log⁡1/βj:2\log\gamma_{j}\leq\log 1/\beta_{j}: Since we are not in (a)(a) we have log⁡λi,j≤log⁡1βj\log\lambda_{i,j}\leq\log\frac{1}{\beta_{j}}. It follows that