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

Recursive Algorithms for Approximating Probabilities in Graphical Models

Tommi S. Jaakkola, Michael I. Jordan

This classic paper by Tommi Jaakkola and Michael I. Jordan introduces a powerful framework for performing approximate inference in complex graphical models. By combining variational methods with recursive node elimination, the authors provide a way to calculate rigorous upper and lower bounds on probabilities, filling a critical gap between "fast but loose" approximations and "accurate but slow" exact methods.

TL;DR

The authors present a recursive node-elimination algorithm that provides guaranteed upper and lower bounds for probabilities in graphical models like Boltzmann machines and sigmoid belief networks. This approach allows researchers to "peel off" complex parts of a network using approximations while using exact methods for the remaining tractable structures.

What Problem Does This Paper Address?

In the world of probabilistic graphical models, we often want to calculate the "partition function" (a normalizing constant) or marginal probabilities to perform inference or learning. For sparsely connected networks, exact methods (like the junction tree algorithm) work perfectly. However, for highly interconnected networks—common in neural network literature—exact computation becomes exponentially expensive.

Existing approximations, such as standard mean-field theory, often provide a single point estimate without a clear sense of how much error is involved. Furthermore, these approximations usually don't "play well" with exact methods; you typically have to choose one or the other. This paper addresses the need for a method that is:

  1. Controlled: Providing rigorous confidence intervals (upper and lower bounds).
  2. Integratable: Capable of being used alongside exact methods.
  3. Flexible: Applicable to various architectures, including Boltzmann machines and directed sigmoid belief networks.

Methods

The core idea is recursive node elimination. In exact inference, you can eliminate a variable by summing it out, but this often creates a "clique" that makes the remaining graph denser and computationally heavier.

Recursive node elimination simplifies a complex graph into a more tractable structure.

The authors propose a variational alternative to avoid this explosion in complexity:

  • Lower Bounds: They use a variational bound (related to mean-field theory) to eliminate a node. This transformation is simple: it removes the node and updates the "biases" of its neighbors without adding new connections.
  • Refined Upper Bounds: They introduce a more sophisticated upper bound based on the concavity of the logistic function. Unlike the simple lower bound, this "refined" version actually mimics the structural changes of exact marginalization—it adds edges between the neighbors of the eliminated node, preserving more of the network's informational structure.
  • Hybrid Inference: Because the elimination is recursive and results in a new (smaller) Boltzmann machine at each step, you can stop the approximation at any point. If the remaining graph is small or sparse enough, you can simply hand the remaining parameters to an exact solver.

Datasets

The paper focuses on theoretical derivation and validation rather than large-scale benchmarks. The authors evaluated their methods using:

  • Random Fully Connected Networks: Specifically, networks with 8 variables where weights were chosen uniformly from a range $[-d, d]$. The small size was chosen intentionally to allow for comparison against ground-truth exact results.

Key Insights and Ideas

  • The "Structural" Bound: One of the most interesting findings is that the "refined" upper bound actually imposes the correct structural changes on the graph. If two nodes were both connected to the node being eliminated, the refined bound creates a connection between them. This suggests the bound is capturing the "induced dependencies" that simple mean-field methods ignore.
  • Unifying Directed and Undirected Models: The authors show that their framework isn't just for Boltzmann machines (undirected). By treating Sigmoid Belief Networks (directed) as a special case of "chain graphs," they show that the same recursive bounding logic applies to both.
  • Error Control: By maintaining both an upper and a lower bound, the algorithm provides a "sandwich" estimate. This is crucial for high-stakes fields like medicine, where knowing the uncertainty of a prediction is as important as the prediction itself.

Key Results

  • Accuracy: In the random 8-node experiments, the refined upper bound significantly outperformed the factorized lower bound in terms of accuracy, tracking much closer to the exact zero-error baseline.
Comparison of the refined upper bound and factorized lower bound errors.
  • Scalability of Error: The authors tested the difference between the bounds on networks ranging from 8 to 128 nodes. They found that the relative difference between the upper and lower bounds remained fairly stable as the network size increased, suggesting the method scales well to larger systems.
  • Dominant Error Source: The experiments revealed that most of the "gap" between the bounds came from the simpler factorized lower bound, implying that the refined upper bound is quite tight.

Limitations and Future Work

  • Computational Overhead: While the refined bound is more accurate, it is more computationally intensive than the simple factorized version because it adds edges to the graph, potentially slowing down subsequent elimination steps.
  • Restricted Chain Graphs: The authors note that the chain graphs they consider are of a "restricted type," though they still encompass the most common neural network architectures of the time.
  • Optimization of Variational Parameters: The bounds depend on "variational parameters" that must be optimized. The paper doesn't go into deep detail about the most efficient ways to perform this optimization in very large-scale settings.

Summary updated

BibTeX
@inproceedings{jaakkola1996recursive,
  author = {Tommi S. Jaakkola and Michael I. Jordan},
  title = {{Recursive Algorithms for Approximating Probabilities in Graphical Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1996},
}
Figure