Message-Passing Algorithms for Quadratic Programming Formulations of MAP Estimation

Akshat Kumar, Shlomo Zilberstein

This paper presents a novel way to solve one of the most fundamental problems in graphical models: Maximum A Posteriori (MAP) estimation. By reframing MAP estimation as a Quadratic Programming (QP) problem and applying the Concave-Convex Procedure (CCCP), the authors derive efficient message-passing algorithms that are significantly faster and more compact than traditional Linear Programming (LP) relaxations.

TL;DR

The authors develop message-passing algorithms for Quadratic Programming formulations of MAP estimation using the Concave-Convex Procedure. Their approach provides a unified framework for both non-convex and convex formulations, delivering order-of-magnitude speedups over standard solvers like CPLEX while outperforming traditional max-product algorithms in solution quality.

What Problem Does This Paper Address?

MAP estimation—finding the most probable assignment of variables in a Markov Random Field (MRF)—is a cornerstone of computer vision and bioinformatics. However, for general graphs, it is NP-hard.

Researchers typically use one of two approximations:

  1. Linear Programming (LP) Relaxations: These are popular but suffer from a "dimensionality curse." For a graph with $|E|$ edges and $k$ states per variable, the LP has $O(|E|k^2)$ variables. This makes off-the-shelf solvers impractical for large-scale real-world problems like protein design.
  2. Quadratic Programming (QP) Formulations: These are much more compact, requiring only $O(nk)$ variables. While the QP formulation is exact, it is non-convex, making global optimization difficult. Even convex QP relaxations can be slow when using standard interior-point solvers.

This paper addresses the need for an optimization method that retains the compactness of QP while offering the efficiency of local message-passing algorithms.

Methods

The core innovation is the application of the Concave-Convex Procedure (CCCP) to the QP formulation of MAP. CCCP is an iterative technique for minimizing functions that can be written as the difference between two convex functions ($f = u - v$).

The authors' contributions include:

  • Non-Convex QP Solver: They decompose the standard (non-convex) MAP QP into a difference of convex functions and derive a message-passing algorithm that converges to a local optimum.
  • Convex QP Relaxation Solver: They apply a similar technique to a known convex relaxation of the MAP problem, resulting in an algorithm guaranteed to find the global optimum of that relaxation.
  • Efficient Constraint Handling: They introduce a clever "inner loop" that handles non-negativity and normalization constraints locally at each node. This avoids the need for expensive global optimization steps.
  • Theoretical Unification: They show that a previously proposed Expectation-Maximization (EM) algorithm for MAP is actually a special case of their CCCP framework when applied to a Geometric Programming (GP) reformulation.

Datasets

The algorithms were evaluated on three distinct types of problems:

  1. Synthetic Ising Models: 2D grid graphs (up to $50 \times 50$) with varying coupling strengths, representing a standard benchmark for inference.
  2. Protein Design Benchmark: A set of 97 hard, dense instances with up to 170 variables and large domain sizes (up to 150 values). These are notoriously difficult for LP-based solvers due to their size.
  3. Protein Prediction Dataset: A smaller dataset used to test the limits of the convex relaxation's tightness.

Key Insights and Ideas

  • Compactness is King: By using QP instead of LP, the authors drastically reduce the number of variables the solver must track, which is the primary driver of their speedup in large-domain problems.
  • Message-Passing as Optimization: The paper demonstrates that "messages" in graphical models aren't just heuristic signals; they can be derived rigorously as gradients in a CCCP optimization step.
  • The Power of the Inner Loop: Handling inequality constraints (like $p_i \ge 0$) is usually the "slow" part of QP. The authors prove that a simple local iterative clamping procedure (the inner loop) correctly recovers the Lagrange multipliers, keeping the algorithm fast and graph-based.

Key Results

The experimental results highlight significant gains in both speed and quality:

  • Superior Quality on Ising Models: As shown in Figure 1 (a-e), the CCCP-based QP approach consistently outperformed the standard max-product (MP) algorithm. For $50 \times 50$ grids, CCCP provided a 43% improvement in solution quality over MP.
  • Massive Speedups over CPLEX: When solving the convex QP relaxation, the CCCP message-passing algorithm was more than an order of magnitude faster than the state-of-the-art CPLEX barrier solver. For the largest instances, CPLEX took nearly an hour (3504s), while CCCP finished in just 99 seconds.
Figure 1: (a) – (e) show quality comparison between max-product (MP) and CCCP for Ising graphs with varying number of nodes (100 – 2500). The x-axis denotes the coupling parameter β, y-axis shows solution quality. (f) shows the solution quality CCCP achieves as a percentage of the optimal value (y-axis) for different protein design instances (x-axis).
  • Near-Optimal Protein Design: On the dense protein design benchmark, CCCP achieved 97.7% of the optimal value on average. Crucially, it converged in roughly 170 seconds, whereas the leading LP-based method (MPLP) has a reported mean time of 9.7 hours for the same dataset.

Limitations and Future Work

  • Local Optima: The non-convex version of the algorithm is only guaranteed to find a local optimum. While this local optimum is often very good, it can get stuck in some problem instances.
  • Relaxation Tightness: The authors noted that for certain problems (like the protein prediction dataset), the convex QP relaxation is not "tight," meaning its global optimum may not correspond to the true MAP assignment.
  • Future Directions: The authors suggest that the CCCP framework is flexible enough to incorporate additional constraints (like cycle constraints) that could tighten the convex relaxation, potentially combining the speed of QP with the accuracy of higher-order LP relaxations.

Summary updated

BibTeX
@misc{kumar2012message,
  author = {Akshat Kumar and Shlomo Zilberstein},
  title = {{Message-Passing Algorithms for Quadratic Programming Formulations of MAP Estimation}},
  year = {2012},
  eprint = {1202.3739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1202.3739},
}
Figure