NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Parallel Framework for Parametric Maximum Flow Problems in Image Segmentation

Vlad Olaru, Mihai Florea, Cristian SminchisescuarXiv 2015

Abstract

This paper presents a high-performance parallel framework for solving parametric maximum flow problems in image segmentation. By introducing "supergraphs"—a method of combining multiple graph problems into a single structure—and optimizing workload balancing through $s-t$ swaps, the proposed system leverages GPU clusters to achieve near real-time performance. Evaluated on the VOC2012 dataset, the framework demonstrates a 55% speedup over CPU-based parallelization with no loss in segmentation accuracy, reaching an average processing time of 7.85 seconds on a five-GPU cluster.

The Parametric Max-Flow Challenge

Image segmentation, the task of partitioning an image into semantically meaningful regions, is a fundamental challenge in computer vision. Modern high-quality segmentation often employs "graph cuts," where pixels are treated as nodes in a graph. Finding the optimal boundary between an object and its background is modeled as finding the minimum cut (or maximum flow) through this network.

Illustration of a graph G and a corresponding cut between source s and sink t.

To achieve robust results, researchers often utilize parametric max-flow. This involves solving the max-flow problem repeatedly across a range of parameters (scales) and starting from various "seeds" (initial locations). While accurate, this approach is computationally intensive, frequently requiring minutes per image. Standard parallelization techniques, such as running one problem per CPU core, quickly reach a performance ceiling because individual graph problems are often too small to fully saturate the massive parallel processing power of modern GPUs.

Methodology

The authors propose three key innovations to bridge the gap between theoretical accuracy and real-time performance:

  1. Supergraphs: Instead of processing many small graphs sequentially, the framework "knits" them into a single massive "supergraph" using zero-weight edges. This allows a single call to parallel max-flow libraries (like NVIDIA’s NPPI) to process multiple parameter settings or seeds simultaneously, maximizing GPU core utilization.
  2. $s-t$ Swaps: Parallel "push-relabel" algorithms perform more efficiently when there are more active nodes connected to the source ($s$) than the sink ($t$). The authors employ a heuristic to calculate edge capacity differences and swap the roles of $s$ and $t$ when beneficial. This simple flip balances the workload and significantly accelerates GPU execution.
  3. Dynamic Scheduling: To handle varying image complexities, the authors implemented a dynamic FIFO (First-In-First-Out) scheduler. This dispatches supergraphs to available nodes in a heterogeneous cluster, preventing idle workers and ensuring maximum throughput.

Evaluation and Results

The framework was benchmarked using a 500-image subset of the VOC2012 dataset. The results demonstrate that the supergraph approach significantly outperforms traditional methods while maintaining high fidelity.

Segmentation results showing the original image (left), overlaid masks (middle), and the final segmented output (right).
  • Performance Gains: The GPU cluster solution achieved a 55% speedup over the most efficient trivially parallelized CPU version. Latency for figure-ground segmentation was reduced by more than 2x compared to standard batch processing.
  • Real-Time Capability: On a cluster of five GPUs, the system reached an average processing time of 7.85 seconds for complex tasks that typically take minutes, bringing it within striking distance of real-time requirements for video applications.
  • Accuracy: The GPU-based approach achieved an average Intersection over Union (IoU) of 0.743, slightly exceeding the gold-standard sequential pseudoflow algorithm (0.734).

Discussion and Future Work

The study highlights that "approximate" parametric max-flow—reducing the number of parameter scales—can cut execution time by 40% with only a 1% drop in accuracy. However, limitations remain, such as network overhead when transferring large graph matrices in a cluster. Future work will focus on "packing" graphs more densely to amortize transfer costs and developing adaptive schedules to find graph "breakpoints" more intelligently while maintaining parallel efficiency.

Summary updated

BibTeX
@misc{olaru2015parallel,
  author = {Vlad Olaru and Mihai Florea and Cristian Sminchisescu},
  title = {{A Parallel Framework for Parametric Maximum Flow Problems in Image Segmentation}},
  year = {2015},
  eprint = {1509.06004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.06004},
}
Figure