Global MAP-Optimality by Shrinking the Combinatorial Search Area with Convex Relaxation

Bogdan Savchynskyy, Jörg Hendrik Kappes, Paul Swoboda, Christoph SchnörrNeurIPS 2013

The Challenge: Scale vs. Optimality

In computer vision and machine learning, many fundamental tasks—such as image segmentation, stereo matching, and photomontage—are modeled as energy minimization tasks on Markov Random Fields (MRFs). This is widely known as the Maximum A Posteriori (MAP) inference problem.

Solving these problems presents a classic trade-off:

  1. Combinatorial Methods: These solvers provide provably optimal, exact solutions. However, they are computationally expensive and typically fail to scale to large, high-resolution images.
  2. Convex Relaxations (e.g., Linear Programming): These methods are much faster and scale beautifully to large datasets. Unfortunately, they only provide an approximation. While they perform perfectly on the "simple" parts of an image, they struggle with "difficult" regions where the relaxation isn't tight.

This paper introduces a hybrid approach that bridges this gap, achieving the global optimality of combinatorial methods at the scale of convex methods. By using a linear programming (LP) relaxation to identify and "shrink" the difficult parts of a problem, the authors can solve massive, NP-hard computer vision tasks to global optimality—often requiring a combinatorial solver on less than 1% of the original graph.

A Divide-and-Conquer Strategy

The authors propose a clever strategy guided by the mathematics of duality. Their algorithm operates through a sequence of targeted steps:

  • LP Presolve & Reparametrization: The process begins by solving the dual of the LP relaxation for the entire graph. This step does more than just provide a lower bound; it allows the authors to "reparametrize" the problem, effectively shifting the energy around to make the optimal labels more obvious.
  • Identifying "Easy" vs. "Hard" Regions: Using a property called Strict Arc Consistency, the algorithm identifies nodes where the LP relaxation is already "tight." These nodes form Subgraph $\mathcal{A}$ (the easy part). The remaining nodes, where the LP is ambiguous, form Subgraph $\mathcal{B}$ (the hard part).
  • Restricted Combinatorial Search: Instead of running a heavy-duty, computationally expensive solver (like CPLEX) on the entire image, the algorithm only runs it on the small, isolated "islands" of Subgraph $\mathcal{B}$.
Visualization of the divide-and-conquer algorithm.
  • Boundary Consistency: The core of the method relies on a proven theorem: if the solutions for the easy part ($\mathcal{A}$) and the hard part ($\mathcal{B}$) match at their shared boundary ($\partial A$), the combined solution is globally optimal for the entire original problem. If there is a label mismatch at the boundary, the algorithm iteratively grows Subgraph $\mathcal{B}$ and tries again.

Key Insights and Results

The method was rigorously evaluated on standard computer vision benchmarks, including the Middlebury MRF Benchmark (stereo datasets like tsukuba, venus, teddy), Color Segmentation (pfau, palm), MRF Photomontage (family, panorama), and MRF Inpainting.

The "Islands" of Difficulty

A major insight from the paper is that for many sparse graphs, such as image grids, the LP relaxation is actually optimal for the vast majority of the graph. The "NP-hard" difficulty is not spread evenly but is concentrated in tiny, disconnected clusters. Furthermore, the reparametrized potentials from the LP dual act as a "presolver" that makes these remaining subproblems significantly easier for the combinatorial solver to digest.

Comparison of unresolved regions on a segmentation task.

Massive Pruning and Speedups

The empirical results demonstrate the power of this shrinking technique:

  • Extreme Pruning: On the venus stereo dataset (comprising 166,000 nodes), the combinatorial solver only had to process between 66 and 233 nodes—less than 0.14% of the total problem.
  • Order of Magnitude Speedups: On hard instances of Potts models (like the pfau dataset), the authors' method outperformed specialized, state-of-the-art multiway-cut solvers by an order of magnitude.
  • Solving the "Unsolvable": The method successfully found global optima for large-scale problems that were previously considered too massive for exact combinatorial solvers, such as the family photomontage dataset featuring over 400,000 nodes.

Limitations and Future Work

While highly effective, the approach has a few notable limitations:

  • High Label Counts: The method successfully shrinks the number of nodes that require complex solving, but it doesn't inherently solve the problem of having a massive number of labels per node. For datasets like inpainting (which uses 256 labels), the isolated subproblems were still too complex for the general-purpose ILP solver used in the study.
  • Graph Density: The efficiency of the "shrinking" mechanism relies heavily on the graph being sparse. In a sparse graph, the boundary between easy and hard parts is small, making it likely that solutions will coincide quickly. The method might struggle with dense or fully connected graphs where "hard" regions could expand rapidly during the boundary consistency checks.
  • Higher-Order Models: The current framework focuses on pairwise interactions. Extending this methodology to higher-order factor graphs represents a promising direction for future research.

Summary updated

BibTeX
@inproceedings{savchynskyy2013global,
  author = {Bogdan Savchynskyy and Jörg Hendrik Kappes and Paul Swoboda and Christoph Schnörr},
  title = {{Global MAP-Optimality by Shrinking the Combinatorial Search Area with Convex Relaxation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=HkEb5_ZubS},
}
Figure