Fast Convex Relaxations using Graph Discretizations

Jonas Geiping, Fjedor Gaede, Hartmut Bauermeister, Michael Moeller

Abstract

Functional lifting is a robust framework for solving non-convex energy minimization problems in computer vision, such as multi-label segmentation and stereo matching. However, its high computational cost and memory requirements often limit its practical application. This paper proposes a novel acceleration method that replaces standard pixel-based grids with adaptive graph discretizations. By utilizing $L^0$ Cut-Pursuit for graph construction, the method achieves up to a 10x reduction in runtime and memory usage with negligible impact on solution accuracy.

Introduction

Many fundamental tasks in computer vision are formulated as energy minimization problems. When these problems are non-convex, finding a global optimum is challenging. Functional lifting addresses this by mapping the problem into a higher-dimensional convex space. While effective, the resulting optimization problems are "heavy," requiring significant memory and processing power when solved on standard Cartesian grids. This research demonstrates that a carefully constructed graph discretization can serve as a high-fidelity proxy for the full pixel grid, breaking the computational bottleneck.

Methodology: From Grids to Graphs

The core innovation lies in moving away from independent pixel variables toward a graph-based representation where nodes represent "superpixels" or image segments.

Graph Construction and Theoretical Guarantees

The authors employ the $L^0$ Cut-Pursuit (CP) algorithm to partition the image. Unlike traditional superpixel methods, CP is optimized for total variation minimization, ensuring that graph edges align closely with natural object boundaries.

Mathematical representation of the graph discretization, showing regions $P_i$, nodes $c_i$, and edge weights $w_{ij}$.

A key theoretical contribution is Proposition 1, which proves that if the "true" boundaries of the optimal continuous solution are contained within the set of edges in the graph discretization, the discrete solution is identical to the continuous global optimum. This suggests that we only need a graph "rich" enough to capture potential jump sets, rather than a dense pixel grid.

Optimization

The resulting lifted problem is solved using a preconditioned primal-dual algorithm. This approach is specifically adapted to handle nodes of varying sizes and irregular connectivity, ensuring efficient convergence even when superpixels represent vastly different numbers of pixels.

Experimental Evaluation

The method was evaluated on standard benchmarks, including the Middlebury dataset for segmentation and stereo matching.

Comparison between the graph discretization (left) and the resulting segmented output (right). The graph edges effectively capture the geometry of the scene.

Performance Gains

The results demonstrate significant efficiency improvements:

  • Segmentation: Runtime was reduced by 79% to 87%, and memory consumption dropped from gigabytes to megabytes. For instance, a high-resolution test saw memory usage fall from 6 GB to just 0.2 GB.
  • Accuracy: Despite reducing the number of variables by over 95% (e.g., from 4.9 million pixels to 120k nodes), the energy optimality remained within 0.7% to 3.5% of the full-grid solution.
  • Stereo Matching: The approach yielded a 4.8x speedup with visual results nearly indistinguishable from full-grid computations.

Conclusion and Future Work

By leveraging adaptive graph discretizations, this work significantly lowers the barrier to using functional lifting in real-world applications. While the current bottleneck is the time required for graph construction (Cut-Pursuit), future work aims to port these subroutines to the GPU. This would further reduce total wall-clock time and enable the use of these powerful convex relaxations in more time-sensitive computer vision pipelines.

Summary updated

BibTeX
@inproceedings{geiping2020fast,
  author = {Jonas Geiping and Fjedor Gaede and Hartmut Bauermeister and Michael Moeller},
  title = {{Fast Convex Relaxations using Graph Discretizations}},
  booktitle = {BMVC},
  year = {2020},
  url = {https://openreview.net/forum?id=9-BLSVYL-5F},
}
Figure