Potts Model, Parametric Maxflow and K-Submodular Functions

Igor Gridchyn, Vladimir KolmogorovICCV 2013

Abstract

Minimizing the Potts energy is a fundamental but NP-hard problem in computer vision, often used for image segmentation and stereo matching. While Kovtun’s method provides a way to find partially optimal solutions, its computational cost traditionally scales linearly with the number of labels $k$. This paper presents a novel approach that reframes the problem using tree metrics and $k$-submodular functions. By introducing the SPLIT algorithm, the authors reduce the complexity from $k$ maxflow operations to $O(\log k)$, achieving a roughly 10x speedup in practical applications.

Introduction

Many computer vision tasks are formulated as energy minimization problems where labels (such as depth values or object IDs) are assigned to pixels to minimize a cost function. The Potts model is widely used because it promotes piecewise constant solutions, which are natural for images. However, finding the global minimum is NP-hard for more than two labels. Kovtun’s method is a popular technique for identifying "persistent" labels—pixels where the optimal label can be determined with certainty. Despite its utility, the original method is computationally expensive, requiring $k$ separate maxflow computations, which becomes a bottleneck as the number of labels grows.

Methodology: The SPLIT Algorithm and Tree Metrics

The core contribution of this work is the reduction of Kovtun’s method to a logarithmic number of maxflow operations. The authors achieve this by viewing the problem through the lens of tree metrics, specifically star graphs where labels are leaves connected to a central root.

Instead of evaluating each label independently, the proposed SPLIT algorithm employs a recursive divide-and-conquer strategy. By partitioning the set of labels into two subsets and running a single maxflow, the algorithm determines which subset contains the optimal label for each pixel. This process repeats recursively until individual labels are isolated.

The hierarchical SPLIT algorithm reduces label set evaluation from linear to logarithmic complexity.

Furthermore, the authors establish a theoretical link between the Potts model and $k$-submodular functions. They demonstrate that their construction is a form of $k$-submodular relaxation, providing a unified framework for multi-label optimization that generalizes the binary submodular cuts commonly used in computer vision.

Experimental Evaluation

The efficiency of the "k-sub Kovtun" algorithm was tested on the Middlebury stereo dataset, including benchmarks like Teddy, Cones, and Tsukuba, with label counts ranging from 16 to 60.

Performance and Scaling

The most striking result is the scaling behavior. While traditional methods like the "Reduce" algorithm by Alahari et al. scale linearly with the number of labels, the proposed method exhibits logarithmic scaling. For the "Teddy" dataset with 60 labels, the computation time dropped from approximately 3.4 seconds to just 320 milliseconds.

Comparison of execution time between the proposed k-sub Kovtun method and the baseline Alahari et al. method as the number of labels increases.

Accuracy and Utility

In stereo matching tests, the method successfully labeled between 50% and 93% of pixels. Interestingly, these partial solutions often exhibited lower error rates compared to ground truth than the full solutions obtained via heuristics like alpha-expansion. This suggests that the "persistent" labels found by the algorithm are highly reliable. Additionally, by pre-labeling a large portion of the image, the subsequent heuristic passes run significantly faster on the remaining unlabeled pixels.

Conclusion

By bridging the gap between computer vision energy minimization and combinatorial optimization via $k$-submodular functions, this paper provides a highly efficient tool for large-label problems. The transition from $O(k)$ to $O(\log k)$ maxflow operations makes partial optimality a practical preprocessing step for real-time vision systems. Future work remains to extend these $k$-submodular relaxations to more general, non-Potts energy functions.

Summary updated

BibTeX
@inproceedings{gridchyn2013potts,
  author = {Igor Gridchyn and Vladimir Kolmogorov},
  title = {{Potts Model, Parametric Maxflow and K-Submodular Functions}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.288},
}
Figure