Speeding-up Graphical Model Optimization via a Coarse-to-fine Cascade of Pruning Classifiers

Bruno Conejo, Nikos Komodakis, Sébastien Leprince, Jean-Philippe AvouacarXiv 2014

Abstract

We propose a general and versatile framework that significantly speeds-up graphical model optimization while maintaining an excellent solution accuracy. The proposed approach relies on a multi-scale pruning scheme that is able to progressively reduce the solution space by use of a novel strategy based on a coarse-to-fine cascade of learnt classifiers. We thoroughly experiment with classic computer vision related MRF problems, where our framework constantly yields a significant time speed-up (with respect to the most efficient inference methods) and obtains a more accurate solution than directly optimizing the MRF.

Introduction

Graphical models, such as Markov Random Fields (MRFs) and Conditional Random Fields (CRFs), are fundamental to computer vision tasks including stereo matching, image restoration, and optical flow. The core challenge in these applications is Maximum A Posteriori (MAP) estimation, which is formulated as an energy minimization problem. While state-of-the-art algorithms like Fast-PD and various message-passing techniques have advanced the field, they often hit a "dimensionality wall" as image resolutions and label spaces (e.g., depth levels or flow vectors) grow.

Previous attempts to mitigate this using multi-scale approaches typically relied on manual heuristics. These heuristics are often either too aggressive, discarding the optimal solution, or too conservative, failing to provide significant computational relief. This paper introduces a more robust, learned approach to search-space pruning.

The Coarse-to-Fine Cascade

The proposed framework introduces a multi-scale pruning scheme that uses a cascade of learned linear SVM classifiers to progressively narrow the search space. The process involves three key stages:

  1. Model Coarsening: A hierarchy is created where groups of pixels at a fine scale are merged into single nodes at coarser resolutions.
  2. Learned Pruning: Instead of manual heuristics, trained classifiers decide which labels to discard at each scale. By learning the "shape" of optimal solutions, the system better preserves labels near complex regions like object boundaries.
  3. Energy-Based Features: To ensure the framework is solver-agnostic and task-independent, the classifiers utilize features derived solely from the energy function itself, such as Presence of Strong Discontinuity (PSD), Local Energy Variation (LEV), and Unary Coarsening (UC).
Qualitative visualization of the pruning process across different tasks, showing input images (a), optimization results (b, c), and pruning masks at various scales (d-f).

Experimental Results

The framework was evaluated on standard Middlebury benchmarks for stereo matching (Tsukuba, Venus, Teddy), image restoration (Penguin, House), and optical flow (Army, RubberWhale, Dimetrodon).

Quantitative evaluation showing speed-up factors, active label ratios, energy ratios, and best label agreement as a function of pruning aggressiveness.

Key findings from the experiments include:

  • Speed: The framework consistently achieved a 2.5x to 4x speedup compared to directly running Fast-PD, which is already among the fastest inference methods.
  • Accuracy: The "Best Label Agreement"—the probability that the pruned space still contains the optimal label—remained consistently above 96% and often reached 99%.
  • Solution Quality: Interestingly, the coarse-to-fine approach often found lower energy solutions than direct optimization. By starting at a coarse scale, the optimizer is less likely to get trapped in the local minima that often plague fine-scale direct optimization.
  • Efficiency: By discarding irrelevant labels early, the method significantly reduces the memory footprint of the optimization process.

Conclusion

This multi-scale pruning framework offers a robust solution to the computational bottlenecks of graphical model optimization. By replacing manual heuristics with learned classifiers and energy-based features, it achieves significant speedups and improved accuracy across diverse vision tasks. Future work will explore extending the framework to more complex pairwise potentials and higher-order models, as well as investigating the benefits of joint training across the classifier cascade.

Summary updated

BibTeX
@misc{conejo2014speeding,
  author = {Bruno Conejo and Nikos Komodakis and Sébastien Leprince and Jean-Philippe Avouac},
  title = {{Speeding-up Graphical Model Optimization via a Coarse-to-fine Cascade of Pruning Classifiers}},
  year = {2014},
  eprint = {1409.4205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.4205},
}
Figure