Anytime Marginal MAP Inference

Denis Deratani Mauá, Cassio Polpo de CamposICML 2012 · DOI

Abstract

This paper presents a new anytime algorithm for the marginal MAP problem in graphical models. The algorithm is described in detail, its complexity and convergence rate are studied, and relations to previous theoretical results for the problem are discussed. It is shown that the algorithm runs in polynomial-time if the underlying graph of the model has bounded tree-width, and that it provides guarantees to the lower and upper bounds obtained within a fixed amount of computational resources. Experiments with both real and synthetic generated models highlight its main characteristics and show that it compares favorably against Park and Darwiche's systematic search, particularly in the case of problems with many MAP variables and moderate tree-width.

Introduction

In probabilistic graphical models, we often seek the most likely explanation for data, a task known as Maximum a Posteriori (MAP) inference. However, many practical problems involve "nuisance" parameters that must be marginalized out (summed) while others are maximized. This is the Marginal MAP (MMAP) problem: $\max_{d} \sum_{h} P(d, h)$.

MMAP is significantly more difficult than standard MAP or marginalization. Because summation and maximization do not commute, the order of operations is strictly constrained. Computationally, this makes the problem $NP^{PP}$-hard. Even on graphs with small treewidth where standard inference is efficient, MMAP can remain practically intractable.

The Factor-Set-Elimination Approach

To address this complexity, the authors introduce Factor-Set-Elimination (FSE). Traditional message-passing algorithms, like the Junction Tree algorithm, propagate a single factor (a table of values) between nodes in a clique tree. In contrast, FSE propagates sets of factors. Each factor in a set represents a potential partial solution for the maximization variables.

A factor graph (left) and its corresponding clique tree (right) used for message passing in the FSE algorithm.

As messages are passed, the size of these factor sets can grow exponentially. To maintain efficiency, FSE employs geometric pruning techniques to remove factors that cannot be part of the optimal solution:

  • Convex Hull Pruning: Factors that are convex combinations of others in the set can be safely discarded.
  • Pareto Dominance: If one factor is point-wise smaller than another across all possible states, it is dominated and removed.

Anytime Inference and Bounds

When exact calculation is too costly, FSE functions as an anytime algorithm. By using clustering to select "representative" factors, the algorithm generates a lower bound ($Z_l$) and an upper bound ($Z_u$). The algorithm iteratively refines these bounds by increasing the allowed set size ($k$), narrowing the gap until the bounds meet or the user interrupts the process.

Experimental Evaluation

The authors evaluated FSE on benchmark Bayesian networks (e.g., Alarm, Insurance), synthetic Knapsack problems, and grid models.

Convergence of lower ($Z_l$) and upper ($Z_u$) bounds for log Z over time across different model types.

Key results include:

  • Superiority in High-Search Spaces: On Knapsack problems with low treewidth but many decision variables, FSE found optimal solutions in seconds, while systematic search methods (like SamIam) timed out after hours.
  • Anytime Convergence: The experiments demonstrated that the lower and upper bounds converge steadily over time, providing a certificate of solution quality that other approximate methods lack.
  • Treewidth Sensitivity: Like all clique-tree methods, FSE is sensitive to treewidth. As the graph becomes denser, the underlying message-passing becomes more expensive, though the anytime bounds still provide useful approximations.

Conclusion

Factor-Set-Elimination offers a powerful framework for Marginal MAP inference by bridging the gap between exact search and approximate variational methods. Its anytime nature and guaranteed bounds make it a robust choice for complex decision-making tasks under computational constraints. Future research may explore "mini-bucket" style decompositions to further improve performance on high-treewidth models.

Summary updated

BibTeX
@inproceedings{maua2012anytime,
  author = {Denis Deratani Mauá and Cassio Polpo de Campos},
  title = {{Anytime Marginal MAP Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
  doi = {10.48550/arxiv.1206.6424},
}
Figure