Abstract
This tutorial provides a comprehensive roadmap to Probabilistic Graphical Models (PGMs), a field that marries probability theory with graph theory to model complex, uncertain systems. It explores the foundational "three pillars"—representation, inference, and learning—and concludes with a synthesis of how these classical concepts underpin modern deep learning breakthroughs like the Variational Autoencoder (VAE).
Introduction
In the real world, data is rarely deterministic. Whether predicting house prices, diagnosing diseases, or processing natural language, practitioners must manage inherent uncertainty. While simple linear equations provide a single "best guess," they fail to capture the full range of possibilities or the confidence of a prediction.
The primary challenge in modeling the joint probability of many variables is computational "explosion." For instance, a model with 100 binary variables requires $2^{100}$ parameters—an intractable number. PGMs solve this by using graphs to encode conditional independence. By identifying which variables do not directly affect each other, a massive distribution can be shattered into small, manageable local factors.
Representation: Describing the World
The PGM framework begins with representation. The tutorial covers Bayesian Networks (directed graphs for causal/generative stories) and Markov Random Fields (undirected graphs for symmetric relationships).
As shown in the figure above, a Directed Acyclic Graph (DAG) allows us to factorize the joint distribution $p(\mathbf{x})$ into a product of conditional probabilities. Instead of a single monolithic table, we only need to define the probability of each node given its parents (e.g., $p(d | b, e)$). This structure significantly reduces the number of parameters required to represent the system.
Inference: Asking the Model Questions
Once a model is represented, we must perform inference to extract useful information. The tutorial divides this into two categories:
- Exact Inference: Techniques like Variable Elimination and Belief Propagation use dynamic programming to compute marginals efficiently on tree-structured graphs. For more complex graphs, the Junction Tree Algorithm transforms the graph into a tree of "cliques."
- Approximate Inference: When exact calculations are NP-hard, the paper discusses Sampling (MCMC, Gibbs sampling) and Variational Inference. The latter cleverly recasts the problem as an optimization task, picking a simple distribution and warping it to match the complex target distribution via gradient descent.
Learning: Building from Data
Learning involves two distinct tasks: Parameter Learning, which fills in the numerical values within the probability tables, and Structure Learning, which discovers the "arrows" or connections between variables from raw data. A key insight here is the treewidth bottleneck: the computational hardness of a model is determined by how "looped" the graph is. If a graph is tree-like (low treewidth), inference remains efficient.
The VAE Bridge and Modern Synthesis
A major modern insight is framing the Variational Autoencoder (VAE) not just as a neural network, but as a latent variable PGM. This perspective explains why VAEs work: they perform "black-box" variational inference where the factors are parameterized by deep networks. This allows the model to learn smooth "manifolds," such as interpolating between human facial expressions or handwritten digits by traversing a low-dimensional latent space.
Limitations and Future Directions
Despite their power, PGMs face inherent difficulties:
- Intractability: Exact inference remains NP-hard for general graphs, and sampling can take prohibitively long to converge.
- Faithfulness Violations: Not every probability distribution can be perfectly represented by a graph; complex dependencies like "noisy-xor" problems often elude standard DAG structures.
- Causal Ambiguity: Structure learning often identifies a "Markov Equivalence Class" rather than a single definitive causal direction.
The future of the field lies in the continued integration of these structured probabilistic priors with the raw representational power of deep learning architectures.
Summary updated