The generic update of Theorem 2.2 is a machine. Feed it a combinatorial problem written as a factor graph and it produces a recursion, a Bethe free entropy, and — in the min-sum limit — a candidate assignment. This lecture specializes the machine to Example 1.1, Example 1.2, Example 1.3, and Example 1.4, then states when the output is trustworthy.
The -spin model
The Ising -spin Hamiltonian is the canonical reason to use a factor graph rather than a pairwise graph. Each triplet is a ternary factor , plus a field . Specializing Theorem 2.2 with ,
The factor-to-variable update is a double sum — no pairwise reduction is possible. The Bethe entropy is the three-term formula of Module 3 with the obvious , , .
Independent set / hard-core
Represent membership by ( iff ). The independence constraint is the hard factor , and a fugacity field weights sets by size:
The uniform measure over independent sets is the case . This is the hard-core lattice gas.
Figure 4.1. Left: a problem graph with independent set {1,3} shaded. Right: variables on vertices, a hard factor on each edge.
Figure 4.1 is the pairwise case: messages live on directed edges of the original graph. Let be the cavity probability that is occupied. Substituting and into the pairwise BP rule: for the weight is ; for it is (an occupied forbids all its neighbours). Hence
with the occupation of . The Bethe free entropy collapses to
The regular tree, and Kelly’s threshold
On the infinite -regular tree every directed edge is equivalent, so takes a single value solving
Since is decreasing in , the hard-core model is an antiferromagnet: a large message discourages its neighbour from being occupied. The symmetric fixed point is unique, but it can lose stability to a two-cycle — a sublattice (even/odd) ordering.
The stability slope
Let , so and , whence . Differentiating, and , so at the fixed point
The slope is purely geometric: it depends on the fixed point only through the occupation.
The two-sublattice map , has its symmetric fixed point become unstable exactly when :
For this is . Below the Gibbs measure on the tree is unique and BP has a single, stable, homogeneous fixed point; above it the even/odd ordering appears. On loopy graphs that is the onset of replica-symmetry breaking for maximum independent set ().
Matching
A matching selects edges so that no two share a vertex. Put a binary variable on each edge, a fugacity , and a hard constraint at each vertex:
𝟙
The factor graph, Figure 4.2, is dual to independent set: graph edges are the variables, graph vertices are the hard factors.
AeBfCgDsquares: verticesat most one edgecircles: edgesbinary variablesFigure 4.2. Matching is dual to independent set: variables on edges, hard factors on vertices.
Let (resp. ) be the partition function of the cavity subtree rooted at , with edge removed, in which is unmatched (resp. matched to one of its other neighbours). The availability collapses the recursion to
The edge is matched only if both endpoints are available. Matching is replica-symmetric and polynomial; BP/min-sum is exact whenever the LP relaxation is tight. Colouring, next, is the opposite.
Graph colouring
A -colouring assigns ; a proper colouring has no monochromatic edge. The antiferromagnetic Potts law
penalizes each monochromatic edge by ; enforces proper colouring. Every factor is binary, so the factor-to-variable message can be eliminated. Writing , the update on the original graph becomes
The bracket is the probability that neighbour permits to take colour . BP multiplies these permissions under tree independence.
The uniform messages solve on any graph — the paramagnetic fixed point. Linearizing around it, a colour perturbation propagates on the tree with a -fold Jacobian eigenvalue . The paramagnet loses local stability at the Kesten–Stigum threshold: as ,
Figure 4.3 is the resulting picture. Below the paramagnet is locally stable and BP, started from a random initialization, stays uninformative. Above it, a planted colouring is locally detectable. Between the clustering (dynamical) transition and the colourability threshold sits a hard phase: solutions exist but are shattered into clusters, each a BP fixed point, and BP-guided decimation fails.
easyBP coloursharduse SPnoneZ = 0c_KS = (q-1)^2c_col ~ 2q log qFigure 4.3. Random q-colouring as a function of mean degree. The Kesten-Stigum line is where the paramagnetic BP fixed point loses local stability.
The two-line labels in 44-high boxes: skill says 46 high and 18 between baselines. Baselines at 68 and 86 is 18 apart. Box y=48 height=44 is 2 short. I’ll bump height to 46.
Also muted labels below at y=128 may overlap each other? “c_KS = (q-1)^2” at x=180 and “c_col ~ 2 q log q” at x=370. Far apart. Good.
The “uncolourable” text is long for 140px box. “uncolourable” is ~11 chars. Might spill. Use “none” as the title line and “Z = 0” as muted.
Let me fix that figure in a follow-up edit. I’ll continue the prose.
When is BP the right solver?
The organizing principle is a single dichotomy: BP is accurate and efficient in the replica-symmetric phase, and it degrades — predictably — as the solution space fractures into clusters.
Reach for BP when the interaction graph is sparse and locally tree-like, the problem is replica-symmetric (no clustering), and you want marginals or a free-energy estimate. It is then fast, often asymptotically exact, and sometimes provably so (Ising on locally tree-like graphs; Potts/colouring on -regular graphs in the RS phase; random -SAT under a no-long-range-correlation condition).
Be cautious when
the graph is dense or has many short loops — use generalized BP, or exact contraction at cost ;
interactions are frustrated / antiferromagnetic — undamped parallel BP oscillates; damping or sequential updates restore convergence, until the Bethe description itself breaks;
the problem is in its clustered / hard phase — plain BP loses the ensemble; survey propagation (BP one RSB level up) is the algorithm that continues to work, famously on random -SAT near the satisfiability threshold.
A last, structural warning. Heskes (2003): stable fixed points of loopy BP are local minima of the Bethe free energy. Unstable fixed points are saddles. Nothing forces the minimum BP reaches (if any) to be the global one. A ferromagnet below makes the point concrete: the paramagnetic messages are a genuine BP fixed point sitting at a local maximum of the free energy, between two ferromagnetic wells. BP launched from a symmetric initialization sits there forever. Only a symmetry-breaking perturbation lets it flow to a global minimum.
Note 4.1 (Takeaway).
Where the interaction graph is locally tree-like and correlations decay, message passing is both exact and efficient. Where that fails — frustration, clustering, replica-symmetry breaking — BP is the diagnostic that tells us so, and the launch point for the algorithms (survey propagation, reinforcement, convexified message passing, exact contraction) that take over.