Abstract
Solving Maximum A Posteriori (MAP) inference in binary Markov Random Fields (MRFs) is a fundamental task in computer vision and machine learning. While planar binary MRFs without unary potentials are solvable in polynomial time, the inclusion of unary terms typically breaks planarity, rendering the problem NP-hard. We present Planar Cycle Covering (PCC), a variational approach that preserves planarity by distributing auxiliary nodes across the graph's faces. This method provides a tight lower bound that is optimized 10-100x faster than existing state-of-the-art techniques while maintaining mathematical rigor.
Introduction
In machine learning and computer vision, MAP inference involves finding the minimum energy configuration of an MRF. For planar binary MRFs, a classic theoretical divide exists. Without unary potentials (local variable preferences), the problem is efficiently solvable via minimum-weight perfect matching. However, real-world applications necessitate unary potentials. The standard approach—connecting a single "universal" node to all variables—destroys the graph's planarity, making exact inference NP-hard. Existing workarounds like Tree-Reweighted Belief Propagation (TRW) or cycle-cutting planes are often either too loose in their approximations or too slow for large-scale image processing.
The Planar Cycle Covering Approach
The Planar Cycle Covering (PCC) method circumvents the planarity dilemma by avoiding a single global auxiliary node. Instead, researchers propose adding an auxiliary node to every face of the planar graph. This approach maintains the graph's planar embedding, which is critical for maintaining computational tractability.
Face-based Relaxation and Variational Optimization
By placing a separate copy of the auxiliary node within each face and connecting it only to the vertices on that face's boundary, the entire structure remains planar. This construction allows the energy to be decomposed into a variational lower bound. Because these auxiliary nodes are independent, the "ground state" of the resulting augmented graph can be computed efficiently using the Blossom V algorithm for perfect matching. The optimization process then employs subgradient descent to "reweight" the parameters, iteratively tightening the lower bound until it approximates the true minimum energy configuration.
Theoretical Insights: The Cycle Basis Connection
A key contribution of this work is the proof that the PCC bound is mathematically equivalent to a decomposition of the graph into its cycle basis. Enforcing consistency over all cycles is typically computationally prohibitive; PCC achieves this implicitly through its unique graph structure, providing the benefits of a cycle-consistent relaxation without the associated overhead. Unlike TRW, which breaks a problem into many small independent trees, PCC solves one single, large, tractable planar problem, allowing for faster convergence.
Experimental Results
The authors benchmarked PCC against Max-Product Linear Programming (MPLP) and Reweighted Perfect Matching (RPM) using $N \times N$ Ising grids ranging from $8 \times 8$ to $128 \times 128$.
- Efficiency: PCC demonstrated a 10x to 100x speedup over competitors. On "Hard" $32 \times 32$ instances, PCC converged in milliseconds, whereas other methods required seconds or failed to reach the same bound.
- Optimality: In many challenging cases where standard methods left significant duality gaps, PCC successfully identified and verified the global optimum.
- Scalability: PCC maintained high solution rates for grids up to $128 \times 128$, while competing methods showed significant performance degradation as problem size increased.
Conclusion
Planar Cycle Covering demonstrates that planarity can be leveraged even in the presence of unary potentials. By distributing auxiliary variables locally rather than globally, PCC offers a mathematically rigorous and computationally superior alternative for MAP inference in planar binary MRFs. Future work aims to extend this framework to non-planar graphs through triangulation and to address marginal inference tasks.
Summary updated