Abstract
Traditional approaches to Bayes net structure learning typically assume little regularity in graph structure other than sparseness. However, in many cases, we expect more systematicity: variables in real-world systems often group into classes that predict the kinds of probabilistic dependencies they participate in. Here we capture this form of prior knowledge in a hierarchical Bayesian framework, and exploit it to enable structure learning and type discovery from small datasets. Specifically, we present a nonparametric generative model for directed acyclic graphs as a prior for Bayes net structure learning. Our model assumes that variables come in one or more classes and that the prior probability of an edge existing between two variables is a function only of their classes. We derive an MCMC algorithm for simultaneous inference of the number of classes, the class assignments of variables, and the Bayes net structure over variables. For several realistic, sparse datasets, we show that the bias towards systematicity of connections provided by our model yields more accurate learned networks than a traditional, uniform prior approach, and that the classes found by our model are appropriate.
Introduction
Learning the structure of a Bayesian network—the web of cause-and-effect relationships between variables—is notoriously difficult, especially when data is sparse. Most traditional algorithms use a "uniform prior," essentially assuming that any edge is as likely as any other, perhaps with a slight bias toward sparseness.
However, real-world systems are often systematic. In a medical database, variables are not just abstract nodes; they are "diseases," "symptoms," or "risk factors." Intuitively, diseases cause symptoms, not the other way around. If a machine could learn these "types" and the rules governing their interactions, it could narrow down the search space for the network structure dramatically. The challenge is doing this unsupervised—learning the classes and the network simultaneously from raw data.
Methods: A Hierarchical Bayesian Framework
The authors propose a nonparametric generative model for Directed Acyclic Graphs (DAGs) based on blockmodels. The core idea is to learn a partition of nodes into classes and a matrix of edge probabilities between those classes.
- Infinite Blockmodel: A Chinese Restaurant Process (CRP) partitions nodes into an unknown number of classes, allowing the model to discover as many or as few classes as the data supports.
- The Ordered Blockmodel: To ensure the resulting graph is a DAG, the model introduces an ordering over classes. Edges are only permitted to flow from "lower" classes to "higher" classes.
- Edge Probabilities (η): The probability of an edge existing between two nodes is determined solely by their class assignments.
- Inference via MCMC: A Markov Chain Monte Carlo (MCMC) algorithm simultaneously explores the space of class assignments, class orderings, and specific edges. Continuous parameters are analytically integrated out to improve efficiency.
Results and Key Insights
The researchers evaluated their model on several benchmarks, including layered topologies, random sparse DAGs, and real-world inspired networks like QMR-DT (medical diagnosis) and genetic regulatory networks.
Data Efficiency and Robustness
On a 12-node layered graph, the blockmodel achieved high accuracy with only 75 samples, while the uniform prior model produced a noisy, inaccurate result. Surprisingly, the blockmodel performed better than the uniform prior even on random graphs with no block structure. This is because the blockmodel could learn that the overall density of the graph was low, whereas the uniform prior remained less flexible.
As shown in the table above, at $n=30$ for random sparse DAGs, the blockmodel error (measured by KL divergence) was 0.53 compared to 0.78 for the uniform model. This robustness demonstrates that the structured prior provides a useful inductive bias even when the underlying system is not perfectly modular.
Simultaneous Discovery of Ontologies
The model doesn't just learn the network; it learns the ontology of the domain. In tests like HEPAR II and QMR-DT, the model successfully recovered meaningful groupings (e.g., separating diseases from symptoms) and used that knowledge to correctly orient edges that the baseline model struggled with.
Conclusion
By assuming that variables in real-world systems group into classes, this hierarchical framework enables more accurate structure learning from smaller datasets. While current computational complexity limits the approach to networks of approximately 40 nodes, future work may scale these methods to larger systems and incorporate richer pattern languages, such as class-dependent causal roles (e.g., excitatory vs. inhibitory interactions).
Summary updated