Efficient parallel optimization for potts energy with hierarchical fusion

Olga VekslerCVPR 2015

Abstract

Optimizing Potts energy is a fundamental challenge in computer vision, particularly for labeling tasks such as image segmentation and stereo matching. While the $\alpha$-expansion algorithm is a widely used standard, its serial nature limits performance as the number of labels increases. This paper introduces a parallel hierarchical fusion (h-fusion) algorithm that organizes labels into a balanced binary tree. This structure allows for simultaneous fusion moves across different CPU cores, achieving a guaranteed $O(\log_2 k)$ optimality bound in a single pass. Experimental results on the Middlebury dataset demonstrate that h-fusion provides superior initial accuracy and significant speedups compared to traditional serial approaches.

Introduction

Many computer vision problems are formulated as discrete labeling tasks, where the goal is to assign a label from a set $\mathcal{L} = \{1, \dots, k\}$ to each pixel in an image. To promote spatial consistency, the Potts model is frequently employed to penalize neighboring pixels with differing labels. However, minimizing Potts energy is NP-hard.

The current gold standard for this optimization is the $\alpha$-expansion algorithm, which iteratively improves a labeling by considering one label at a time. While effective, its inherent serial structure makes it difficult to parallelize without losing theoretical guarantees. As the number of labels $k$ grows, the computational bottleneck becomes more pronounced.

Hierarchical Fusion Methodology

The proposed method addresses these limitations through a parallel version of Hierarchical Fusion (h-fusion). The core innovation lies in the organization of labels and the execution of fusion moves.

The Label Tree and Parallel Fusion

Instead of processing labels sequentially, the algorithm organizes all possible labels as leaves in a balanced binary tree. Optimization proceeds bottom-up from the leaves to the root. At each level, "fusion moves" are performed to combine two labelings into a single labeling with lower energy.

Hierarchical fusion process on a balanced binary tree.

Because fusion moves at the same tree level are independent, they can be computed simultaneously on multiple processors. This structure ensures that each fusion move is submodular and can be solved efficiently using graph cuts. A single pass through a tree of depth $\log_2 k$ yields a solution with a guaranteed approximation bound of $O(\log_2 k)$.

Structural Comparison with $\alpha$-Expansion

A key insight of this work is the relationship between the proposed tree structure and existing algorithms. The standard $\alpha$-expansion algorithm can be viewed as a "degenerate" tree—essentially a linked list where labels are added one by one.

A degenerate tree structure representing the serial nature of standard expansion algorithms.

By transitioning from a linear structure to a balanced binary tree, the "depth" of the optimization problem is reduced from $k$ to $\log_2 k$. This logarithmic depth is what enables massive parallelism and provides a stronger optimality guarantee in the first pass.

Experimental Evaluation

The algorithm was evaluated using the Middlebury stereo benchmark, including scenes such as tsukuba, venus, and teddy.

Performance and Accuracy

In practical applications, h-fusion consistently outperforms $\alpha$-expansion in terms of initial accuracy. After just one iteration, h-fusion reaches lower energy states than expansion. For instance, on the tsukuba dataset, h-fusion achieved an energy of 1,068,527 in 0.294 seconds, whereas $\alpha$-expansion required 0.552 seconds to reach a higher energy of 1,074,813.

Parallel Speedup

Using a quad-core processor, the parallel implementation achieved speedups ranging from 1.5x to 2.6x over the serial version. The authors anticipate even greater scaling on systems with higher core counts, as the independent nature of the tree levels allows for high utilization.

Conclusion

Hierarchical fusion offers a mathematically sound and computationally efficient alternative to serial expansion algorithms for Potts energy optimization. By leveraging a binary tree structure, the method provides strong optimality bounds in a single pass and enables effective parallelization. While the approach entails higher memory overhead due to simultaneous graph-cut computations, its speed and accuracy make it an ideal choice for time-critical computer vision tasks. Future work will explore extending these guarantees to more general energy functions beyond the Potts model.

Summary updated

BibTeX
@inproceedings{veksler2015efficient,
  author = {Olga Veksler},
  title = {{Efficient parallel optimization for potts energy with hierarchical fusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298690},
}
Figure