Information-theoretic thresholds for community detection in sparse networks
Jess Banks, Cristopher Moore
Introduction
The Stochastic Block Model (SBM) is a random graph ensemble with planted community structure, where the probability of a connection between each pair of vertices is a function only of the groups or communities to which they belong. It was originally invented in sociology [HLL83]; it was reinvented in physics and mathematics under the name “inhomogeneous random graph” [Söd02, BJR07], and in computer science as the planted partition problem (e.g. [McS01]).
Given the current interest in network science, the block model and its variants have become popular parametric models for the detection of community structure. An interesting set of questions arise when we ask to what extent the communities, i.e., the labels describing the vertices’ group memberships, can be recovered from the graph it generates. In the case where the average degree grows as , if the structure is sufficiently strong then the underlying communities can be recovered [BC09], and the threshold at which this becomes possible has recently been determined [ABH16, AS15b, ABKK15]. Above this threshold, efficient algorithms exist that recover the communities exactly, labeling every vertex correctly with high probability; below this threshold, exact recovery is information-theoretically impossible.
In the sparse case where the average degree is , finding the communities is more difficult, since we effectively have only a constant amount of information about each vertex. In this regime, our goal is to label the vertices better than chance, i.e., to find a partition with nonzero correlation or mutual information with the ground truth. This is sometimes called the detection problem to distinguish it from exact recovery. A set of phase transitions for this problem was conjectured in the statistical physics literature based on tools from spin glass theory. Some of these conjectures have been made rigorous, while others remain as tantalizing open problems.
It is convenient to parametrize the strength of the community structure as
As we will see below, this is the second eigenvalue of a transition matrix describing how labels are “transmitted” between neighboring vertices. It lies in the range
The conjecture of [DKMZ11b, DKMZ11a] is that efficient algorithms exist if and only if we are above the threshold
This is known in information theory as the Kesten-Stigum threshold [KS66b, KS66a], and in physics as the Almeida-Thouless line [dAT78].
Above the Kesten-Stigum threshold, [DKMZ11b, DKMZ11a] claimed that community detection is computationally easy, and moreover that belief propagation—also known in statistical physics as the cavity method—is asymptotically optimal in that it maximizes the fraction of vertices labeled correctly (up to a permutation of the groups). For , this was proved in [MNS14], and very recently, a type of belief propagation was shown to perform better than chance for all [AS15a]. In addition, a spectral clustering algorithm based on the non-backtracking operator was conjectured to succeed all the way down to the Kesten-Stigum threshold [KMM+13], and this was proved in [BLM15].
What happens below the Kesten-Stigum threshold is more complicated. The authors of [DKMZ11b, DKMZ11a] conjectured that for sufficiently small , community detection is information-theoretically impossible when . This was proved in the case by [MNS12], who established two separate results. First, they showed that the ensemble of graphs produced by the stochastic block model becomes contiguous with that produced by Erdős-Rényi graphs of the same average degree, making it impossible even to tell whether or not communities exist with high probability. Secondly, by relating community detection to the robust reconstruction problem on trees [JM04], they showed that for most pairs of vertices the probability, given the graph, that they are in the same group asymptotically approaches . Thus it is impossible, even if we could magically compute the true posterior probability distribution, to label the vertices better than chance.
More generally, planted ensembles where some combinatorial structure is built into the graph, and un-planted ensembles such as Erdős-Rényi graphs where these structures occur by chance, become distinguishable at a phase transition called condensation [KMRT+07]. Below this point, the two ensembles are contiguous; above it, the Gibbs distribution in the planted model is dominated by a cluster of states surrounding the planted state. For instance, in random constraint satisfaction problems, the uniform distribution on solutions becomes dominated by those near the planted one; in our setting, the posterior distribution of partitions becomes dominated by those close to the ground truth (although, in the sparse case, with a Hamming distance that is still linear in ). Thus the condensation threshold is also the threshold for information-theoretic community detection. Below it, even optimal Bayesian inference will do no better than chance, while above it, typical partitions chosen from the posterior will be fairly accurate (though finding these typical partitions might take exponential time).
We note that some previous results show that community detection is possible below the Kesten-Stigum threshold when the sizes of the groups are unequal [NN14, ZMN16]. In addition, even a vanishing amount of initial information can make community detection possible if the number of groups grows with the size of the network [KMS14].
2. Our contribution
We give rigorous upper and lower bounds on the information-theoretic threshold for community detection, or equivalently the condensation threshold, bounding the critical average degree as a function of and . First, we use a first-moment argument to show that if
then, with high probability, the only partitions that are as good as the planted one—that is, which have the expected number of edges within and between groups—have a nonzero correlation with the planted one. As a result, there is a simple exponential time algorithm for labeling the vertices better than chance: simply test all partitions, and output the first good one.
We then show that community detection is information-theoretically impossible if
Here we rely heavily on a recent preprint [NN14], who gave a beautiful generalization of the argument of [MNS12]. Using the small subgraph conditioning method, they showed that the block model and the Erdős-Rényi graph are contiguous whenever the second moment of the ratio between their probabilities—roughly speaking, the number of good partitions in an Erdős-Rényi graph—is appropriately bounded. They also show that this second moment bound implies non-detectability, in that the posterior distribution on any finite collection of vertices is asymptotically uniform. This reduces the proof of contiguity and non-detectability to a second moment argument, which in turn consists of maximizing a certain function of doubly stochastic matrices.
Happily, this latter problem was largely solved in [AN05], who used the second moment method to give nearly-tight lower bounds on the -colorability threshold. Indeed, our bound (5) corresponds to their lower bound on -colorability for where . Intuitively, is the degree of a random graph in which the correlations between vertices in the -colorability problem are as strong as those in the block model with average degree and eigenvalue .
In the limit , corresponding to graph coloring, this ratio is , inheriting the tightness of previous upper and lower bounds on -colorability. For other values of , our bounds match up to a multiplicative constant. In particular, when is constant and is small, they are about a factor of apart:
When is constant and is large, we have
so that in the limit of large detectability is possible below the Kesten-Stigum threshold whenever .
Our model, notation, and results
We have vertices . In the usual version of the block model, we start by choosing a partition uniformly from the possibilities. We independently include each pair of vertices in the edge set with probability , where is a matrix. As in much other work on community detection, we focus on the special case
We will often find it convenient to assume that the partition is balanced, i.e., that is divisible by and that there are vertices in each group . Of course, this is true within an error term with high probability.
Recalling that the expected average degree is
we will find it useful to define a doubly stochastic matrix,
We can think of as a transition matrix in a Markov random field. All else equal, if and , then is the probability that . Notice that
is ’s second eigenvalue. We can think of as the probability that information is transmitted from to : with probability we copy ’s group label to , and with probability we choose ’s group uniformly. The parameter interpolates between the case where all edges are within-group, to an Erdős-Rényi graph where and edges are placed uniformly at random, to where edges are more likely between groups than within them. This gives a useful reparametrization of the model in terms of and , where
The community detection problem is to recover the planted partition from the graph . We define the degree to which an algorithm succeeds as follows. Given another partition , we define the overlap matrix
Since is balanced, this is the fraction of group (according to ) that is in group (according to . If is balanced as well, then is doubly stochastic. The overlap is then the fraction of vertices labeled correctly, maximized over all permutations of the groups,
For , community detection is information-theoretically possible below the Kesten-Stigum threshold for sufficiently negative. For , there exist positive values of for which this holds as well.
The Upper Bound
Let be a graph generated by . We condition on the high-probability event that it has edges with with
in which case is chosen from . Since is sparse, we can think of its edges as chosen uniformly with replacement from the possible ordered pairs. With probability the resulting graph is simple, with no self-loops or multiple edges, and hence uniform in . Thus any event that holds with high probability in the resulting model holds with high probability in as well. Call this model .
For a given balanced partition , the probability in that a given edge has its endpoints in the same group is . Thus, up to subexponential terms resulting from summing over the possible values of the error terms, the probability that a given is good is
Now, by the union bound, since there are at most balanced partitions, the probability that any good partitions exist is exponentially small whenever the function in (14) is less than . This tells us that the block model is distinguishable from an Erdős-Rényi graph whenever
2. All good partitions are accurate
where is the entropy function. Therefore, an exponential-time algorithm exists that w.h.p. achieves overlap at least .
In analogy with the model defined above, we consider another version of the block model where the edges are chosen independently as follows. For each edge, we first choose an ordered pair of groups with probability proportional to , i.e., with probability where is the doubly stochastic matrix defined in (7). We then choose the endpoints and uniformly from and (with replacement if ). Call this model . In the sparse case , the resulting graph is simple with probability , in which event it is generated by . Thus any event that holds with high probability in holds with high probability in as well.
Now fix a balanced partition , and let denote the probability that an edge chosen in this way is within-group with respect to . Recall that the overlap matrix is the probability that if is chosen uniformly from those with . Up to terms, the events that and are independent. Thus in the limit ,
where denotes the Frobenius norm,
Since is doubly stochastic, Birkhoff’s theorem tells us it can be expressed as a convex combination of permutation matrices,
For fixed , the number of balanced partitions with overlap matrix is the number of ways to partition each group so that there are vertices in :
where is the average entropy of the rows of ,
By the union bound, the probability that there are any good partitions with overlap matrix is exponentially small whenever the sum of and the right-hand side of (3.2) is negative. For a fixed overlap , maximized by the permutation , the entropy is maximized when
Combining the bounds (3.2) and (19), and requiring that their sum is at least zero, completes the proof. ∎
3. Detection below the Kesten-Stigum bound
The Lower Bound
We apply the following theorem of Neeman and Netrapalli, translated into our notation.
In contrast, the probability of in the Erdős-Rényi model is
We can rewrite this expression in a helpful way. For each pair of partitions , let us replace the product over vertices with a product over groups; let us assume that and are both nearly balanced, so that is doubly-stochastic. Since there are vertices in , we have
where the factor of avoids double-counting of the unordered pairs .
2. Maximizing ΦΦ\Phi
Achlioptas and Naor, in the process of proving a lower bound on the -coloring threshold for Erdős-Rényi graphs, develop substantial machinery for optimizing -like functions over the Birkhoff polytope of doubly stochastic matrices [AN05]. Specifically, they relax the problem to maximizing over all row-stochastic matrices, and show that the maximizer is then a mixture of uniform rows and rows where all but one of the entries are identical. Although their bound is quite general, we quote here their results for the entropy. (Note that their definition of and ours differ by a factor of .)
[AN05, Theorem 9] Let be doubly stochastic with . Then
With this result in hand and using , we know that for all with ,
for . Achlioptas and Naor determined the value of for which the right-hand side is less than or equal to zero for all in this interval and all .
[AN05, Proof of Theorem 7] When ,
for all and all .
Our lower bound is an immediate corollary of this lemma. Substituting and solving for gives
As we commented in §1, this corresponds to the lower bound on the -colorability threshold of where , scaling the eigenvalue on each edge to from its value for -cooring. This fits with the Kesten-Stigum threshold as well, since the amount of information (appropriately defined) transmitted along each edge is proportional to [JM04].
Conclusions
Physically, we believe this occurs because there is a free energy barrier between a “paramagnetic” phase of partitions which are essentially random, and a “ferromagnetic” or “retrieval” phase which is correlated with the planted partition [DKMZ11b, DKMZ11a, ZM14]. Proving this seems within reach: rigorous results have been obtained in random constraint satisfaction problems [AC08, CE15] showing that solutions become clustered with Hamming distance and energy barriers between them, and that Markov chain Monte Carlo algorithms take exponential time to travel from one cluster to another. The goal here would be to show in a planted model that Monte Carlo takes exponential time to find the cluster corresponding to the planted solution.
Acknowledgments.
This work was supported by the ARO under contract W911NF-12-R-0012 and the John Templeton Foundation. We are grateful to Emmanuel Abbe, Afonso Bandeira, Amin Coja-Oghlan, Elchanan Mossel, and Joe Neeman for helpful discussions.