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

A Principled Approach for Coarse-to-Fine MAP Inference

Christopher Zach

Introduction

This paper introduces a principled coarse-to-fine strategy for Maximum A Posteriori (MAP) inference in graphical models with massive or continuous state spaces. By iteratively refining "interval" labels and leveraging efficient message-passing algorithms, the approach optimizes a linear programming (LP) relaxation with significantly less memory while maintaining theoretical guarantees on the solution quality.

In computer vision, many tasks involve assigning a value (a "label") to every pixel—such as finding exact depth in stereo pairs or precise motion vectors in optical flow. When labels come from a continuous space or a dense grid (e.g., thousands of possible motion vectors), the problem becomes computationally explosive. Standard techniques like Linear Programming (LP) relaxation provide high accuracy and theoretical lower bounds but are notorious memory hogs, as memory scales with the number of labels. While "coarse-to-fine" heuristics are often used to cope, they typically lose the theoretical guarantees of the original LP problem. This work bridges that gap by providing a coarse-to-fine method that is both efficient and mathematically rigorous.

Methodology

The core approach re-evaluates "interval convex Belief Propagation (BP)" through several key mechanisms:

  1. State Space Partitioning: Labels are grouped into intervals (or hyper-rectangles in higher dimensions) rather than individual points.
  2. Iterative Refinement: Starting with a coarse set of intervals, the algorithm uses message passing to identify promising regions and subdivides only those into finer pieces.
  3. Efficient Message Passing: To avoid quadratic costs, the method employs non-uniform min-convolution, allowing messages between coarse groups to be computed as efficiently as fine-grained points.
  4. Pruning and Coarsening: A novel "dead-end elimination" (DEE) condition for group states ensures that labels proven to be non-optimal are discarded early without sacrificing the global optimum.

Experimental Setup

The method was evaluated on two classic computer vision problems:

  • Piece-wise Smooth Denoising: Using the Mumford-Shah functional on standard images including Lena, Tsukuba, Teddy, Cones, and Art.
  • Optical Flow Estimation: Using the Middlebury dataset (Army, Grove, Urban, and Evergreen). The state space here is particularly large, representing 2D flow vectors on a $128 \times 128$ grid (16,384 possible states).

Results and Discussion

The algorithm successfully handled optical flow with over 16,000 states—a scale typically prohibitive for standard LP relaxation solvers. As shown in Figure 1, the number of active states tracked by the algorithm grows and then plateaus as the refinement process focuses on the most relevant regions of the state space.

Evolution of active states during refinement for optical flow datasets.

Furthermore, the dual energy—a lower bound on the true energy—increases steadily over time, demonstrating that the coarse-to-fine refinement effectively optimizes the original complex problem (see Figure 2).

Convergence of dual energy over CPU time for optical flow tasks.

Key results include:

  • Massive Memory Savings: For image denoising (Lena), the method required only 139 MiB of memory, compared to 2048 MiB for a standard implementation.
  • Principled Pruning: The "dead-end elimination" ensures no potentially optimal solution is accidentally discarded.
  • Efficiency Inheritance: Potential functions that allow efficient message passing in fine-grained space (like distance transforms) remain efficient in the interval-based coarse space.

Conclusion

While the method offers significant memory savings, its efficiency relies on the ability to compute lower bounds of potential functions over intervals. This is straightforward for common costs like $L_1$ or $L_2$ distances but may be challenging for unstructured potentials. Additionally, repeatedly computing data terms in ambiguous regions can consume significant CPU time. Future work may involve extending this framework to more complex potentials where efficient bounds can be derived, potentially generalizing the method for template matching in random fields.

Summary updated

BibTeX
@inproceedings{zach2014principled,
  author = {Christopher Zach},
  title = {{A Principled Approach for Coarse-to-Fine MAP Inference}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.173},
}
Figure