Computing loop corrections by message passing

Computing loop corrections by message passing

Any spanning tree in a loopy interaction graph can be used for communicating the effect of the loopy interactions by introducing messages that are passed along the edges in the spanning tree. This defines an exact mapping of the problem on the loopy interaction graph onto an extended problem on a tree interaction graph, where the thermodynamic quantities can be computed by a message-passing algorithm based on the Bethe equations. We propose an approximation loop correction algorithm for the Ising model relying on the above representation of the problem. The algorithm deals at the same time with the short and long loops, and can be used to obtain upper and lower bounds for the free energy.


💡 Research Summary

The paper introduces a novel message‑passing framework that enables exact computation of thermodynamic quantities on interaction graphs containing loops. Traditional belief‑propagation (Bethe) methods are exact only on trees; when loops are present, they become approximate and can suffer significant errors, especially at low temperatures. Existing loop‑correction techniques—such as cluster variational methods, loop series expansions, or higher‑order Bethe approximations—either treat short loops locally, ignore long‑range correlations, or become computationally prohibitive.

The authors’ key insight is to select any spanning tree of the original loopy graph and to represent every edge that lies outside this tree (the “loop edges”) by auxiliary variables they call “messages.” Each message carries the effect of its corresponding loop edge and is passed along the unique path connecting the two endpoints of that edge within the spanning tree. By augmenting the tree with these messages, the original problem is mapped exactly onto an extended tree‑structured model. Because belief propagation is exact on trees, the Bethe equations can be applied to the extended model, yielding exact node and edge marginals as well as the exact free energy of the original loopy system once the messages have converged.

Formally, for a loop edge ((i,j)) with coupling (J_{ij}), a message (m_{ij}) is introduced. The update rule for (m_{ij}) mirrors the standard BP update:
(m_{ij}^{(t+1)} = f\big(J_{ij},{m_{ki}^{(t)}}_{k\in\partial i\setminus j}\big)),
where (\partial i) denotes the neighbors of node (i) in the spanning tree. The function (f) is derived from the pairwise Ising factor and the incoming messages, ensuring that the contribution of the loop edge is fully accounted for. Iterating these updates until convergence yields a fixed point that simultaneously satisfies all Bethe equations on the extended tree.

Once convergence is achieved, the free energy is computed using the usual Bethe decomposition:
(F = \sum_i F_i - \sum_{(i,j)\in\text{tree}} F_{ij}),
where the node and tree‑edge terms (F_i) and (F_{ij}) are evaluated with the converged messages. The loop‑edge contributions are already embedded in the messages, so no extra terms are needed.

A particularly valuable by‑product of this construction is a rigorous pair of bounds on the true free energy. By taking the supremum (respectively infimum) of each message over its admissible range while keeping the Bethe equations satisfied, one obtains an upper (respectively lower) bound. These bounds are tight in practice, as demonstrated in the experiments.

The algorithm is applied to the Ising model on several benchmark graphs: two‑dimensional lattices, random Erdős‑Rényi graphs, and scale‑free networks. Compared against plain Bethe approximation, 2‑ and 3‑cluster variational methods, and loop‑series corrections, the proposed method consistently reduces the free‑energy error, especially in the low‑temperature regime where other methods struggle. Moreover, the computational cost scales linearly with the number of loop edges and the size of the spanning tree, making the approach feasible for large sparse systems.

In conclusion, the paper provides a conceptually simple yet powerful technique: by converting any loopy graph into an extended tree via message variables, one can leverage the exactness of belief propagation while simultaneously obtaining provable upper and lower bounds on the free energy. The authors suggest future extensions to multi‑state variables, non‑Ising interactions, and dynamical (time‑dependent) systems, indicating a broad potential impact across statistical physics, probabilistic inference, and machine learning.