On belief propagation guided decimation for random k-SAT
Amin Coja-Oghlan
Introduction and results
Against this gloomy background, it came as a considerable surprise when experiments indicated that certain highly efficient message passing algorithms come within a whisker of the conjectured satisfiability threshold . These algorithms, called Belief Propagation Guided Decimation and Survey Propagation Guided Decimation, were put forward on the basis of the “cavity method”, a very insightful but non-rigorous technique from statistical mechanics . The message passing procedure upon which Belief Propagation Guided Decimation is based has been rediscovered several times in the context of different applications, see Section 1.5 for details. In the physics literature it was originally known under the name “Bethe-Peierls approximation”. By contrast, the message passing technique that underpins Survey Propagation seems to be new. Conceptually, Belief/Survey Propagation Guided Decimation are more sophisticated than the previously studied algorithms by an order of magnitude; we will give a detailed account in Section 1.3. As a consequence, the techniques that were developed to analyze previous algorithms fail dramatically for Belief/Survey Propagation.
2 Unsatisfied with physics
Ever since these stunning experimental results were reported, coming up with a rigorous analysis of the new message passing algorithms has been one of the key challenges in the area of random constraint satisfaction problems (cf. ). The present paper contributes the first such analysis. More specifically, we study the “vanilla” version of Belief Propagation Guided Decimation (‘BPdec’), the simplest but arguably most natural version. We establish a negative result: BPdec fails to find a satisfying assignment w.h.p. for densities for a certain absolute constant . In other words, we prove that, perhaps surprisingly, BPdec does not outperform simpler combinatorial algorithms such as the one from asymptotically.
There is a constant such that for any satisfying
Theorem 1.1 contrasts with the very promising experimental results. The explanation for this is that the experiments were conducted for ‘small’ . Indeed, already for large-scale experiments are difficult to carry out, because the relevant density scales exponentially with . Thus, the good experimental performance can be attributed to the value of the constant in Theorem 1.1. Because the analysis is intricate as is, no attempt has been made to compute (or optimize) .
Since Belief/Survey Propagation guided decimation were suggested , there have been various stabs at explaining the performance of Belief/Survey Propagation Guided Decimation by means of non-rigorous physics arguments . We will review this work in more detail in Section 1.4 below, but roughly speaking the predictions were as follows. In chronological order,
the authors of opined that Belief Propagation Guided Decimation fails for .
More optimistically, it was predicted in that Belief Propagation Guided Decimation will find satisfying assignments efficiently up to .
Finally and most pessimistically, according to Belief Propagation Guided Decimation ought to fail for for an absolute constant .
All of these predictions derived from fairly sophisticated statistical mechanics reasoning, and both quote experimental evidence, thereby (unintentionally) highlighting the need for a rigorous analysis. Theorem 1.1 confirms the scenario put forward in , but does not sit well with the predictions from . Furthermore, the present analysis shows that the reasoning from , where the demise of Belief Propagation Guided Decimation was attributed to a certain change in the geometry of the set of satisfying assignments, is off the mark.
A potential objection to a negative result like Theorem 1.1 is that it might hinge on a small detail of the algorithm that could easily be fixed. However, in the sequel we will see that in the regime (1) our analysis refutes a key hypothesis upon which BPdec depends. In other words, we show that BPdec falls victim to a conceptual issue, not a technicality. Furthermore, some of the arguments used to prove Theorem 1.1 may be of independent interest as they can be expected to extend to applications of BP beyond random -SAT. For instance, we develop a technique for tracing BP on certain quasi-random problem instances.
Finally, we point out that Theorem 1.1 has no immediate bearing on the potentially more powerful Survery Propagation algorithm. We will comment on Survey Propagation in Section 1.4 below.
3 The BPdec algorithm
Fix a satisfiable -CNF on the variables . We generally represent truth assignments as maps , with representing ‘false’ and representing ‘true’. (It turns out that using instead of the more common simplifies the description of BP quite a bit.) Let denote the set of all satisfying assignments of . The algorithm BPdec is an attempt at implementing the following thought experiment.
Input: A satisfiable -CNF . Result: An assignment .
A moment’s reflection reveals that the above experiment not only produces a satisfying assignment, but that its (random) outcome is in fact uniformly distributed over the set . We observe that in the formulas obtained at intermediate steps some clauses can (and typically will) have length less than .
Referring to the successive assignments of variables and the corresponding shrinking of the formula, we call the above experiment the decimation process. The obvious obstacle to implementing it is the computation of the marginal probabilities . Indeed, this task is -hard on worst-case inputs.
Yet, under what conditions could we hope to compute (or approximate) the marginals ? Clearly, the marginals are influenced by ‘local’ effects. For instance, if occurs in a unit clause of , i.e., a clause whose other variables have been assigned already without satisfying , then must be assigned so as to satisfy . Hence, if appears in positively, then , and otherwise . Similarly, if occurs only positively in , then . Furthermore, these local effects propagate: if appears in a clause whose other variables are subject to influences from other clauses , then the local effects operating on the variables may impact via . In the most extreme case, think of a variable that occurs in a clause whose other variables are all constrained by unit clauses to take values that fail to satisfy . Then effectively turns into a unit clause for .
The key hypothesis underlying BPdec is that in random formulas such local effects determine the marginals asymptotically. To define ‘local’ precisely, we need a metric on the variables/clauses. This metric is the shortest path distance on the factor graph of , which is a bipartite graph whose vertices are the variables and the clauses of . Each clause is adjacent to the variables that occur in it. For an integer let signify the set of all vertices of that have distance at most from . Then the induced subgraph corresponds to the sub-formula of obtained by removing all clauses and variables at distance more than from . Note that all vertices at distance precisely are variables. Hence, any satisfying assignment of induces a satisfying assignment of the sub-formula. Let us denote by
the marginal probability that takes the value in a random satisfying assignment of this sub-formula.
Of course, in the worst case the ‘local’ marginals are just as difficult to compute as the themselves. But BPdec employs an efficient heuristic called Belief Propagation (‘BP’), which yields certain values ; we will state this heuristic below. If is a tree, then provably . Moreover, standard arguments show that in a random formula actually is a tree w.h.p. so long as . More generally, in order to obtain an efficient algorithm it would be sufficient for the BP outcomes to approximate the true overall marginals well for some (say, polynomially computable, polynomially bounded) function . This leads to the following hypothesis underpinning BPdec (cf. ).
With probability over the choice of and the random decisions in Experiment 1.2 the following holds for all .
For any there is such that
For any there is such that
Hypothesis 1.3 motivates the following algorithm , which is called Belief Propagation Guided Decimation because it combines BP (Step 2) with a decimation step (Steps 3–4).
BPdec Input: A -CNF on . Output: An assignment .
The function is “hard-wired” into the above algorithm, and our analysis does not depend on any assumptions on . In particular, the statement of Theorem 1.1 is understood to hold for all integer-valued functions .
Although, strictly speaking, Hypothesis 1.3 provides neither a necessary nor a sufficient condition for BPdec to succeed on random -CNFs w.h.p., the hypothesis inspired the algorithm (we will get back to this in Section 1.4). Combining parts of the present analysis of the dynamics of the BP computation (more precisely, Theorem 3.2 below) with techniques for analyzing the geometry of the space of satisfying assignments, we proved the following in .
Both statements of Hypothesis 1.3 are false for satisfying (1).
To complete the presentation of the algorithm, we need to define Belief Propagation for -SAT; for a detailed derivation we point the reader to . Ultimately, we need to define the value in Step 2 of BPdec.
The message space is the set of all tuples
for any , unless the denominator is zero, in which case we set .
BPdec could be called the “vanilla” version of Belief Propagation Guided Decimation. It is the simplest but arguably the most natural variant. Nonetheless, several other installments have been suggested and experimented with. They differ in how the number of iterations is chosen and how exactly the result of the Belief Propagation calculation is used to decimate.
In the “vanilla” variant we used an a priori number of iterations. An alternative idea is to iterate the Belief Propagation operator until it reaches a fixed point. More precisely, to accommodate numerical inaccuracies one could stop after iterations, with the least integer such that for some small we have
where the maximum is taken over all edges of the factor graph (e.g., ). Unfortunately, it is not generally assured that the convergence criterion (4) will ever be met. Hence, one would need to specify how to proceed otherwise. For instance, one could specify an a priori maximum number of iterations. Our analysis can be adapted easily to accommodate these modifications (details omitted).
More importantly, one could come up with a more sophisticated decimation strategy, i.e., a different way of using the BP result to choose the variable to be assigned next and its value. In BPdec we went for the “vanilla rule”: the variables are assigned in the natural order, and each time the assignment is performed randomly based on the BP estimate of the marginal.
But in experiments a more common decimation strategy is the “most biased variable” rule: at each time choose a variable that maximizes the “bias” , and assign it randomly based on the BP estimate. Experimentally the most biased variable rule allows for slightly better results than the vanilla rule. For instance, in random -SAT, experiments indicate that the former succeeds up to , and the latter up to .
The statistical mechanics ideas that underpin Belief Propagation guided decimation do not endorse a preference for the “most biased variable” rule over the “vanilla” strategy. But a heuristic argument in favor of “most biased variable” is that it might reduce the effect of numerical errors building up . The present analysis does not seem to extend to “most biased variable” in a straightforward manner. Thus, analyzing it remains an interesting open problem.
Comparison with combinatorial algorithms.
The difference between the previously studied combinatorial algorithms for random -SAT and Belief Propagation can be explained nicely in terms of the factor graph. Indeed, in order to decide upon the value of a variable the previous algorithms only took the clauses and variables at distance two or four into consideration. Based on this information, the variable is assigned following some simple combinatorial rule.
BPdec can be viewed as a systematic way of making a “less shortsighted” decision. The algorithm takes into account clauses/variables at distance up to , where may be a function that grows with . Indeed, the idea of determining the marginal yields a meaningful way of incorporating the data from all these clauses/variables. In particular, BPdec implicitly implements many of the rules that are used in the combinatorial algorithms (e.g., the “Unit Clause” rule). In this sense, BPdec can be seen as a clever generalization of many of these combinatorial algorithms. However, this also means that the techniques used in the previous analyses of combinatorial algorithms are insufficient to tackle BPdec.
4 The statistical physics perspective
Closely following the non-rigorous paper , we discuss in this section the statistical mechanics motivation for BPdec. This will provide the basis for the discussion of the non-rigorous predictions as to the algorithm’s performance.
According to the physicists’ “cavity method”, the random formula undergoes several further phase transitions prior to the satisfiability threshold. These phase transitions affect the correlations between the truth values that can be assigned to different variables. Thus, fix a variable and let be a function that tends to infinity slowly, say . Furthermore, let be the set of all variables at distance exactly from in the factor graph. How do the values assigned to variables on the “far away boundary” affect the truth value of ?
The strongest possible decay of correlations occurs when the boundary has no impact on at all. To formalize this, let be a satisfying assignment of and let be the fraction of all satisfying assignments of that set to true and that coincide with on . In symbols,
Also recall that denotes the marginal probability that takes the value “true” in a random satisfying assignment of (without any boundary condition). The Gibbs uniqueness condition requires that
In words, fixing the “far away” variables does not make it noticeably more or less like for to take the value “true”. Hence, the marginal is governed entirely by the effects of variables at distance less than from , i.e., by the local structure of the formula.
Consequently, it seems reasonable to expect that Belief Propagation yields the correct marginals so long as (5) holds. It is known rigorously that w.h.p. (5) holds up to (a function that tends to zero for large ), and that Belief Propagation does indeed yield the correct marginals for such densities . That is, for w.h.p.
To define the second correlation decay property, let us denote by a uniformly random element of . Then the non-reconstruction condition is that
Hence, fixing the far away boundary to a “typical” satisfying assignment has no discernible effect on . Neglecting a -fraction of “atypical” cases , one might still expect (6) to hold so long as (7) is satisfied. However, this conjecture awaits a rigorous proof. According to the cavity method, (7) holds up to . Moreover, the best rigorously analyzed algorithm (which is based on local search) succeeds in finding a satisfying assignment in polynomial time right up to w.h.p. .
To state the third property, let us denote the joint distribution of the truth values of the variables under a random satisfying assignment by . Thus, is a probability distribution over . Then the replica symmetry condition requires that the truth values of the variables in are asymptotically independent. Formally,
It has duly been conjectured in that (8) suffices to obtain (6), i.e., to ensure that Belief Propagation yields the correct marginals on . The cavity method predicts that (8) holds for
while the conjectured satisfiability threshold is
The densities are also conjectured to mark a change in the geometry of the set of satisfying assignments. Let us turn into a graph by considering adjacent if their Hamming distance is equal to one. While for densities the graph is conjectured to be (essentially) connected, for it shatters into an exponential number of tiny connected components w.h.p. More precisely, admits a decomposition
into “clusters” such that for all and such that any two satisfying assignments in different clusters have Hamming distance . This decomposition was established rigorously in . Intuitively, the cluster decomposition explains why (7) fails to hold for : the conditional marginal corresponds to the marginal of within the cluster of , in contrast to the marginal over the entire set of satisfying assignments.
This structure goes by the name of condensation in physics. The values that different variables take within each cluster are conjectured to be heavily dependent. Furthermore, (11) implies that is but a convex combination of a small (bounded) number of such intra-cluster distributions. Hence, the “condensed” geometry (11) appears to be irreconcilable with the factorization property (8).
Belief Propagation.
Based on this “static” picture, three different hypotheses have been put forward as to the likely performance of Belief Propagation guided decimation. Most optimistically, the authors of argue that Belief Propagation guided decimation ought to find satisfying assignments efficiently for densities right up to . Their prediction derives from the opinion that (8) should be sufficient to obtain (6), and that (6) is the key to the success of Belief Propagation Guided Decimation. Specifically, refers to the the “most biased variable” variant. However, the precise decimation strategy is irrelevant to their considerations, which are in effect at odds with Theorem 1.1.
A second prediction is that Belief Propagation Guided Decimation should fail to find satisfying assignments for . This conjecture is based on the hunch that the decomposition of into “clusters” and the ensuing demise of (7) cause (6) to fail. Agreeing with , the authors appear to view (6) as the key to the performance of BPdec.
According to the third prediction , BPdec fails for densities , with an absolute constant (independent of ). This prediction is based on a non-rigorous analysis of the decimation process, i.e., the idealized thought experiment that BPdec strives to implement (Experiment 1.2). Crucially, the authors of realize that (6) does not guarantee the success of BPdec.
Instead, their analysis indicates that as the decimation process proceeds to assign variables, the remaining unassigned variables are bound by clauses that become shorter and shorter. In effect, the clauses become more and more difficult to satisfy, and thus the remaining set of satisfying assignments shrinks rapidly. In other words, successive decimation of variables has a similar effect as increasing the density of the formula. Consequently, after a number of decimations BPdec may wind up with a formula that violates (8) and thus (6), even though the initial formula may well have satisfied those conditions. The contribution supersedes an earlier attempt at studying the effect of decimation .
Theorem 1.1 is in agreement with the prediction from . But an important advantage of the present work over the (non-rigorous) contribution is that here we manage to analyze the actual algorithm BPdec. By contrast, only deals with the decimation process (i.e., Experiment 1.2, the idealized experiment that assumes knowledge of the precise marginals). That is, going significantly beyond the ambition of , here we develop a technique for explicitly analyzing the dynamics of the message passing procedure.
In summary, the predictions in as to the performance of Belief Propagation are inaccurate because they ignore the effect of decimation. By contrast, as conjectured in and proved here, in actuality BPdec gets itself into trouble by assigning and decimating one variable after the other. Thus, computing the correct marginals in the original formula is one thing, but continuing to do so as decimation proceeds is quite another. Let us mention, as a cautionary tale, that both quote experimental evidence to support their claims. This illustrates the difficulty of producing reliable experimental results on large random CSPs, and thus the need for rigorous results.
Survey Propagation.
Let us briefly comment on Survey Propagation guided decimation, the physicists’ flagship algorithm . It is based on the idea of working with a different probability distribution. Namely, instead of the uniform probability over satisfying assignments, Survey Propagation aims for the uniform distribution over the clusters in the decomposition (10). These clusters can be encoded as generalized assignments , with indicating that variable takes the value in all the assignments in , and indicating that can take either value . Survey Propagation guided decimation combines a message passing algorithm for approximating the marginals of these generalized assignments with a decimation procedure (see for details).
There is an absolute constant such that the Survey Propagation Guided Decimation algorithm as stated in fails to find a satisfying assignment of w.h.p. for .
If true, Conjecture 1 would imply that Survey Propagation Guided Decimation is inferior to conceptually much simpler local-search algorithms (such as ), at least for large clause lengths .
5 Further related work
In full generality, Belief Propagation is a generic technique for computing the marginals of a probability distribution described by an “acyclic graphical model” . But special instantiations of Belief Propagation have been (re)discovered several times for several applications. Examples include statistical inference , coding theory and statistical mechanics , where the method is also referred to as “Bethe-Peierls approximation”. For a coherent discussion see and the references therein.
In spite of BP’s practical success (and popularity), rigorous analyses of the algorithm are scarce. A few exist in the context of LDPC decoding (e.g., ). We also analyzed BP for graph -coloring on a certain class of expander graphs. A further related result deals with the conceptually much simpler Warning Propagation algorithm on certain random 3-CNFs (“planted model”) . In the random -XORSAT problem (random linear equations mod ), Belief Propagation reduces to Warning Propagation due to the algebraic nature of the problem and can thus be analyzed easily . Furthermore, there has been some recent progress on analyzing certain variants of BP (such as the “max-product algorithm”) for certain optimization problems that are polynomial-time solvable in the worst case (e.g., ).
The study of the BP marginals on the undecimated random formula is somewhat related to the so-called reconstruction problem. This problem has been studied on ‘symmetric’ random CSPs, which include problems such as (hyper)graph coloring , but not -SAT. The proofs in are based on indirect arguments (related to the second moment method), which do not seem to extend to an analysis of BPdec.
6 Preliminaries and notation
In this section we collect a few well-known results and introduce a bit of notation. First of all, we note for later reference a well-known estimate of the expected number of satisfying assignments (see, e.g., for a derivation).
Furthermore, we are going to need the following Chernoff bound on the tails of a binomially distributed random variable or, more generally, a sum of independent Bernoulli trials [26, p. 21].
Let be a sum of independent Bernoulli variables with mean . Let
For a real matrix let
Thus, is the norm of viewed as an operator from equipped with the -norm to endowed with the -norm. For a set we let denote the indicator vector of . The following well-known fact about the norm of matrices with diagonal entries equal to zero is going to come in handy.
For a real matrix with zeros on the diagonal we have
Finally, throughout the paper we let denote the set of permutations of .
The probabilistic framework for analyzing BPdec
The single most important technique for analyzing algorithms on the random input is the “method of deferred decisions”. Where it applies, the dynamics of the algorithm can typically be traced tightly via differential equations, martingales, or Markov chains. Virtually all of the previous analyses of algorithms for random -SAT are based on this approach . Unfortunately, the ‘deferred decisions’ technique is limited to very simple, ‘shortsighted’ algorithms that decide upon the value of a variable on the basis of the clauses/variables at distance, say, one or two from in the factor graph . By contrast, in order to assign some variable , BPdec explores clauses at distance up to from , where (potentially) . This renders a ‘deferred decisions’ approach hopeless.
Therefore, to prove Theorem 1.1 we need a fundamentally different strategy. In the present section we set up the probabilistic framework for the analysis. We will basically reduce the analysis of BPdec to the problem of analyzing the BP operator on the formula that is obtained from by substituting ‘true’ for the first variables and simplifying (Theorem 2.2 blow). In the next section we will show that this decimated formula enjoys a few simple quasirandomness properties with probability extremely close to one. Finally, we will show that these properties suffice to trace the BP computation.
Applied to a fix, non-random formula on , BPdec yields an assignment (that may or may not be satisfying). This assignment is random, because BPdec itself is randomized. Hence, for any fixed running BPdec induces a probability distribution on . With the set of all satisfying assignments of , the ‘success probability’ of BPdec on is just
Thus, to establish Theorem 1.1 we need to show that in the random formula,
is exponentially small w.h.p. To this end, we are going to prove that the measure is ‘rather close’ to the uniform distribution on w.h.p., of which constitutes only an exponentially small fraction.
To facilitate the analysis, we are going to work with a slightly modified version of BPdec. While the original BPdec assigns the variables in the natural order , the modified version PermBPdec chooses a permutation of uniformly at random and assigns the variables in the order . Let denote the probability distribution induced on by PermBPdec. Because the uniform distribution over -CNFs is invariant under permutations of the variables, we obtain
Let be a -CNF and let . Given a permutation and a partial assignment , we let denote the formula obtained from by substituting the values for the variables for and simplifying. Formally, is obtained from as follows:
remove any empty clauses (resulting from clauses of that become unsatisfied if we set to for ) from the formula.
For a number and an index we say that is -biased if
Moreover, the triple is -balanced if no more than variables are -biased.
Let be the permutation chosen by PermBPdec, and let be the partial assignment constructed in the first steps. The variable is uniformly distributed over the set of currently unassigned variables. Hence, if is -balanced, then the probability that is -biased is bounded by . (This conclusion was the purpose of decimating the variables in a random order.) Furthermore, given that is not -biased, the probability that PermBPdec will assign set it to ‘true’ lies in the interval . Consequently,
Thus, the smaller , the closer comes to being uniformly distributed. Hence, if -balancedness holds for all with a ‘small’ , then will be close to the uniform distribution on .
To put this observation to work, we define
where is a small enough absolute constant Setting will evidently suffice, but no attempt at finding the optimal has been made.. In addition, we let
Furthermore, .
Since and , we obtain from (15)
Furthermore, for equation (15) yields the upper bound
For we say that is -uniform if
Proceeding by induction on , we are going to use (12) to relate the distribution to the uniform distribution on for -uniform formulas. More precisely, in Section 2.2 we are going to prove
Suppose that is -uniform for all . Then
Proposition 1 reduces the proof of Theorem 1.1 to showing that is -uniform with some appropriate probability.
To prove this, we need two simple definitions. We call a clause of a formula redundant if has another clause such that have at least two variables in common. Furthermore, we call the formula tame if
has no more than redundant clauses, and
no more than variables occur in more than clauses of .
The random formula is tame w.h.p.
Now, the following result provides the key estimate for proving that is -uniform with a very high probability.
There is a constant such that for any satisfying there is so that for large enough the following holds. Fix any permutation of and any assignment . Then for any we have
We defer the proof of Theorem 2.2 to Section 3.
For and a -CNF we let signify the number of pairs such that fails to be -balanced. Then Theorem 2.2 yields
Hence, by Markov’s inequality and the union bound
Since is -uniform if , the assertion follows from (18). ∎
Recalling that , we thus obtain
Hence, if for a sufficiently large constant , then (20) yields . Finally, Theorem 1.1 follows from Fact 2.1. ∎
2 Proof of Proposition 1
We consider an additional variant of BPdec that receives the order in which variables are to be decimated as an input parameter.
BPdec Input: A -SAT formula on and a permutation . Output: An assignment .
Fix a -CNF that is -uniform for all . Let be the set of all permutations on . Let be the probability distribution on pairs induced by choosing a permutation uniformly at random and letting . Then is the -marginal of , i.e.,
In order to study , we consider another distribution on pairs that is easier to analyze and that will turn out to be ‘close’ to . To define , let be the set of all pairs such that is not -balanced. Moreover, let . The distribution is induced by choosing a permutation uniformly at random and running the following algorithm on .
BPdec Input: A -SAT formula on and a permutation . Output: An assignment .
Roughly speaking, disregards the BP outcome if it strays too far from the ‘flat’ vector . We claim that and are related as follows. For let
Thus, is the set of all that coincide with some “up to time ”. In particular, .
For any we have
By construction, for any and any we have
Hence, Bayes’ rule yields that for any pair ,
In particular, . Hence, for any event we obtain
Let be the uniform probability distribution on , and let denote a pair chosen from . To relate and , let be equal to one if and is -biased in , and set otherwise. In addition, let .
For any pair we have
Fix any pair and let be the event that
Then for any we can bound the conditional probability as follows.
In this case is not -balanced. Therefore, step 3 of BPdec’ chooses the value uniformly. Hence, the event occurs with probability .
Since is -balanced, step 3 of BPdec’ uses the BP marginals in order to assign . Because , the variable is not -biased, whence for both and . Hence, the probability that is bounded by .
In this case we just use the trivial fact that the probability of the event is bounded by .
In any case, we obtain the bound . Consequently, as is the uniform distribution, we get
Multiplying (23) up for yields the assertion. ∎
To put Lemma 6 to work, we need to estimate .
We have
We are going to bound the probability that given the values , for .
In this case is -balanced, which means that no more than variables are biased. Since the permutation is chosen uniformly at random, the probability that is -biased is bounded by .
Thus, in either case the conditional probability of the event is bounded by . This implies that the random variable is stochastically dominated by a sum of mutually independent Bernoulli variables with means . Therefore, the assertion follows from Lemma 2 (the Chernoff bound). ∎
Proof of Proposition 1. Combining Lemmas 6 and 7, we see that
Our assumption that is -uniform ensures that for any . Together with (24), this implies that
Finally, consider any . Let . Then
Tracing the Belief Propagation operator
Fix any permutation of and any assignment . Then for any we have
For a -CNF let be the formula obtained by replacing
each occurrence of the literal in by if , and by if , and
each occurrence of the literal in by if , and by if .
the fraction of unassigned variables. Then our induction hypothesis is that for all but variables we have
Assume, furthermore, that is “not too short” – say, . Then is small, and thus the expression in (32) is close to . Hence, we can approximate it by
Thus, we need to show that for all but variables the exponent is close to zero.
we find that the expected number of clauses of length where appears is asymptotically equal to
Indeed, the expected number of clauses of that appears in equals . Furthermore, each of these gives rise to a clause of length in iff exactly among the other variables in the clause are from , while the remaining variables are in and occur with negative signs. (If one of them had a positive sign, the clause would have been satisfied by setting the corresponding variable to true. It would thus not be present in anymore.) Since appears with a random sign in each of these clauses, the sum
can be viewed as a random walk with an expected length of . Thus, we expect an outcome of . In this case, we find that
Together with the Chernoff bound, (36) shows that is unlikely to occur in clauses of lengths less than or more than . Furthermore, our assumption that implies that for all . Hence, we expect that for all but, say, variables
with , ranging over all edges of the factor graph of .
Since is based on , it is a random matrix. One could therefore try to use standard arguments to bound it in some norm (say, ). The problem with this approach is that is very high-dimensional: it operates on a space whose dimension is equal to the number of edges of the factor graph. In effect, standard random matrix arguments do not apply.
To resolve this problem, consider a “projection” of onto a space of dimension merely , namely
One can think of as a signed and weighted adjacency matrix of . Standard arguments easily show that is small with a very high probability. In effect, we expect that for all but, say, variables we have
Rigorizing the sketch.
While the above outlines a strategy for tracing the BP operator, we clearly glossed over numerous issues. The rest of the paper is devoted to rectifying them. To provide a bit of orientation, let us briefly highlight the most important items, and indicate how they are going to be fixed.
The first issue is that Theorem 2.2 claims a rather strong bound on the probability that is -balanced. To obtain this bound, we are going to proceed in two steps: in Section 3.2 we will exhibit a small number quasirandom properties and show that these hold in with the required probability. Then, in Section 3.3 we are going to show deterministically that any formula that has these properties is -balanced.
To study the impact of the exceptional set, we decompose (31) as
Let us now turn this sketch into an actual proof. In Section 3.2 we introduce the quasirandomness property and state the deterministic result about BP on quasirandom formulas (Theorem 3.2). Then, from Section 3.3 onwards, we prove Theorem 3.2. Finally, in Section 4 we establish that the quasirandomness property holds on with the required probability.
2 The quasirandomness property
In this section we will exhibit a few simple quasirandomness properties that is very likely to possess. From Section 3.3 on we will show that these properties suffice to trace the BP operator.
For a variable and a set let
Thus, is the set of all clauses that contain (which may or may not be in ) and at most one other variable from . In addition, there is a condition on the length of the clause in the decimated formula . Recall from Section 3.1 that having assigned the first variables, we should ‘expect’ the average clause length to be .
Moreover, for a variable and a set let
Let . We say that is (-quasirandom if Q0–Q4 in Figure 1 are satisfied.
Condition Q0 simply bounds the number of redundant clauses and the number of variables of very high degree; it well-known to hold for random -CNFs w.h.p. Apart from a bound on the number of very short/very long clauses, Q1 provides a bound on the ‘weight’ of clauses in which variables typically occur, where the weight of a clause is . Moreover, Q2 provides that there is no small set for which the total weight of the clauses touching that set is very big. In addition, Q2 (essentially) requires that for most variables the weights of the clauses where occurs positively/negatively should approximately cancel. Further, Q3 provides a bound on the lengths of clauses that contain many variables from a small set . Finally, the most important condition is Q4, providing a bound on the cut norm of a signed, weighted matrix representation of .
There exists a constant such that for any satisfying there is so that for large and , as in (13) for any we have
The proof of Proposition 2 is a necessary evil: it is long, complicated and based on standard arguments. We defer it to Section 4. Together with the following theorem, which we will establish in Section 3.3, Proposition 2 yields Theorem 2.2.
The rest of this section deals with the proof of Theorem 3.2.
For the rest of Section 3, we keep the notation from Section 3.2 and the assumptions of Theorem 3.2. To unclutter the notation, we let .
3 Belief Propagation on quasirandom formulas: proof of Theorem 3.2
Implementing the strategy outlined in Section 3.1, we are going to trace the BP operator when iterated from the initial point
We have , and for all .
Finally, in Section 3.8 we will derive Theorem 3.2 from Proposition 3 and Proposition 4.
4 Proof of Proposition 3
Furthermore, if , then
The second assertion follows from the elementary inequality for . ∎
Our assumptions and ensure that
whence . Due to the elementary inequality for , (45) thus yields
Multiplying (46) up over and taking logarithms yields
Since (47) holds for both and , the assertion follows. ∎
Moreover, H2 ensures that , whence (48) entails
With respect to the second product, Corollary 3 yields
Furthermore, for any we have
Since by H1, (52) thus yields
Using the elementary inequality for , we obtain from (52), (53) and (54)
Summing these bounds up for , we obtain
Thus, we have established the assertion in either case. ∎
To establish (58), we consider two cases.
Thus, we have established (58) in either case.
5 Proof of Proposition 4
to conclude that the number of variables satisfying T2c is as well.
Hence, there are at most variables that satisfy T2d. In summary, we have shown that
To deal with T2e, observe that if a clause has at least variables that are not harmless, then one of the following statements is true.
contains at least variables that violate either H1, H2, or H4.
contains at least variables that violate condition H3.
Let be the set of clauses for which i. holds, and let be the set of clauses satisfying ii., so that the number of variables satisfying T2e is bounded by .
In addition, let be the set of all clauses of length less than . Since by our choice of , Q1 implies that . Hence, (65) shows that satisfies
Furthermore, let be the set of all clauses such that . Let be the set of variables that occur in at least two clauses from . Then by Q3
whence due to (66). Since , the set contains all variables that occur in at least two clauses from , i.e., all variables that violate condition H3. Therefore, any contains at least variables from . Applying Q3 once more, we obtain
Combining this estimate with the bound (64) on , we conclude that the number of variables satisfying T2e is bounded by Together with (63) this yields the assertion. ∎
6 Proof of Proposition 5
For a variable and we let
In Section 3.7 we are going to establish the following.
Furthermore, by the definition (70) of , we have
Hence, we have established the desired bound in all cases. ∎
Since , (73) implies that
7 Proof of Proposition 6
Therefore, taking exponentials in (79), we obtain
Combining this with (78) and using the approximation for , we see that
To complete the proof, we need to estimate the second summand. Condition T2b implies
Finally, the assertion follows by plugging (83) and (84) into (82). ∎
8 Completing the proof of Theorem 3.2
We are going to show that for all . This will imply Theorem 3.2, because by Proposition 4.
Thus, let . Corollary 5 shows that for . Hence,
If , then trivially and thus . Thus, assume that and pick an arbitrary . Then
Since (by Proposition 3), we have
Furthermore, since Corollary 5 yields
Therefore, letting , we obtain
Proof of Proposition 2
Recall from (13) that and that . Suppose that . Then satisfies . We assume throughout that for some large enough number ; in particular, we assume that . Set
We are going to deal with the number of variables that appear in “short” clauses first.
With probability at least in there are no more than clauses of length less than .
Let’s start by bounding the total number of “short” clauses. Its expectation is bounded by
Hence, the assertion follows from (86) and Fact 4.1. ∎
With probability at least in no more than variables appear in clauses of length less than .
As a next step, we are going to bound the number of variables that appear in clauses of length .
With probability at least we have
Hence, if we get
Hence, Fact 4.1 implies that (87) holds in with probability at least . ∎
With probability at least no more than variables appear in clauses of length greater than .
The number of such variables is bounded by Therefore, the assertion follows from Lemma 16. ∎
We now come to the second part of Q1. We start with the following simple observation.
With probability at least no more than variables are such that .
Let be the set of all variables such that . Since the random variables are mutually independent, Lemma 2 (the Chernoff bound) yields
Since and , we have
Furthermore, if for all and all , then
where we used that , so that . Hence, the assertion follows from (89), Fact 4.1 and the bound on the number of variables in clauses of length provided by Lemma 16. ∎
Establishing Q2.
Suppose that , and . Let
in the last step we used that , which follows from our assumption that , and that . Hence, by Lemma 2 (the Chernoff bound) in the case , we get
Let be the number of variables for which .
Suppose that , and . Then for any we have
Hence, Lemma 2 (the Chernoff bound) yields
We apply the union bound. There are at most ways to choose the set , and no more than ways to choose . Hence, by Lemma 20 the probability that there exist such that is bounded by
With probability the random formula has the following property.
If has size , then for all but variables we have
Given of size , let be the set of all variables with the following two properties.
For all we have .
For all , , and we have .
Then for all we have
Thus, to complete the proof we need to show that with sufficiently high probability is sufficiently big for all . By Lemmas 15 and 16 with probability the number of variables that fail to satisfy i. is less than . Furthermore, by Corollary 8 and Fact 4.1, with probability the random formula satisfies (90). In this case, for all the number of variables that fail to satisfy ii. is bounded by . Thus, with probability we have for all , as desired. ∎
For different variables the random variables are independent (because we fix the position where occurs). Hence, is a binomial random variable, and (91) yields
Consequently, Lemma 2 (the Chernoff bound) gives
provided that is sufficiently large. ∎
Let be such that , . By Lemma 21 and the union bound, the probability that there is a set such that is bounded by
Since there are no more than ways to choose , the assertion follows. ∎
With probability the random formula has the following property.
Given , let be the set of all with the following two properties.
For all we have .
For all , we have .
Then for all we have
Furthermore, by Lemmas 15 and 16 with probability the number of variables that fail to satisfy i. is less than . In addition, by Corollary 10 and Fact 4.1 with probability the number of variables that satisfy ii. in is bounded by . Thus, with probability we have for all , as claimed. ∎
Establishing Q3.
,
For all we have .
All satisfy .
for a certain absolute constant , because . Since all clause lengths are required to be between and , we obtain . Therefore,
Since and , we have for sufficiently large. Hence, (95) yields
Plugging (96) into (94), we obtain for large enough and
Let be the event that there exist a number , a set of size and , such that occurs. Then occurs in with probability .
Since there are only possible choices of , , and , (97) and Fact 4.1 imply the assertion. ∎
With probability at least , has the following property.
Let and let have size . Then
Lemmas 15 and 16 and Corollary 12 imply that with probability at least , has the following properties.
.
Assume that i. and ii. hold and let be a set of size . Let . Let be the set of all clauses of such that and . Then i. implies that
Establishing Q4.
Let . Analyzing the operator directly is a little awkward. Therefore, we will decompose into a sum of several operators that are easier to investigate. For any , , , and any distinct we define
while we let . Moreover, for we let
For any , and for any set we have
The proof is based on Fact 1.5. Fix two sets . For each and any the two random variables
Hence, Lemma 2 (the Chernoff bound) yields
Thus, with probability we have
Finally, the assertion follows from Fact 1.5. ∎
Then .
Furthermore, if for all , then by the triangle inequality
To complete the proof of Q4, we observe that for the entries of the matrices and differ only if either or occurs in a redundant clause. Consequently, Q0 ensures that Therefore, Fact 4.1 and Corollary 14 imply satisfies Q4 with probability at least .