A New Framework for Approximate Labeling via Graph Cuts

Nikos Komodakis, Georgios TziritasICCV 2005

Abstract

A new framework is presented that uses tools from duality theory of linear programming to derive graph-cut based combinatorial algorithms for approximating NP-hard classification problems. The derived algorithms include alpha-expansion graph cut techniques merely as a special case, have guaranteed optimality properties even in cases where alpha-expansion techniques fail to do so and can provide very tight per-instance suboptimality bounds in all occasions.

Introduction

The Metric Labeling (ML) problem is central to many computer vision tasks, including stereo matching, image restoration, and optical flow. The goal is to assign a label from a discrete set to each pixel while minimizing a cost function composed of a data term (likelihood) and a smoothness term (prior). While ML is NP-hard, researchers have traditionally relied on either mathematically rigorous but slow Linear Programming (LP) relaxations or fast but heuristically-driven graph-cut methods like $\alpha$-expansion.

Furthermore, standard graph-cut techniques often require the smoothness term to be a metric, satisfying the triangle inequality. However, many vision applications benefit from "semi-metrics" that allow for sharper edges by not penalizing large label differences linearly. This paper introduces a framework that bridges these two approaches using the primal-dual schema.

Methodology: The Primal-Dual Framework

The proposed framework utilizes the primal-dual schema from optimization theory to solve the Metric Labeling problem. By simultaneously maintaining a primal solution (the labeling) and a dual solution (a lower bound), the algorithm iteratively improves both until they are within a provable factor of each other.

The Height Analogy and Graph Construction

A core innovation is the visualization of dual variables as "heights" for each label at each pixel. The algorithm attempts to "pull up" these heights to satisfy optimality constraints. This process is mapped directly onto a graph-cut problem, allowing the efficiency of combinatorial algorithms to be applied to the rigorous LP formulation.

The height analogy (a) and the corresponding graph construction (b) used to solve the primal-dual problem.

The authors propose three specific algorithms:

  • PD1: A general solver for semi-metrics.
  • PD2: An optimized version for metrics. Notably, when the parameter $\mu=1$, PD2 is mathematically equivalent to the classic $\alpha$-expansion algorithm, providing a theoretical foundation for its empirical success.
  • PD3: An extension that handles semi-metrics by dynamically "restoring" the triangle inequality during optimization.

Experimental Results

The framework was evaluated on standard benchmarks, including the Tsukuba stereo dataset and the SRI tree sequence.

Optimality and Robustness

One of the most significant advantages of this framework is the provision of per-instance suboptimality bounds. Unlike general worst-case bounds, these tell the user exactly how close the current solution is to the global optimum for a specific image. On the Tsukuba dataset, the algorithms achieved solutions within 0.58% to 2.8% of the absolute mathematical optimum.

Disparity map result for the Tsukuba stereo dataset, demonstrating the framework's effectiveness in depth estimation.

Efficiency

Despite the theoretical overhead, the algorithms remain highly efficient. Convergence on standard datasets typically occurred within 33 to 46 seconds on standard hardware, making the approach viable for practical computer vision applications. The use of semi-metrics in PD3 also proved superior for image restoration, maintaining sharp edges where standard metrics would cause blurring.

Conclusion

This work establishes a formal link between graph-cut heuristics and LP duality. By showing that $\alpha$-expansion is a special case of a broader primal-dual framework, the authors provide both a theoretical explanation for existing methods and a path forward for solving more complex labeling problems, such as those involving semi-metrics. Future work may involve extending this framework to handle occlusions in stereo matching and exploring its application to a wider range of Markov Random Field (MRF) problems.

Summary updated

BibTeX
@inproceedings{komodakis2005new,
  author = {Nikos Komodakis and Georgios Tziritas},
  title = {{A New Framework for Approximate Labeling via Graph Cuts}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2005},
  url = {https://openreview.net/forum?id=BkZ9JZzOZS},
}
Figure