Cavity Method — Bethe Lattice

Belief propagation on a random 3-regular graph. Cavity fields h_i (messages) iterate until convergence, computing Ising marginals. Watch messages converge and magnetization emerge as temperature drops below T_c.

Bethe T_c = J/atanh(1/√2)
Iteration: 0
Convergence:
Magnetization: