Skip to main content
QUICK REVIEW

[Paper Review] Exact and approximate inference in graphical models: variable elimination and beyond

Nathalie Peyrard, Cros, Marie-Josée|arXiv (Cornell University)|Jun 29, 2015
Bayesian Modeling and Causal InferenceComputer Science115 references6 citations
TL;DR

This paper reviews variable elimination and treewidth-based inference techniques in graphical models, demonstrating that low treewidth enables efficient exact inference. It shows how optimal elimination orders and approximate methods like loopy belief propagation can balance accuracy and computational cost, especially when Monte Carlo methods are too slow.

ABSTRACT

Probabilistic graphical models offer a powerful framework to account for the dependence structure between variables, which is represented as a graph. However, the dependence between variables may render inference tasks intractable. In this paper we review techniques exploiting the graph structure for exact inference, borrowed from optimisation and computer science. They are built on the principle of variable elimination whose complexity is dictated in an intricate way by the order in which variables are eliminated. The so-called treewidth of the graph characterises this algorithmic complexity: low-treewidth graphs can be processed efficiently. The first message that we illustrate is therefore the idea that for inference in graphical model, the number of variables is not the limiting factor, and it is worth checking for the treewidth before turning to approximate methods. We show how algorithms providing an upper bound of the treewidth can be exploited to derive a 'good' elimination order enabling to perform exact inference. The second message is that when the treewidth is too large, algorithms for approximate inference linked to the principle of variable elimination, such as loopy belief propagation and variational approaches, can lead to accurate results while being much less time consuming than Monte-Carlo approaches. We illustrate the techniques reviewed in this article on benchmarks of inference problems in genetic linkage analysis and computer vision, as well as on hidden variables restoration in coupled Hidden Markov Models.

Motivation & Objective

  • To clarify why treewidth, not the number of variables, is the key determinant of inference complexity in graphical models.
  • To demonstrate that variable elimination can unify exact inference across marginalisation, normalisation, and mode evaluation.
  • To show how upper bounds on treewidth can guide the selection of efficient elimination orders for exact inference.
  • To advocate for approximate inference methods like loopy belief propagation and variational approaches when treewidth is too high for exact computation.
  • To bridge gaps between statistical inference and computer science by promoting the use of efficient, structure-aware algorithms in applied statistics.

Proposed method

  • Uses a unified algebraic framework based on semi-rings to express marginalisation, normalisation, and mode evaluation as special cases of variable elimination.
  • Leverages distributivity of algebraic operators (e.g., × over +, max over +) to reduce computational complexity during variable elimination.
  • Employs treewidth as a measure of algorithmic complexity, where low treewidth enables polynomial-time exact inference.
  • Applies algorithms that compute upper bounds on treewidth to derive near-optimal variable elimination orders.
  • Combines variable elimination with approximate inference techniques such as loopy belief propagation and variational approximations for high-treewidth models.
  • Integrates global potential functions (e.g., via min-cost flow) and conjugate exponential families to enable exact message passing in specific continuous or structured cases.

Experimental results

Research questions

  • RQ1How does treewidth determine the tractability of exact inference in graphical models?
  • RQ2Can variable elimination be systematically applied to unify exact inference across different tasks (marginalisation, normalisation, mode evaluation)?
  • RQ3To what extent can upper bounds on treewidth guide the construction of efficient elimination orders for exact inference?
  • RQ4When is approximate inference via message passing or variational methods preferable to Monte Carlo sampling in high-treewidth models?
  • RQ5How can exact inference techniques be combined with stochastic methods to improve sampling efficiency and accuracy?

Key findings

  • Treewidth is the primary determinant of computational complexity in variable elimination, not the number of variables.
  • Variable elimination can be systematically applied to all core inference tasks—marginalisation, normalisation, and mode evaluation—using a unified semi-ring framework.
  • Algorithms that compute upper bounds on treewidth can be used to derive elimination orders that make exact inference feasible on low-treewidth graphs.
  • For high-treewidth models, loopy belief propagation and variational approximations offer accurate results with significantly lower computational cost than Monte Carlo methods.
  • The integration of exact optimisation (e.g., shortest path, min-cost flow) with message passing enables efficient inference even with complex, global potential functions.
  • Recent hybrid methods combining Monte Carlo sampling with variational or exact inference (e.g., Discrete Particle Variational Inference) show promise in balancing accuracy and speed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.