This 1999 classic by Michael Jordan and colleagues is a cornerstone of modern machine learning. It provides a rigorous yet accessible tutorial on variational methods—a family of techniques used to perform probabilistic inference when exact calculations are computationally impossible.
Abstract
Variational methods transform complex probabilistic inference problems into deterministic optimization problems. By using convex duality to simplify the structure of a graphical model, these methods provide rigorous bounds on probabilities that would otherwise be intractable to compute.
The Challenge of Exact Inference
In the world of graphical models, such as Bayesian networks or Markov random fields, the primary goal is inference: calculating the probability of hidden variables given observed evidence, $P(H|E)$.
For simple, sparse graphs, exact algorithms like the Junction Tree algorithm are efficient. However, these algorithms rely on a process called "triangulation." If a graph is densely connected, triangulation creates massive "cliques" of nodes. Because the complexity of exact inference grows exponentially with the size of these cliques, many real-world models—such as large-scale medical diagnostic tools or deep neural networks—are considered "intractable."
While Monte Carlo (sampling) methods offer an alternative, they can be slow to converge and difficult to monitor. Variational methods offer a faster, deterministic alternative that provides clear mathematical bounds on the results.
Methodological Framework
The authors present a framework based on convex duality. The core idea is to take a difficult, nonlinear function within the probability distribution and replace it with a family of simpler (usually linear or quadratic) bounds.
- Variational Parameters: The authors introduce "variational parameters" ($\lambda$) that do not exist in the original model. These parameters are adjusted to make the simplified bound as tight as possible to the true distribution.
- Sequential Approach: This involves transforming nodes one by one to "thin out" the graph. For example, in the QMR-DT medical database, transforming a few symptom nodes can "delink" them, eventually reducing a dense graph into a simpler, singly-connected one where exact methods can run.
- Block Approach (Mean Field): Instead of node-by-node, this approach approximates the entire distribution $P$ with a simpler distribution $Q$ (often a completely factorized one where all variables are independent). The goal is to minimize the Kullback-Leibler (KL) divergence between $Q$ and $P$.
Key Insights and Results
- Optimization as Inference: The most profound shift is moving from integration/summation (which is hard) to optimization (which is well-understood). By finding the best variational parameters, you are effectively performing inference.
- Sparsification: Graphically, variational inference can be viewed as "removing" edges or "delinking" nodes to reveal a tractable backbone hidden within a dense web of dependencies.
- Rigorous Bounds: Unlike sampling, which gives a point estimate, variational methods typically provide a lower bound on the likelihood, giving researchers a mathematical guarantee.
- Speed vs. Accuracy: On the QMR-DT database (~600 diseases, ~4000 symptoms), variational methods produced accurate results in less than a second, whereas state-of-the-art sampling algorithms required significantly more time.
- Neural Network Training: The paper shows that treating neural networks as graphical models allows for "diagnostic" reasoning—for example, the model could successfully infer the bottom half of a handwritten digit given only the top half.
Limitations
Despite their power, variational methods have limitations. The "Mean Field" approximation is inherently unimodal; if the true distribution has multiple peaks, the approximation will only capture one. Furthermore, at the time of publication, choosing the right transformation was considered an "art," often requiring manual derivation for each new model architecture.
Summary updated