Worst-case Optimal Submodular Extensions for Marginal Estimation

Pankaj Pansari, Chris Russell, M. Pawan KumararXiv 2018

Abstract

Submodular extensions of an energy function can be used to efficiently compute approximate marginals via variational inference. The accuracy of the marginals depends crucially on the quality of the submodular extension. To identify the best possible extension, we show an equivalence between the submodular extensions of the energy and the objective functions of linear programming (LP) relaxations for the corresponding MAP estimation problem. This allows us to (i) establish the worst-case optimality of the submodular extension for Potts model used in the literature; (ii) identify the worst-case optimal submodular extension for the more general class of metric labeling; and (iii) efficiently compute the marginals for the widely used dense CRF model with the help of a recently proposed Gaussian filtering method. Using synthetic and real data, we show that our approach provides comparable upper bounds on the log-partition function to those obtained using tree-reweighted message passing (TRW) in cases where the latter is computationally feasible. Importantly, unlike TRW, our approach provides the first practical algorithm to compute an upper bound on the dense CRF model.

Introduction

In computer vision and structured prediction, Conditional Random Fields (CRFs) are widely used to model dependencies between variables, such as pixels in an image. Two fundamental tasks in these models are MAP estimation (finding the most likely labeling) and marginal estimation (calculating the probability of a specific label for a variable). Marginal estimation is particularly challenging because it requires computing the partition function, which involves an exponential sum over all possible labelings.

Visualization of the variable-label space for a set of random variables $V_1, ..., V_4$.

Recent research has explored using submodular extensions—continuous relaxations of discrete energy functions—to approximate these marginals. However, a principled method for selecting the optimal extension has been lacking, often limiting applications to simple models like the Potts model.

Theoretical Framework: The LP Connection

The core contribution of this work is the discovery of a mathematical equivalence between choosing a submodular extension and selecting an objective function for a linear programming (LP) relaxation of the MAP problem. This bridge allows the application of established optimization theory to improve variational inference.

The authors identify "worst-case optimal" extensions for both the Potts model and the more general metric labeling problem. This optimality ensures that no other extension in these classes provides a tighter bound across all possible scenarios.

Decomposition of the Potts model energy into submodular extensions $F_k(A)$ for each label $k$.

For complex label spaces, the paper demonstrates how any metric can be approximated using a mixture of hierarchical Potts models. Furthermore, for dense CRFs where standard methods fail due to computational complexity, the authors adapt a Gaussian filtering technique to compute gradients in $O(NL)$ time, where $N$ is the number of variables and $L$ is the number of labels.

Experimental Evaluation

The proposed method was evaluated on both synthetic and real-world datasets, including $100 \times 100$ lattices for comparison against Tree-Reweighted message passing (TRW) and the Middlebury Stereo Dataset for real-world dense CRF tasks.

Key Results

  • Tightness and Scalability: On sparse graphs, the proposed approach yielded upper bounds comparable to TRW. Crucially, while TRW is computationally prohibitive for dense graphs, this method scales effectively.
  • Stereo Matching Performance: In dense CRF applications for stereo matching, the method consistently achieved lower energy solutions than the standard Mean Field baseline, with an average energy ratio of 0.943.
  • Complementary Bounds: Unlike Mean Field inference, which provides a lower bound on the log-partition function, this method provides an upper bound. Together, they allow researchers to "sandwich" the true value, offering a measure of approximation accuracy.

Conclusion and Future Work

While the proposed method provides the first practical upper bound for dense CRFs, it is approximately 10x slower than Mean Field inference. Future work includes optimizing speed for real-time applications and extending the framework to high-order potentials. Additionally, exploring instance-specific extensions rather than class-wide worst-case optimal ones could lead to even tighter bounds.

Summary updated

BibTeX
@misc{pansari2018worst,
  author = {Pankaj Pansari and Chris Russell and M. Pawan Kumar},
  title = {{Worst-case Optimal Submodular Extensions for Marginal Estimation}},
  year = {2018},
  eprint = {1801.06490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.06490},
}
Figure