A graph cut algorithm for higher-order Markov Random Fields

Alexander Fix, Aritanan Gruber, Endre Boros, Ramin Zabih

Abstract

Markov Random Fields (MRFs) with higher-order cliques are essential for realistic image priors but present significant optimization challenges. We propose a new reduction technique that transforms higher-order terms into pairwise ones by processing groups of terms sharing common variables. This approach exploits the "local completeness" found in many computer vision problems, leading to a substantial reduction in non-submodular terms. Experimental results on the Fields of Experts dataset demonstrate that our method achieves 96.1% pixel labeling and lower energy states 20% faster than previous state-of-the-art methods.

Introduction

In computer vision, Markov Random Fields (MRFs) are used to model spatial relationships between pixels for tasks like denoising and segmentation. While first-order MRFs only consider pairs of pixels, higher-order MRFs analyze larger groups (cliques), enabling more realistic image priors such as "Fields of Experts" (FoE).

However, optimizing higher-order MRFs is notoriously difficult. The standard approach involves "reducing" the higher-order problem into a pairwise one by adding auxiliary variables. Previous methods, such as Ishikawa’s, often produce an excessive number of "non-submodular" terms—mathematical obstacles that prevent solvers like QPBO from finding definitive labels for many pixels. This paper addresses this bottleneck by introducing a more efficient reduction strategy.

Methods

The core innovation is a move away from traditional term-by-term reduction. Instead, the authors propose reducing groups of terms that share a common variable simultaneously.

Illustration of the group reduction technique for higher-order terms.

Group Reduction and Local Completeness

The authors prove that a collection of positive higher-order terms sharing a variable $x_i$ can be replaced by a single new variable and a set of quadratic terms. A key theoretical contribution is the identification of "local completeness" in vision problems. This property implies that if a large group of pixels has a defined relationship, many of its subgroups do as well. By exploiting this, the new terms created during reduction often cancel out or merge with existing terms, preventing the "explosion" of complex, non-submodular terms that plagued earlier methods.

Key Results

The method was primarily evaluated on the Fields of Experts (FoE) dataset, consisting of 200 images for denoising tasks, providing a direct comparison with Ishikawa’s method.

Comparison of energy minimization and pixel labeling efficiency between the proposed method and Ishikawa's method.

As shown in the performance plots, the proposed method significantly outperforms the baseline in both speed and accuracy:

  • Labeling Accuracy: The method allowed QPBO to optimally label 96.1% of variables, compared to 80.4% for the previous state-of-the-art.
  • Complexity Reduction: It produced 90% fewer non-submodular terms (38,343 vs. 421,897).
  • Optimization Quality: The algorithm converged to an energy state 8% lower than the competition and did so 20% faster.

Qualitative results also showed noticeably smoother and more accurate denoising, particularly in regions with subtle gradients or complex textures.

Conclusion

By recognizing that higher-order terms in vision are spatially related and overlapping, this paper demonstrates that structured reduction is far superior to generic mathematical approaches. While the method still relies on QPBO and its performance is tied to the degree of "local completeness" in the energy function, it represents a major step forward for high-order MRF optimization. Future work may explore even more complex grouping strategies, such as reducing pairs of variables simultaneously, to further enhance efficiency.

Summary updated

BibTeX
@inproceedings{fix2011graph,
  author = {Alexander Fix and Aritanan Gruber and Endre Boros and Ramin Zabih},
  title = {{A graph cut algorithm for higher-order Markov Random Fields}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2011},
  doi = {10.1109/iccv.2011.6126347},
}
Figure