Accelerated Message Passing for Entropy-Regularized MAP Inference

Jonathan N. Lee, Aldo Pacchiano, Peter L. Bartlett, Michael I. Jordan

Introduction

Maximum A Posteriori (MAP) inference is a fundamental task in machine learning, essential for finding the most likely configuration of variables in Markov Random Fields (MRFs)—models frequently used to represent dependencies between pixels in an image or genes in a sequence. Because exact inference for discrete variables is an NP-hard combinatorial problem, practitioners typically rely on Linear Programming (LP) relaxations. These relaxations transform the discrete challenge into a continuous optimization problem over a "local polytope."

Standard message passing algorithms solve this by performing coordinate descent on the dual of the LP. To improve stability and provide convergence guarantees, researchers often add an entropy regularization term. However, even these "smooth" message passing algorithms can take a prohibitively long time to reach high-precision solutions on large-scale graphs. This paper tackles that bottleneck by introducing Nesterov-style acceleration to entropy-regularized message passing.

Methodology: Nesterov Acceleration for Message Passing

The authors propose two accelerated algorithms based on common message passing architectures:

  1. Accel-EMP (Edge Message Passing): Updates are performed on a per-edge basis.
  2. Accel-SMP (Star Message Passing): Updates are performed for a central vertex and all its incident edges simultaneously.

The core innovation lies in adapting Nesterov's "estimate sequence" technique to the specific structure of message passing. Unlike standard gradient descent, message passing relies on full block-coordinate minimization—meaning that when a node or edge is updated, the algorithm finds the exact minimum for that specific block.

The accelerated variants maintain three sequences of variables ($\lambda$, $v$, and $y$) that are combined at each step. Crucially, because the update rules for the auxiliary variables reuse the "slacks" (gradients) already calculated for the main update, this acceleration adds almost zero computational overhead per iteration. The algorithms also incorporate a projection step to ensure the final solution remains feasible within the local polytope constraints.

Theoretical Guarantees and Key Insights

The most significant contribution of this work is the theoretical improvement in convergence rates. Standard smooth message passing requires $O(m^5/\epsilon^3)$ iterations to find an $\epsilon$-optimal solution, where $m$ is the number of edges. The proposed accelerated algorithms improve this bound to $O(m^{9/2}/\epsilon^2)$.

This theoretical breakthrough yields two major insights:

  • Improved $\epsilon$-Dependence: By shifting from $1/\epsilon^3$ to $1/\epsilon^2$, the accelerated versions scale significantly better as higher precision (smaller $\epsilon$) is required.
  • Better Scaling with Graph Size: The algorithms shave off a factor of $m^{1/2}$ in their dependence on the number of edges, making them more viable for larger graphs.

Furthermore, the authors prove that if the LP relaxation is "tight" (meaning it perfectly matches the original discrete problem), Accel-EMP and Accel-SMP recover the exact MAP solution in fewer iterations than standard methods.

Empirical Performance

The algorithms were evaluated on synthetic benchmarks, including Erdős-Rényi random graphs ($n=100$ vertices) and a multi-label Potts model ($d=3$ labels per vertex), a standard physics-inspired model used in computer vision.

Across varying graph sizes ($n=9, 36, 81$), the accelerated versions consistently demonstrated a positive "competitive ratio," achieving lower error for the same number of updates compared to standard methods. Star Message Passing (SMP) emerged as the overall empirical winner in terms of raw iteration count. The acceleration proved particularly effective in the early stages of optimization, yielding a rapid drop in error before the performance improvement eventually tapered off.

Limitations and Future Work

While the theoretical and empirical gains are substantial, the authors note a few limitations and avenues for future research:

  • Conservative Bounds: The theoretical upper bounds derived in the paper may still be overly conservative compared to the actual performance observed in experiments.
  • Randomized vs. Greedy Selection: The current proofs rely on the randomized selection of nodes or edges to update. In practice, greedy selection (updating the node with the largest error) is common, and proving accelerated rates for greedy schemes remains an open and difficult challenge.
  • Optimal Transport Connections: The authors highlight mathematical similarities between MAP inference and Optimal Transport (specifically the Sinkhorn algorithm). They suggest that future work could borrow techniques from the rapidly advancing field of optimal transport to achieve even faster inference algorithms.

Summary updated

BibTeX
@inproceedings{lee2020accelerated,
  author = {Jonathan N. Lee and Aldo Pacchiano and Peter L. Bartlett and Michael I. Jordan},
  title = {{Accelerated Message Passing for Entropy-Regularized MAP Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure