Accelerated dual decomposition for MAP inference

Vladimir Jojic, Stephen Gould, Daphne Koller

Introduction

In fields like computer vision and computational biology, Markov Random Fields (MRFs) are heavily utilized to model complex systems. A core task within these models is Maximum A Posteriori (MAP) inference: finding the single most likely configuration of all variables.

Because exact MAP inference for general graphs is NP-hard, researchers typically solve a "relaxed" version of the problem using dual decomposition. This approach breaks a large, complex problem into many smaller "slave" subproblems that are easy to solve (like trees or small clusters). A "master" algorithm then coordinates these slaves to agree on a global solution.

However, existing "master" algorithms have significant drawbacks:

  1. Subgradient methods are robust but painfully slow, requiring $O(1/\epsilon^2)$ iterations to reach a specific accuracy $\epsilon$.
  2. Coordinate descent methods (like max-product message passing) are fast but can get stuck in local optima or "deadlock" without reaching the global optimum of the relaxation.

This paper introduces a significantly faster algorithm for MAP inference by applying Nesterov’s smoothing technique to the dual decomposition framework. By transforming a non-smooth optimization problem into a smooth one, the authors achieve a convergence rate of $O(1/\epsilon)$, representing a massive quadratic speedup over previous state-of-the-art guarantees.

Methods: Nesterov's Smoothing

The authors bridge the gap between slow subgradient methods and deadlock-prone coordinate descent by introducing Nesterov’s Smoothing.

  1. Smoothing the Slaves: They add a "proximal regularization" term (specifically, an entropic term) to the objective of each slave subproblem. This transforms the standard MAP subproblem—which relies on a hard "max" operation—into something resembling a log-partition function (a "soft-max" or "sum-product" operation) controlled by a specific temperature parameter $\mu$.
  2. The Smooth Master: Because the slave problems are now smooth, the overall dual objective becomes differentiable. This differentiability unlocks the use of Nesterov’s Optimal Method, a highly efficient accelerated gradient descent scheme.
  3. The Algorithm: The resulting algorithm involves collecting marginals from the slaves (acting as "messages") and updating the coordination variables using a specific convex combination of current and previous gradients.
Geometric illustration of Nesterov's accelerated gradient update steps.

Crucially, the authors prove that by choosing the right "temperature" for the smoothing, they can guarantee an $\epsilon$-accurate solution to the original, non-smooth problem in $O(1/\epsilon)$ time.

Key Insights

  • The Quadratic Speedup: Moving from $O(1/\epsilon^2)$ to $O(1/\epsilon)$ is a massive theoretical and practical win. If a practitioner requires 10x more precision, the old method takes 100x longer, whereas this new method only takes 10x longer.
  • Max-Product vs. Sum-Product: The paper provides a formal, constructive link between these two paradigms. It demonstrates that solving a MAP problem (max-product) can be executed efficiently by solving a sequence of smoothed problems that look like marginalization (sum-product) at a low temperature.
  • Parallelism: Like standard dual decomposition, the "slave" problems are entirely independent. This means the algorithm can be easily distributed across multiple CPU cores or machines.
  • Uniform Bounds: The authors show that the approximation error introduced by smoothing is uniformly bounded, ensuring that optimizing the "wrong" (smoothed) objective still reliably leads to the "right" (original) answer.

Experimental Results

The authors evaluated their approach on two main benchmarks: synthetic $30 \times 30$ grids with random potentials of varying variance (to test different levels of frustration), and a Protein Design Dataset containing 97 real-world problems aimed at finding stable amino acid configurations.

Convergence comparison of nonsmooth, smooth non-optimal, and smooth optimal methods across varying potential variances.
  • Superior Convergence: In synthetic tests, the "Smooth Optimal" method consistently reached lower energy states faster than both standard subgradient methods and non-accelerated smoothing methods. As the problem variance (frustration) increased, the accelerated method's dominance became even more pronounced.
  • Protein Design Performance: On the 97 protein design problems, the proposed method significantly outperformed state-of-the-art techniques like GEMPLP and standard dual decomposition, achieving better final dual objectives.
  • Practicality: While each iteration of the smoothed method is slightly more computationally expensive (calculating logsumexp versus a simple max), the drastic reduction in the total number of iterations required makes it much faster in overall "wall-clock" time.

Limitations and Future Work

While highly effective, the authors noted a few areas for future refinement:

  • Initial Slowness: In the very early iterations, the method sometimes decreases the objective more slowly than coordinate descent. They suggest that annealing—starting with a high temperature/high smoothing and gradually reducing it—could speed up this initial phase.
  • Choice of Smoothing: The paper relies on entropic smoothing. However, other "proximal terms" might exist that yield even better Lipschitz constants (and thus faster convergence) for specific problem structures.
  • Decoding: While the dual objective converges quickly, "decoding" the dual variables into a valid integer solution (the actual MAP assignment) remains a separate step that can still be tricky for highly complex models.

Summary updated

BibTeX
@inproceedings{jojic2010accelerated,
  author = {Vladimir Jojic and Stephen Gould and Daphne Koller},
  title = {{Accelerated dual decomposition for MAP inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure