Abstract
Optimization of higher-order, multilabel Markov Random Fields (MRFs) is a cornerstone of many computer vision tasks but remains computationally challenging. This paper presents SoSPD (Sum-of-Submodular Primal Dual), a new algorithm that leverages sum-of-submodular flow within a primal-dual framework. SoSPD provides theoretical approximation guarantees and achieves significant speedups—ranging from 2x to 20x—over previous state-of-the-art methods while consistently reaching lower energy solutions. The algorithm is evaluated on stereo reconstruction and image denoising tasks, demonstrating superior performance in both speed and solution quality.
Introduction
Many fundamental problems in computer vision, such as image denoising and stereo vision, are formulated as labeling problems where each pixel is assigned a value from a discrete set. Markov Random Fields (MRFs) provide the mathematical backbone for these models. While first-order MRFs (considering only pairwise pixel interactions) are well-studied, many complex scenarios require higher-order MRFs to capture intricate textures or curvatures. However, optimizing these higher-order, multilabel MRFs is NP-hard. Existing solvers often struggle with speed, generalizability, or lack of theoretical bounds.
The SoSPD Algorithm
The authors propose the Sum-of-Submodular Primal Dual (SoSPD) algorithm to address these limitations. SoSPD operates by simultaneously tracking a primal solution (pixel labels) and a dual solution (an energy lower bound), iteratively closing the gap between them.
Key Innovations
- SoS Flow: The core innovation lies in the use of Sum-of-Submodular (SoS) flow. Unlike standard max-flow, which is restricted to pairwise constraints, SoS flow allows for the exact optimization of higher-order interactions during the move-making process.
- Dual Variable Management: By maintaining dual variables, the algorithm "remembers" information from previous iterations, avoiding the redundant computations found in reduction-based methods.
- Theoretical Bounds: For a class of "weakly associative" MRFs, the authors provide a formal $\rho$-approximation bound, offering a theoretical safety net for the solution quality.
Experimental Evaluation
The performance of SoSPD was evaluated on two benchmark tasks:
- Stereo Reconstruction: Using the "Teddy" and "Cones" benchmarks from the Middlebury dataset. This task utilizes a second-order curvature prior to estimate depth.
- Image Denoising: Implementing the Field of Experts (FoE) model on a 100-image test set. This model uses $2 \times 2$ pixel cliques to represent natural image statistics.
Results and Performance
SoSPD demonstrates a clear advantage in both convergence speed and final energy levels. On the "Teddy" stereo task, SoSPD reached convergence in 129 seconds, whereas the FGBZ baseline required 468 seconds. In denoising applications, SoSPD outperformed the GRD-Gradient method by a factor of approximately 20x.
Beyond speed, SoSPD consistently achieves lower final energy states than competing methods like HOCR or FGBZ within identical time constraints. This indicates a more optimal solution to the underlying labeling problem, as evidenced by the quantitative data in the stereo benchmarks.
Conclusion
SoSPD represents a significant advancement in higher-order MRF optimization. By generalizing the primal-dual framework and incorporating SoS flow, it offers a fast, general, and theoretically grounded solver. While currently limited by exponential complexity relative to clique size, it sets a new standard for efficiency in multilabel vision problems. Future work may focus on optimizing clique size handling and refining heuristic bounds for non-submodular functions.
Summary updated