Stochastic Block Models and Reconstruction
Elchanan Mossel, Joe Neeman, Allan Sly
Introduction
The clustering problem in its general form is, given a (possibly weighted) graph, to divide its vertices into several strongly connected classes with relatively weak cross-class connections. This problem is fundamental in modern statistics, machine learning and data mining, but its applications range from population genetics , where it is used to find genetically similar sub-populations, to image processing , where it can be used to segment images or to group similar images, to the study of social networks , where it is used to find strongly connected groups of like-minded people.
The algorithms used for clustering are nearly as diverse as their applications. On one side are the hierarchical clustering algorithms which build a hierarchy of larger and larger communities, by either recursive aggregation or division. On the other hand model-based statistical methods, including the celebrated EM algorithm , are used to fit cluster-exhibiting statistical models to the data. A third group of methods work by optimizing some sort of cost function, for example by finding a minimum cut or by maximizing the Girvan-Newman modularity .
Despite the variety of available clustering algorithms, the theory of clustering contains some fascinating and fundamental algorithmic challenges. For example, the “min-bisection” problem – which asks for the smallest graph cut dividing a graph into two equal-sized pieces – is well-known to be NP-hard . Going back to the 1980s, there has been much study of the average-case complexity of the min-bisection problem. For instance, the min-bisection problem is much easier if the minimum bisection is substantially smaller than most other bisections. This has led to interest in random graph models for which a typical sample has exactly one good minimum bisection. Perhaps the simplest such model is the “planted bisection” model, which is similar to the Erdös-Renyi model.
If , the planted partition model is just an Erdös-Renyi model, but if then a typical graph will have two well-defined clusters. Actually, the literature on the min-bisection problem usually assumes that the two classes have exactly the same size (instead of a random size), but this modification makes almost no difference in the context of this work.
The planted bisection model was not the earliest model to be studied in the context of min-bisection – Bui et al. and Boppana considered graphs chosen uniformly at random from all graphs with a given number of edges and a small minimum bisection. Dyer and Frieze were the first to study the min-bisection problem on the planted bisection model; they showed that if are fixed as then the minimum bisection is the one that separates the two classes, and it can be found in expected time.
The result of Dyer and Frieze was improved by Jerrum and Sorkin , who reduced the running time to and allowed to shrink at the rate . More interesting than these improvements, however, was the fact that Jerrum and Sorkin’s analysis applied to the popular and fast-in-practice Metropolis algorithm. Later, Condon and Karp gave better theoretical guarantees with a linear-time algorithm that works for .
With the exception of Boppana’s work (which was for a different model), the aforementioned results applied only to relatively dense graphs. McSherry showed that a spectral clustering algorithm works as long as . In particular, his result is meaningful for graphs whose average degree is as low as . These are essentially the sparsest possible graphs for which the minimum cut will agree with the planted bisection, but Coja-Oghlan managed to obtain a result for even sparser graphs by studying a relaxed problem. Instead of trying to recover the minimum bisection, he showed that a spectral algorithm will find a bisection which is positively correlated with the planted bisection. His result applies as long as , and so it is applicable even to graphs with a constant average degree.
2 Block Models in Statistics
The statistical literature on clustering is more closely focused on real-world network data with the planted bisection model (or “stochastic blockmodel,” as it is known in the statistics community) used as an important test-case for theoretical results. Its study goes back to Holland et al. , who discussed parameter estimation and gave a Bayesian method for finding a good bisection, without theoretical guarantees. Snijders and Nowicki studied several different statistical methods – including maximum likelihood estimation and the EM algorithm – for the planted bisection model with . They then applied those methods to social networks data. More recently, Bickel and Chen showed that maximizing the Girvan-Newman modularity – a popular measure of cluster strength – recovers the correct bisection, for the same range of parameters as the result of McSherry. They also demonstrated that their methods perform well on social and telephone network data. Spectral clustering, the method studied by Boppana and McSherry, has also appeared in the statistics literature: Rohe et al. gave a theoretical analysis of spectral clustering under the planted bisection model and also applied the method to data from Facebook.
3 Sparse graphs and insights from statistical physics
The case of sparse graphs with constant average degree is well motivated from the perspective of real networks. Indeed, Leskovec et al. collected and studied a vast collection of large network datasets, ranging from social networks like LinkedIn and MSN Messenger, to collaboration networks in movies and on the arXiv, to biological networks in yeast. Many of these networks had millions of nodes, but most had an average degree of no more than 20; for instance, the LinkedIn network they studied had approximately seven million nodes, but only 30 million edges. Similarly, the real-world networks considered by Strogatz – which include coauthorship networks, power transmission networks and web link networks – also had small average degrees. Thus it is natural to consider the planted partition model with parameters and of order .
Although sparse graphs are natural for modelling many large networks, the planted partition model seems to be most difficult to analyze in the sparse setting. Despite the large amount of work studying this model, the only results we know of that apply in the sparse case are those of Coja-Oghlan. Recently, Decelle et al. made some fascinating conjectures for the cluster identification problem in the sparse planted partition model. In what follows, we will set and for some fixed .
If then the clustering problem in is solvable as , in the sense that one can a.a.s. find a bisection which is positively correlated with the planted bisection.
To put Coja-Oghlan’s work into the context of this conjecture, he showed that if for a large enough constant , then the spectral method solves the clustering problem. Decelle et al.’s work is based on deep but non-rigorous ideas from statistical physics. In order to identify the best bisection, they use the sum-product algorithm (also known as belief propagation). Using the cavity method, they argue that the algorithm should work, a claim that is bolstered by compelling simulation results.
What makes Conjecture 1.2 even more interesting is the fact that it might represent a threshold for the solvability of the clustering problem.
If then the clustering in problem is not solvable as .
This second conjecture is based on a connection with the tree reconstruction problem (see for a survey). Consider a multi-type branching process where there are two types of particles named and . Each particle gives birth to (ie. a Poisson distribution with mean ) particles of the same type and particles of the complementary type. In the tree reconstruction problem, the goal is to recover the label of the root of the tree from the labels of level where . This problem goes back to Kesten and Stigum in the 1960s, who showed that if then it is possible to recover the root value with non-trivial probability. The converse was not resolved until 2000, when Evans, Kenyon, Peres and Schulman proved that if then it is impossible to recover the root with probability bounded above independent of . This is equivalent to the reconstruction or extremality threshold for the Ising model on a branching process.
At the intuitive level the connection between clustering and tree reconstruction, follows from the fact that the neighborhood of a vertex in should look like a random labelled tree with high probability. Moreover, the distribution of that labelled tree should converge as to the multi-type branching process defined above. We will make this connection formal later.
Decelle et al. also made a conjecture related to the the parameter estimation problem that was previously studied extensively in the statistics literature. Here the problem is to identify the parameters and . Again, they provided an algorithm based belief propagation and they used physical ideas to argue that there is a threshold above which the parameters can be estimated, and below which they cannot.
If then there is a consistent estimator for and under . Conversely, if then there is no consistent estimator.
Our results
Our main contribution is to establish Conjectures 1.3 and 1.4.
If and then, for any fixed vertices and ,
Theorem 2.1 is stronger than Conjecture 1.3 because it says that an even easier problem cannot be solved: if we take two random vertices of , Theorem 2.1 says that no algorithm can tell whether or not they have the same label. This is an easier task than finding a bisection, because finding a bisection is equivalent to labeling all the vertices; we only asking whether two of them have the same label or not. Theorem 2.1 is also stronger than the conjecture because it includes the case , for which Decelle et al. did not conjecture any particular behavior.
Note that the assumption is there to ensure that has a giant component, without which the clustering problem is clearly not solvable.
Moreover, if then there is no consistent estimator for and .
Note that the second part of the Theorem 2.4 follows from the first part, since it implies that and are contiguous as long as . Indeed one cannot even consistently distinguish the planted partition model from the corresponding Erdös-Renyi model!
The other half of Conjecture 1.4 follows from a converse to Theorem 2.4:
where . Then is a consistent estimator for and is a consistent estimator for .
Finally, there is an efficient algorithm whose running time is polynomial in to calculate and .
The first half of Conjecture 1.4 follows because the same comparison of first and second moments implies that counting cycles gives a consistent estimator for and (and hence also for and ).
While there is in general no efficient algorithm for counting cycles in graphs, we show that with high probability the number of short cycles coincides with the number of non-backtracking walks of the same length which can be computed efficiently using matrix multiplication.
The proof of Theorem 2.5 is carried out in Section 3.
1.2 Non-Reconstruction
As mentioned earlier, Theorem 2.1 intuitively follows from the fact that the neighborhood of a vertex in should look like a random labelled tree with high probability and the distribution of that labelled tree should converge as to the multi-type branching process defined above. While this intuition is not too hard to justify for small neighborhoods (by proving there are no short cycles etc.) the global ramifications are more challenging to establish. This is because, that conditioned on the graph structure, the model is neither an Ising model, nor a Markov random field! This is due to two effects:
The fact that the two clusters are of the same (approximate) size. This amounts to a global conditioning on the number of ’s.
The model is not even a Markov random field conditioned on the number of and vertices. This follows from the fact that for every two vertices that do not form an edge, there is a different weight for and . In other words, if , then there is a slight repulsion (anti-ferromagnetic interaction) between vertices not joined by an edge.
In Section 4, we prove Theorem 2.1 by showing how to overcome the challenges above.
1.3 The Second Moment
This already show that the second moment is bounded off . However, in order to establish the existence of a density, we also need to show that is bounded away from zero asymptotically. In order to establish this, we utilize the small graph conditioning method by calculating joint moments of the number of cycles and . It is quite surprising that this calculation can be carried out in rather elegant manner.
Counting cycles
Before we prove this, let us explain how it implies Theorem 2.5. From now on, we will write instead of .
We next show that Theorem 3.1 gives us an estimator for and that is consistent when . First of all, we have a consistent estimator for by simply counting the number of edges. Thus, if we can estimate consistently then we can do the same for and . Our estimator for is
Let . There is an algorithm whose running time is for calculating and .
Recal and from the proof of Theorem 2.5. Clearly, we can compute in time which is linear in the number of edges. Thus, we need to show how to find in time . It is easy to see that with high probability, each neighborhood of radius contains at most one cycle. Thus, the number of cycles of length is the same as , where is the number of non backtracking walks of length that start and end at .
To calculate , let be the radius ball around in . Let be a diagonal matrix such that for each vertex , the diagonal entry corresponding to is the degree of in . Let be the adjacency matrix of . It is easy to see that w.h.p. for each , can be generated in time. Now define and . Then it is easy to see that the entry of is the number of non-backtracking walks from to of length . The proof follows. ∎
On the other hand, we can easily compute : for each , there is probability to have , and these events are mutually indepedent. But whether is completely determined by the other events since there must be an even number of such that . Thus,
for even , and zero for odd . Hence,
The second part of the claim amounts to saying that , which is trivial when . ∎
Now, take . Since the are disjoint, they appear independently in . By the proof of Lemma 3.3, the probability that cycles are all present is
Since there are elements of , it follows that the expected number of vertex-disjoint -tuples of -cycles is
It remains to show, therefore, that the expected number of non-vertex-disjoint -tuples converges to zero. Let be the number of non-vertex-disjoint -tuples,
Non-reconstruction
The goal of this section is to prove Theorem 2.1. As we said in the introduction, the proof of Theorem 2.1 uses a connection between and Markov processes on trees. Before we go any further, therefore, we should define a Markov process on a tree and state the result that we will use.
Let be an infinite rooted tree with root . Given a number , we will define a random labelling . First, we draw uniformly in . Then, conditionally independently given , we take every child of and set with probability and otherwise. We can continue this construction recursively to obtain a labelling for which every vertex, independently, has probability of having the same label as its parent.
Back in 1966, Kesten and Stigum asked (although they used somewhat different terminology) whether the label of could be deduced from the labels of vertices at level of the tree (where is very large). There are many equivalent ways of stating the question. The interested reader should see the survey , because we will only mention two of them.
Let and define . We will write for the configuration restricted to .
Suppose is a Galton-Watson tree where the offspring distribution has mean . Then
if, and only if .
In particular, if then contains no information about . Theorem 4.1 was established by several authors over the course of more than 30 years. The non-reconstruction regime (ie. the case ) is the harder one, and that part of Theorem 4.1 was first proved for -ary trees in , and for Galton-Watson trees in . This latter work actually proves the result for more general trees in terms of their branching number.
We will be interested in trees whose offspring distribution is and we will take . Some simple arithmetic applied to Theorem 4.1 then shows that reconstruction of the root’s label is impossible whenever . Not coincidentally, this is the same threshold that appears in Theorem 2.1.
The first step in applying Theorem 4.1 to our problem is to observe that a neighborhood of looks like . Indeed, fix and let be the induced subgraph on .
Let . There exists a coupling between and such that a.a.s.
For the rest of this section, we will take .
The proof of this lemma essentially follows from the fact that can be constructed from a sequence of independent Poisson variables, while can be constructed from a sequence of binomial variables, with approximately the same means.
For a vertex , let be the number of children of ; let be the number of children whose label is and let . By Poisson thinning, , and they are independent. Note that can be entirely reconstructed from the label of the root and the two sequences , .
We can almost do the same thing for , but it is a little more complicated. We will write and . For every subset , denote by and the subsets of that have the corresponding label. For example, . For a vertex , let be the number of neighbors that has in ; then let be the number of those neighbors whose label is and set . Then , and they are independent. Note, however, that they do not contain enough information to reconstruct : it’s possible to have which share a child in , but this cannot be determined from and . Fortunately, such events are very rare and so we can exclude them. In fact, this process of carefully excluding bad events is all that needs to be done to prove Proposition 4.2.
In order that we can exclude their complements, let us give names to all of our good events. For any , let be the event that no vertex in has more than one neighbor in . Let be the event that there are no edges within . Clearly, if and hold for all then is a tree. In fact, it’s easy to see that and are the only events that prevent from determining .
;
and for every ; and
then .
The proof is essentially obvious from the construction of and , but we will be pedantic about it anyway. The statement means that there is some graph homomorphism such that . If and and then we can extend to while preserving the fact that for all . On the event , this extension can be made simultaneously for all , while the event ensures that this extension remains a homomorphism. Thus, we have constructed a label-preserving homomorphism from to , which is the same as saying that these two labelled graphs are equal.
From now on, we will not mention homomorphisms; we will just identify with . ∎
In order to complete our coupling, we need to identify one more kind of good event. Let be the event
The events are useful because they guarantee that is large enough for the desired binomial-Poisson approximation to hold. The utility of is demonstrated by the next two lemmas.
Moreover, on .
First of all, is stochastically dominated by for any . On , and so is stochastically dominated by
by a multiplicative version of Chernoff’s inequality. But
which proves the first part of the lemma.
For the first claim, fix . For any , the probability that and both appear is . Now, and Lemma 4.4 implies that . Hence the result follows from a union bound over all triples .
For the second part, the probability of having an edge between any particular is . Lemma 4.4 implies that and so the result follows from a union bound over all pairs . ∎
The final ingredient we need is a bound on the total variation distance between binomial and Poisson random variables.
If and are positive integers then
Assume that , or else the result is trivial. A classical result of Hodges and Le Cam shows that
With the triangle inequality in mind, we need only show that is close to . This follows from a direct computation: if then \big{\|}\operatorname{Pois}(\lambda)-\operatorname{Pois}(\mu)\big{\|}_{TV} is just
Now the first term is and we can bound by the mean value theorem. Thus,
The claim follows from setting and . ∎
Finally, we are ready to prove Proposition 4.2.
2 No long range correlations in G𝐺G
The idea behind the proof of Theorem 2.1 is to condition on the labels of , which can only make reconstruction easier. Then we can remove the conditioning on , because gives much more information anyway. Since Theorem 4.1 and Proposition 4.2 imply that cannot be reconstructed from , we conclude that it cannot be reconstructed from either.
The goal of this section is to prove that once we have conditioned on , we can remove the conditioning on . If were distributed according to a Markov random field, this would be trivial because conditioning on would turn and independent. For our model, unfortunately, there are weak long-range interactions. However, these interactions are sufficiently weak that we can get an asymptotic independence result for separated sets as long as one of them takes up most of the graph.
In what follows, we say that a.a.s. if for every , as , and we say that a.a.s. if
Let be a (random) partition of such that separates and in . If for a.a.e.
Note that Lemma 4.7 is only true for a.a.e. . In particular, the lemma does not hold for that are very unbalanced (eg. ).
For arbitrary subsets , define
(If and overlap, the product ranges over all unordered pairs with ; that is, if is in the product then is not.) Then
First, we will show that is essentially independent of . Take a deterministic sequence with but a.a.s. Define and and let
By the definition of , if then a.a.s. Thus, implies
where we have used the fact that , implies that , and thus is either or . Moreover, appears once for every pair where . The number of such pairs is where (and similarly for , etc.); it’s easy to check, then, that , which explains the exponents in (2).
Note that the right hand side of (2) depends on (through and ) but not on . Writing for the right hand side of (2), (1) implies that if then
for a.a.e. and . (Note that the term in (3) depends only on , so there is no problem in pulling it out of the sum.) Applying (4) twice, with and ,
Note that depends on only through . In particular, in the numerator of (5), doesn’t depend on since we only sum over with . Hence, the right hand side of (5) is just
where we could factorize the denominator because with fixed, depends only on , while depends only on . Cancelling the common terms, then multiplying top and bottom by , we have
By the monotonicity of conditional variances,
Since a.a.s. and a.a.s, it follows from Lemma 4.7 that and are a.a.s. conditionally independent given and . Thus, . Now Proposition 4.2 implies that , but Theorem 4.1 says that and so a.a.s. also. ∎
The Second Moment Argument
Thus, Theorem 2.4 reduces to the study of the partition function . To do this, we will use the small subgraph conditioning method. This method was developed by Robinson and Wormald in order to prove that most -regular graphs are Hamiltonian, but it has since been applied in many different settings (see the survey for a more detailed discussion). Essentially, the method is useful for studying a sequence of random variables which are not concentrated around their means, but which become concentrated when we condition on the number of short cycles that has. Fortunately for us, this method has been developed into an easily applicable tool, the application of which only requires the calculation of some joint moments. The formulation below comes from , Theorem 4.1.
and define by the same formula, but with replaced by . Then
Since are independent given , it follows that
The case for is similar. ∎
If then
If then
Suppose . Then
The computation for is analogous.
Now assume while . By a very similar computation,
The computation for is analogous. ∎
Since we also have , we obtain
Before we proceed to the proof, recall (or check, by writing out the Taylor series of the logarithm) that
Define ; note that
Computing the last term would be easy if were normally distributed. Instead, it is binomially distributed, which – unsurprisingly – is just as good. To show it, though, will require a slight digression.
If are taken uniformly and independently at random and then
which is integrable near (uniformly in ) whenever . ∎
To finish the proof of Lemma 5.4, take as in Lemma 5.5 and note that
2 Dependence on the number of short cycles
We break up into and sum over the two parts separately. Note that if then depends on only through . Let , so that implies that and are independent. Then
The next step is to compute the right hand side of Lemma 5.6 in the case that is a cycle. This computation is very similar to the one in Lemma 3.3, when we computed the expected number of -cycles in . Essentially, we want to compute the expected “weight” of a cycle, where the weight of each edge depends only on whether its endpoints have the same label or not.
Let be the edges of . Provided that we renormalize, we can replace the sum over by an expectation, where is taken uniformly in . Now, let be the number of edges of whose endpoints have different labels. As discussed in the proof of Lemma 3.3, for even , and zero otherwise. Then
Extending this calculation to vertex-disjoint unions of cycles is quite easy: suppose is the union of cycles . Since only depends on and , we can just split up the sum over into a product of sums, where each sum ranges over . Then applying Lemma 5.7 to each yields a formula for .
If is a vertex-disjoint union of graphs and each is a -cycle, then
where the sum ranges over all -tuples of distinct -cycles, and indicates the event that the subgraph appears in . Thus,
where the sum ranges over all -tuples of cycles for which each is an -cycle, and every cycle is distinct. Let be the set of such tuples; let be the set of such tuples for which the cycles are vertex-disjoint, and let . Thus, if for , then
where the sum ranges over all ways to make an isomorphic copy of on vertices. Since there are only a bounded number of isomorphism classes in
To complete the proof of Theorem 2.4, note that . Thus, . When , this (with Lemma 5.4) proves conditions (c) and (d) of Theorem 5.1. Since condition (a) is classical and condition (b) is given by Lemma 5.10, the conclusion of Theorem 5.1 implies the first statement in Theorem 2.4.
Conjectures Regarding Regular Models
We briefly discuss how can one define a regular version of the model and what we expect from the behavior of such a model. A regular model should satisfy the following properties:
The graph is a.s. a simple -regular graph.
For each vertex among the neighbors it is connected to, it is connected to vertices with .
Choices at different vertices are (almost) independent.
As is often the case with random regular graphs, the construction is not completely trivial. Here are two possible constructions:
Let be a collection of independent variables, conditioned on
Now the edges are defined by sampling a uniform random graph on with degree distribution given by , while the edges are defined by sampling a uniform random graph on with degree distribution given by . To construct the edges we take a uniformly random bipartite graph with left degrees given by and right degrees given by .
The second construction uses a variant of the configuration model. We generate the graph by generating independent matchings. The probability of each matching is proportional to , where is the number of edges with points and is the number of edges with .
We conjecture that the results of the paper should extend to the models above where the quantity is now replaced by , where . Friedman’s proof of Alon’s conjecture gives a very accurate information regarding the spectrum of uniformly random -regular graphs. We propose the following related conjecture.
Assume . Then there exist an , s.t. with high probability, the second eigenvalue of the graph generated satisfies . Moreover, all other eigenvalues of are smaller than , and the eigenvector associated to is correlated with the true partition.
By comparison, the results of imply that for all with high probability, if is a uniformly random -regular graph then . Thus the result above provides a simple spectral algorithm to distinguish between the standard random -regular model and the biased -regular model when . Moreover, our conjecture also says that a spectral algorithm can be used to solve the clustering problem.
Below we sketch a proof for part of Conjecture 6.1. Specifically, we will show that if then there is an approximate eigenvalue-eigenvector pair (in the sense that where is the adjacencency matrix of ) where and is correlated with the true partition. The more difficult part of the conjecture would be to show that all other eigenvalues are smaller than . If this were true, it would imply that and that the eigenvector of is close to .
We will assume that satisfies the following two properties:
The process around each vertex looks like the Ising model on a regular tree.
Given two different vertices , the process in neighborhoods of and are asymptotically independent.
Let be a large constant and let . Then and it is therefore orthogonal to the leading eigenvector. Let be the adjacency matrix of the graph. We claim that is much smaller than , where . Note that if and only if .
Assuming that the neighborhood of is a -regular tree,
and so we can write as
Noting that all the summands are independent given , we see that the above sum has expectation zero and variance of the order for some constant . Applying a similar decomposition (but at level ) to the second sum in (9), we get
On the other hand, from it follows that for each individually
for some absolute constant . Since the value of and for are essentially independent, it follows that with high probability . Taking sufficiently large we see that with high probability where as . ∎
Open problems
Of the conjectures that we mentioned in the introduction, Conjecture 1.2 remains open. However, there are variations and extensions of Conjectures 1.2–1.4 that may be even more interesting. For example, we could ask whether Conjecture 1.2 can be realized by one of several popular and efficient algorithms.
If then the clustering problem in can be solved by a spectral algorithm.
If then the clustering problem in can be solved by the belief propogation algorithm of .
If then the clustering problem in can be solved by simulating an Ising model on , conditioned to be almost balanced.
Of these conjectures, part 2 is closely related to the work of Coja-Oghlan , while part 3 would substantially extend the result of Dyer and Frieze .
Another way to extend Conjectures 1.2–1.4 would be to increase the number of clusters from two to . The model is well-studied for more than two clusters, in which case it is known as the “planted partition” model. In fact, many of the results that we cited in the introduction extend to also. However, the work of suggests that the case of larger is rather more delicate than the case , and that it contains interesting connections to complexity theory. The following conjecture comes from their work, and it is based on a connection to phase transitions in the Potts model on trees:
For any , there exists such that if then:
if then the clustering problem cannot be solved;
if then the clustering problem is solvable, but not in polynomial time;
if then the clustering problem can be solved in polynomial time.
When , and so case 2 does not occur. When , .
Part of the difficulty in studying Conjecture 7.2 can be seen from work of the third author . His work contains the best known non-reconstruction results for the Potts model on trees, but the results for are less precise and more difficult to prove than what is known for .
Decelle et al. also state a version of Conjecture 7.2 in the case . Although this case is not naturally connected to clustering, it has close connections to random Boolean satisfiability problems and to spin glasses. In particular, they conjecture that when , case 2 above becomes much larger.
A.S. would like to thank Christian Borgs for suggesting the problem and Lenka Zdeborová for useful discussions. Part of this work was done while A.S. was at Microsoft Research, Redmond. The authors would also like to thank Lenka Zdeborová for comments on a draft of this work.