Graphical Model
Graphical model is a probabilistic representation that uses a graph to encode conditional independence structure among random variables. Nodes represent variables; edges represent direct probabilistic dependencies. The graph structure determines which factorizations of the joint distribution are valid, transforming high-dimensional inference problems into tractable local computations.
The two dominant families are Bayesian networks (directed acyclic graphs representing causal or temporal dependencies) and Markov random fields (undirected graphs representing symmetric interactions). Both frameworks exploit the factorization implied by the graph to make inference tractable, though the computational complexity depends sharply on the graph's treewidth.
Graphical models are the backbone of Bayesian statistics, machine learning, and computational biology. They provide the structure on which variational inference and expectation propagation operate. The graph is not merely a visualization; it is a computational contract, specifying which conditional probabilities must be estimated and which can be derived.
Graphical Models as Computational Topology
The power of a graphical model lies not in its probabilistic content but in its computational topology. A joint distribution over n binary variables requires 2^n numbers to specify. A graphical model with bounded degree replaces this exponential specification with a polynomial one — not because the world is simple, but because the graph encodes which simplifications are valid. The graph is a claim about which conditional independencies hold, and that claim is simultaneously statistical and computational: it says not only that certain variables do not directly influence each other, but that the system can be computed without propagating information through those channels.
This topological view reveals why graphical models appear across such disparate domains. In statistical mechanics, the Ising model is a Markov random field on a lattice; the phase transitions it exhibits are properties of the graph's connectivity, not of the specific interaction energies. In causal inference, a directed acyclic graph encodes not merely correlations but interventionist counterfactuals — the graph determines what happens when a node is forced to a value rather than merely observed. In active inference, the generative model that an organism maintains of its environment is a graphical model whose precision-weighted message passing is formally identical to predictive coding in the brain.
The unifying insight is that graphical models are information flow architectures. They specify which information must be exchanged for a system to maintain coherence, and which can be safely ignored. A sparse graph is not merely a simplifying assumption; it is a claim that the system's dynamics are locally generated, that global behavior emerges from neighborhood interactions without requiring centralized coordination.
Inference as Message Passing
The canonical inference algorithms for graphical models are all variants of message passing. In a tree-structured graph, belief propagation computes exact marginals by passing local messages between neighboring nodes: each node aggregates messages from its children, combines them with its own evidence, and passes the result to its parent. The algorithm is local, parallel, and exact — a distributed consensus protocol in which each node converges to the correct marginal without ever seeing the full graph.
When the graph contains cycles, exact inference becomes computationally intractable, and the field divides into approximation strategies. Loopy belief propagation applies the same local message-passing rules to cyclic graphs, sacrificing exactness for scalability. It often converges to surprisingly accurate approximations, and when it fails — when messages oscillate or diverge — the failure modes themselves reveal structural properties of the graph. Variational inference takes a different approach, replacing the true posterior with the closest approximation in a tractable family, and optimizing the approximation by message-passing on a transformed graph called a factor graph.
The message-passing paradigm is not limited to probabilistic inference. It describes how information propagates in biological signaling networks, how rumors spread in social networks, and how prices converge in decentralized markets. The mathematical structure is the same: local agents exchange messages until a global equilibrium is reached. The differences are in the semantics of the messages — probabilities, chemical concentrations, memes, price signals — but the dynamics of convergence, oscillation, and phase transition are universal.
The Causal Interpretation Problem
Not every graphical model is a causal model. A Bayesian network encodes conditional independence structure, but conditional independence is symmetric: if A is conditionally independent of C given B, the graph does not distinguish whether B mediates a causal influence from A to C, from C to A, or is a common cause of both. The directed edges in a Bayesian network represent probabilistic factorization, not necessarily causal direction.
To interpret a graphical model causally requires additional assumptions: either temporal ordering (the cause precedes the effect), intervention data (observing what happens when a variable is forced), or structural constraints (the assumption that certain variables cannot be causes of others). The causal emergence literature formalizes this distinction: a probabilistic graphical model describes the system's information structure, while a causal model describes its manipulation structure. The two may coincide, but they need not.
This distinction matters for artificial intelligence. A reinforcement learning agent that learns a probabilistic model of its environment can predict what will happen next, but it cannot determine what would happen if it took a different action unless its model includes causal structure. The same limitation applies to large language models: they encode vast probabilistic dependencies, but without causal interpretation, they cannot reason reliably about intervention, counterfactuals, or the effects of actions. Probabilistic inference without causal structure is prediction; with causal structure, it becomes planning.
The ubiquity of graphical models across science and engineering is often cited as evidence for their universality. The opposite interpretation is more accurate: graphical models are ubiquitous because they encode the only kind of computation that scales — local, distributed, message-passing computation on sparse topologies. Any system that must process information in real time without centralized control will converge on graphical model structure, not because it is optimal but because the alternatives are computationally impossible. The graph is not a model of reality; it is the shape that reality takes when it must be computed.