Introduction
In computer vision, binary optimization tasks like image segmentation often rely on graph cut algorithms for their speed and global optimality. However, standard graph cuts are limited to submodular energy functions. Complex interactions, such as object exclusion in multi-object segmentation, require Quadratic Pseudo-Boolean Optimization (QPBO). While powerful, traditional QPBO is strictly serial, creating a significant bottleneck for massive 3D datasets. This paper introduces P-QPBO, the first parallel implementation of the algorithm, designed to leverage modern multi-core hardware for large-scale optimization.
Methodology
P-QPBO employs a parallel framework combining a two-stage optimization strategy with a bottom-up merging approach.
The process is divided into two main phases:
- Phase A (Partitioning): The graph is divided into $N$ disjoint sub-problems or blocks, which are solved independently in parallel.
- Phase B (Merging): Threads identify unlocked adjacent blocks, lock them, merge them, and re-solve the maxflow for the combined block. This continues until a single global solution is reached.
A critical innovation is "Lazy Promotion." Standard QPBO doubles the graph size to handle non-submodular terms (Stage 2). P-QPBO keeps sub-problems in the smaller "Stage 1" format as long as they remain submodular, only promoting them to Stage 2 when necessary. This significantly reduces memory overhead and improves processing speed.
Datasets and Evaluation
The algorithm was tested on two challenging segmentation tasks:
- Large-scale 3D Nerve Segmentation: A high-resolution μCT volume involving 432 interacting objects, resulting in graphs with up to 818 million nodes and 4.8 billion edges.
- 2D Nuclei Segmentation: A set of 670 images from the BBBC038v1 dataset, testing performance on smaller, more common segmentation problems.
Key Results
P-QPBO achieves substantial performance gains over serial implementations:
- Speed: On the largest 3D nerve dataset, P-QPBO was over 20 times faster than the standard serial K-QPBO. A task that took 14 minutes serially was completed in just 74 seconds using 40 threads.
- Memory Efficiency: By utilizing a "Modern QPBO" (M-QPBO) baseline with 32-bit indices and lazy promotion, memory usage for the N1 task dropped from 134.2 GB to 70.0 GB.
- Scalability: The algorithm scales well even for smaller 2D tasks, providing 2-5x speedups with just 4 threads.
Conclusion
P-QPBO effectively removes the serial bottleneck of traditional QPBO, making complex multi-object optimization feasible on standard workstation hardware. While speedups plateau around 32-40 threads due to the serial nature of the final merge steps (Amdahl’s Law), the algorithm remains a powerful general-purpose tool for binary optimization in medical imaging and beyond.
Summary updated