Many inference problems ask for the single most likely joint assignment of thousands of discrete variables, such as pixel depths or protein side-chain shapes. The best convergent method for this, sequential tree-reweighted message passing, has a serious limitation. It splits the loopy problem into trees, solves each tree exactly, and stitches the trees together through shared variables, but it must do so one variable at a time in a fixed order. Its parallel versions, which would suit networks of machines or devices, oscillate and fail to converge. Separately, decentralized optimization has studied a structurally similar failure. Agents that alternate "average with neighbors" and "apply a local non-smooth step" settle at a biased point, because averaging and the non-smooth step do not commute. The field fixed this with a cheap correction: one extra memory variable per agent that records accumulated disagreement.
The claim of this note is that these are the same failure. Parallel tree-reweighted max-product is a decentralized Bregman-proximal method run with an effectively infinite step size. Each agent's non-smooth term is the indicator of its own tree's marginal polytope, and the "averaging" is the reweighting of beliefs across trees. Adding a disagreement-tracking correction of the Exact Diffusion / NIDS type should therefore produce a fully parallel, master-free tree-reweighted algorithm. That algorithm should converge to the linear-programming optimum rather than stalling at weak tree agreement. It should also keep working when copies of a variable can only be reconciled by sparse gossip, which is the regime that no existing tree-decomposition solver handles.
Background and where this sits
In tree-reweighted message passing, introduced by Wainwright et al., a loopy graph is written as a weighted mixture of spanning trees. If all trees agree on one assignment, that assignment is certified globally optimal. Message passing of this kind is coordinate ascent on the dual of a linear-programming (LP) relaxation, a result shown by Lazic et al. and generalized by Swoboda and Kuske. The sequential variant TRW-S guarantees a non-decreasing lower bound. However, it reaches only weak tree agreement, a coordinate-ascent deadlock that can sit below the LP optimum, and its Gauss-Seidel order is inherently serial. Its parallel cousins oscillate. Even with damping, parallel tree-reweighted message passing fails on random regular graphs, as reported by Jancsary and Matz. That paper is the key negative result motivating this proposal: the problem is not schedule noise that damping can smooth away.
On the decentralized side, P2D2 identifies non-commutativity of the proximal map with neighbor averaging as the cause of fixed-step bias. It removes the bias with an intermediate dual variable. The unified ABC framework shows that EXTRA, NIDS and Exact Diffusion are all instances of one operator-splitting template. Both papers, however, assume a shared regularizer across agents and strongly convex smooth losses. Our setting violates both assumptions. The non-smooth terms are heterogeneous (each agent has its own tree polytope), and the smooth part is linear, with zero curvature. These two papers supply the correction mechanism. The heterogeneity and zero curvature are the theoretical gap we must close.
The closest existing method is Bethe-ADMM. It runs the alternating direction method of multipliers over tree subproblems, using the Bethe-entropy Bregman divergence as the proximal term so that each tree step is a closed-form sum-product sweep. It proves an ergodic $O(1/T)$ rate. Related methods use other decomposition schemes. AD³ uses quadratic ADMM. Accelerated dual decomposition uses Nesterov entropic smoothing. Distributed Anytime MAP Inference uses Dantzig-Wolfe decomposition.
All four of these methods need exact averaging over every copy of each variable, performed by a master or by an all-to-all exchange among the holders of a variable. Under exact averaging, an ADMM dual variable already plays the role of a disagreement tracker. We therefore expect our method to reduce to something close to Bethe-ADMM when averaging is exact, and we say so up front. The new regime is the one where the agents holding the copies of a variable are linked only by a sparse communication graph, so that averaging is itself a gossip step that mixes imperfectly. MP-Jacobi combines exact tree sweeps with block-Jacobi boundary updates on loopy graphs, but only for smooth continuous programs, and it provides no dual bound. Our proposal targets the discrete, non-smooth case that MP-Jacobi leaves open.
Core Claim
Each agent $i$ owns a tree $T_i$ and its local pseudo-marginals $\mu_i$. Each variable $v$ has copies held by a set of agents $S_v$ that communicate through a mixing matrix $W^{(v)}$, which is doubly stochastic, supported on their communication links, and weighted by the edge appearance probabilities. The LP relaxation then becomes the following problem:
$$\max_{\{\mu_i\}} \sum_i \langle \theta_i, \mu_i \rangle - \iota_{\mathcal{M}(T_i)}(\mu_i) \quad \text{s.t. copies of each variable's marginal agree across } S_v .$$
Here $\theta_i$ is agent $i$'s share of the potentials, $\mathcal{M}(T_i)$ is the marginal polytope of tree $T_i$, and $\iota$ is its indicator, which is $0$ inside the polytope and $-\infty$ outside.
Parallel tree-reweighted message passing (TRW-T) alternates two steps. Each agent solves its tree exactly, which is a Bethe-Bregman proximal step with infinite step size. Then the copies are ρ-averaged, which is a single consensus step with $W^{(v)}$ equal to exact averaging. The first thing this project must establish is that this correspondence is exact.
Our proposed algorithm, NIDS-TRW, makes two changes. It uses a finite step size, which amounts to a temperature, so that each tree step remains a single sum-product sweep in the style of Bethe-ADMM. It also adds one tracking variable per variable copy that accumulates past disagreement, exactly as Exact Diffusion does. This leaves the per-round communication identical to parallel TRW: each round, each agent sends its current node marginals to its communication neighbors.
The claim to be proved has three parts. First, NIDS-TRW converges to an LP-optimal point for any connected copy-communication graph and any fixed step below a bound that each agent can compute locally. Second, its fixed points cannot be weak-tree-agreement deadlocks. Third, the communication rounds needed to reach dual gap $\epsilon$ scale with the condition number $\chi$ of the gossip matrices, not with the density of short cycles in the factor graph.
We also conjecture a linear rate. The basis is that the objective is polyhedral, and polyhedral problems satisfy error bounds that substitute for strong convexity. This is a hypothesis, not something the file establishes, and it is the most uncertain piece of the theory.
Research Program
The first step is the exact derivation. We will write TRW-T, TRW-E and TRW-S as operators in the $T = T_C T_f T_g T_B$ splitting form of the ABC framework. In this form, $T_g$ is the Bethe-Bregman proximal map onto $\mathcal{M}(T_i)$, $T_f$ is the linear potential term, and $T_C$ is ρ-weighted copy averaging. From this we will show where the fixed-step bias comes from, and we will characterize the oscillating orbits of TRW-T as the non-convergent behavior of an uncorrected operator. If the correspondence turns out to be only approximate, we will report how it fails, because that would itself explain the instabilities documented by Jancsary and Matz.
The second step is the convergence analysis. The ABC analysis assumes a shared non-smooth term and Euclidean proximal maps. We must extend it to heterogeneous indicator functions and to a Bregman (Bethe-entropy) geometry. The natural route is to prove convergence on the primal-dual saddle function with a Bethe-divergence Lyapunov term, borrowing the descent argument of Bethe-ADMM for the tree steps. We then attempt the linear rate through a Hoffman-type error bound on the polyhedral feasible set. We will also check against the time-varying lower bounds of Kovalev et al. that the $\chi$-dependence we obtain is not better than allowed, which serves as a sanity bound on any rate we claim.
The third step is rounding and certificates. At every round, each agent can read off its tree's maximizing assignment. Agreement across neighbors yields the tree-agreement optimality certificate of Wainwright et al., and checking it requires one extra local exchange. Each agent also computes its local contribution to the dual bound, so the bound can be summed by gossip to give an anytime lower bound. When the relaxation has an integrality gap, the method inherits the limitation every LP method has, which Sanghavi and Malioutov make precise for matching. We do not claim to close integrality gaps.
Baselines
The naive reference point is parallel TRW-T with standard damping, run with exactly the same tree cover, the same agent assignment and the same communication graph. It isolates what the correction adds when everything else is fixed. Beating it means converging (oscillation amplitude of the dual bound falling to numerical zero) on instances where it does not, and reaching a strictly higher final dual bound.
The serial gold standard is TRW-S. We run it centrally with full access to the graph, and we treat its bound at convergence as the target. We count its sequential sweeps as communication rounds under the most charitable accounting. Beating it means matching its bound with fewer wall-clock rounds on many agents, and exceeding its bound on instances where it stalls at weak tree agreement. On the Rosetta side-chain set, the reported result is that TRW-S finds the optimum on 6 of 30 graphs (Distributed Anytime MAP Inference).
The strongest existing method on the question of certified optimal solutions is DW-LP from that same paper. It reports 16 of 30 Rosetta graphs solved optimally, against 1 for MPLP. On laser-scan matching it reports 44.99% accuracy against 28.88% for loopy BP, with 0% versus 16.16% invalid many-to-one matches. DW-LP uses a central master LP. We run it from the authors' description with exact central coordination, and we count each master round as one communication round. Our target is not to beat it with a master. Our target is to reach comparable optimal-solution counts, at least around 16 of 30, using only neighbor gossip. Matching it under strictly weaker communication counts as a success.
The ablation that isolates the key ingredient is Bethe-ADMM with its master averaging replaced by $K$ rounds of gossip per outer iteration. We follow the multi-consensus recipe of PMGT-VR and sweep $K$. This baseline has the same tree steps and the same Bregman geometry as our method, and differs only in using ADMM with inexact averaging instead of disagreement tracking with single-step gossip. Under exact averaging we predict the two coincide up to constants. Beating this baseline means fewer total communication rounds to a fixed dual gap as the copy-graph spectral gap shrinks.
We also run gossip-based smoothed accelerated dual decomposition in the style of Jojic et al.. For this baseline, temperature and step size are tuned on held-out instances with the same tuning budget we give our own step size.
Why not just…?
Why not just damp parallel TRW or loopy BP more heavily? Damping changes how fast messages move, not which fixed points exist. Jancsary and Matz report damped tree-reweighted message passing failing to converge on random regular graphs where convex solvers succeed every time. On matching problems, loopy BP produces invalid assignments 16.16% of the time (Distributed Anytime MAP Inference). Our first baseline sweeps the damping factor across its full range on the same instances, so any regime where damping suffices will be visible.
Why not just run Bethe-ADMM, letting each variable's holders average their copies directly? This is the real threat. When all holders of a variable can talk to each other, ADMM's dual variable already tracks disagreement, and we expect no meaningful gain. We will report this equivalence rather than hide it. The proposal's value then rests entirely on the gossip regime and on the analysis that explains why parallel TRW fails. The gossip-ADMM ablation settles the question. If its round count matches ours across shrinking spectral gaps, the algorithmic contribution collapses to the theory, and we will say so.
Why not just parallelize TRW-S with a graph-coloring schedule, updating all red nodes and then all black nodes of a grid? On bipartite grids this keeps the monotone bound and is almost free. It would plausibly match us on Tsukuba-style lattices when communication is perfect. However, it still converges only to weak tree agreement. It also needs a globally synchronized phase schedule, and it says nothing about copies reconciled over gossip. We include it as a baseline on grids. We expect it to tie us on the speed of the bound and to lose only on instances where weak tree agreement falls below the LP optimum. We will measure how often that happens, by comparing against the exact LP value from a central solver.
Why not just run decentralized subgradient descent on the dual? Its rate is $O(1/\sqrt{t})$ (Ghosh et al.), and the centralized analogue is already beaten by orders of magnitude by smoothing in Jojic et al.. We include it only as a floor.
Proposed Experiments
All experiments use benchmarks from the file. On synthetic $30\times30$ Ising and Potts grids and random regular graphs with varying coupling strength, as in Jojic et al. and Jancsary and Matz, we cover each graph with row and column chains. We place the chains on agents so that each variable's copies are connected by a ring, path or random geometric communication graph, which lets us control $\chi$ independently of the cycle structure of the factor graph. We then run Tsukuba stereo (TRW-S), where no numeric energy values are available in the file, so we report relative energy and bound gaps against TRW-S rerun ourselves. We also run the 30 Rosetta side-chain graphs and the 20 laser-scan matching sets from Distributed Anytime MAP Inference, and the 1jo8/1or7 proteins used by Bethe-ADMM. The metrics are four: dual-bound gap to the exact LP value as a function of communication rounds; the count of instances where tree agreement certifies optimality; oscillation amplitude of the bound; and, for matching, accuracy and the rate of many-to-one violations.
Three checks decide the project. First, removing the tracking variable while keeping everything else fixed must bring back TRW-T's oscillation on the random regular graphs. This is the direct test of the central claim. Second, holding the factor graph fixed while varying the communication topology, the rounds needed to reach a fixed gap should follow $\chi$. Conversely, holding $\chi$ fixed while increasing cycle density and coupling frustration should leave the round count roughly flat, with some loss of tightness allowed. Third, on Rosetta, gossip-only NIDS-TRW should certify optimality on clearly more than TRW-S's 6 of 30 graphs, approaching DW-LP's 16, while never using a master. If the second check fails, with rounds tracking cycle density instead of $\chi$, then the separation claim is wrong and the method is only a parallel TRW fix.
References
- Exact MAP Estimates by (Hyper)tree Agreement
- Solving the Uncapacitated Facility Location Problem Using Message Passing Algorithms
- A Dual Ascent Framework for Lagrangean Decomposition of Combinatorial Problems
- Convergent tree-reweighted message passing for energy minimization
- Convergent Decomposition Solvers for Tree-reweighted Free Energies
- A Linearly Convergent Proximal Gradient Algorithm for Decentralized Optimization
- Distributed Algorithms for Composite Optimization: Unified Framework and Convergence Analysis
- Bethe-ADMM for Tree Decomposition based Parallel MAP Inference
- Alternating Directions Dual Decomposition
- Accelerated dual decomposition for MAP inference
- Distributed Anytime MAP Inference
- A New Decomposition Paradigm for Graph-structured Nonlinear Programs via Message Passing
- Lower Bounds and Optimal Algorithms for Non-Smooth Convex Decentralized Optimization over Time-Varying Networks
- Linear programming analysis of loopy belief propagation for weighted matching
- PMGT-VR: A decentralized proximal-gradient algorithmic framework with variance reduction
- Gossip algorithms: design, analysis and applications