Back to Module 1 · Module 2 · Module 3

These are Exercises 5.1 and 5.2 of Krzakala & Zdeborová, rewritten as callouts, plus a loopy-graph check that matches the gadget in Module 3.

Problem 1

Problem 1.1 (The 3-spin model as a factor graph).

For the Ising -spin model , , write (i) the Boltzmann law, (ii) the factor graph, and (iii) the BP equations and the Bethe free entropy.

Problem 2

Problem 1.2 (Independent set).

Write a probability distribution (a) uniform over independent sets of a graph and (b) weighted by . Give the factor graph, specialize the BP equations, and write the Bethe free entropy.

Problem 3

Problem 1.3 (Matching).

Do the same for matchings, with a weight favouring larger matchings.

Problem 4

Problem 1.4 (BP is Bethe stationarity).

Show that the BP equations are the stationarity conditions of the Bethe free entropy with respect to the messages, under and on every edge.

Problem 5

Problem 1.5 (A 4-cycle by hand).

On a -cycle with and no fields, run BP for two parallel iterations from the uniform start . Compare the resulting single-variable beliefs to the exact (brute-force) marginals. Then put a field on one spin and try again — the gadget in Module 3 does the arithmetic.

Optional: set (antiferromagnet) and damping . What happens to the iteration?