Bayesian structure learning using dynamic programming and MCMC

Daniel Eaton, Kevin P. MurphyUAI 2007

TL;DR

This paper introduces a novel hybrid approach that combines dynamic programming (DP) with Markov Chain Monte Carlo (MCMC) to significantly speed up Bayesian structure learning for directed graphical models. By using DP to generate more informed proposals for MCMC, the method achieves faster convergence and more accurate posterior estimates compared to existing techniques, especially for complex networks.

What Problem Does This Paper Address?

Learning the structure of directed graphical models (like Bayesian networks) from data is crucial for understanding complex systems, but it's a computationally challenging problem. The space of possible graph structures grows exponentially with the number of variables, making exhaustive search or exact Bayesian model averaging intractable for anything but small networks. Traditional MCMC methods for exploring this space often get stuck in local optima due to simplistic proposals (e.g., adding/deleting single edges), leading to slow convergence and inaccurate results. While dynamic programming can exactly compute marginal posteriors for certain priors, it's limited by its reliance on "modular" priors and its own exponential complexity. This paper aims to bridge this gap by leveraging the strengths of both DP and MCMC to efficiently and accurately learn Bayesian network structures.

Methods

The core innovation is a hybrid DP-MCMC approach. Instead of using standard, local MCMC proposals, the authors propose using the output of a dynamic programming algorithm as a proposal distribution. Specifically, the DP algorithm computes exact marginal posterior probabilities for edges ($p(G_{ij}=1|D)$). These probabilities are then used to construct a more "global" proposal for the MCMC sampler, which can jump between distant parts of the graph space more effectively.

The MCMC sampler uses a mixture of two proposals:

  1. Local Proposal: Standard MCMC moves that add, delete, or reverse a single edge.
  2. Global Proposal: A proposal that uses the DP-computed edge marginals to probabilistically add or orient edges. This proposal is designed to be more informative and less prone to getting stuck.

The authors also discuss the limitations of DP, particularly its reliance on modular priors, and how their hybrid approach can overcome these by sampling from an arbitrary prior.

Datasets

The paper evaluates its method on several datasets:

  • Synthetic 5-node "cancer network": Used for initial comparisons of convergence speed.
  • Coronary Heart Disease (CHD) dataset: A real-world dataset with 6 binary variables.
  • 20-node "child" network: A larger synthetic network used to test scalability and structural discovery.
  • Synthetic 15-node network: Used for evaluating predictive density accuracy.
  • "Adult" US Census dataset: A real-world dataset with 14 attributes.
  • Sachs (T-cell signalling pathway) dataset: A biological dataset with 11 protein concentration levels.

Key Insights and Ideas

  • DP as an Informative Proposal: The most significant insight is that exact DP computations, even if computationally expensive on their own, can be used to create highly effective proposals for MCMC. This allows MCMC to explore the vast graph space more efficiently by leveraging the global information from DP.
  • Overcoming DP's Limitations: The hybrid approach circumvents DP's restriction to modular priors and its difficulty in computing predictive densities. By sampling graphs, the method can approximate posteriors for arbitrary priors and features, and estimate predictive densities more efficiently.
  • Global vs. Local Exploration: The paper demonstrates that purely local MCMC proposals are often too slow to converge, while purely global proposals (even those informed by DP) can sometimes be too "sticky" or not aperiodic. A mixture of local and global proposals (the "Hybrid" method) strikes a good balance, leading to faster and more accurate results.
  • Bayesian Model Averaging (BMA) is Superior: The results consistently show that BMA methods (including their hybrid approach) significantly outperform plug-in estimators (like MAP-optimal DAGs or trees) in terms of predictive accuracy, highlighting the importance of accounting for model uncertainty.

Key Results

  • Faster Convergence: The hybrid DP-MCMC method consistently converges to the exact posterior marginals much faster than standard MCMC methods (Gibbs, local, order sampling) across various datasets. For example, on the 5-node cancer network, it achieves significantly lower SAD error in less time.
  • Improved Accuracy: The method achieves higher accuracy in estimating edge and path presence, as measured by Area Under the ROC Curve (AUC). On the 20-node child network, the hybrid method achieved an AUC of 1.0 for edge features, matching exact DP and outperforming other MCMC methods.
  • Superior Predictive Density: For predictive density estimation (measured by log loss), the hybrid method provides a good approximation to exact DP (which is very slow) and significantly outperforms other MCMC methods and plug-in estimators.
  • Scalability: While DP itself is exponential, the hybrid approach shows better scalability than pure DP for complex tasks like predictive density estimation, offering comparable results at a fraction of the computational cost.

Limitations and Future Work

  • DP's Exponential Complexity: The underlying DP algorithm's exponential time and space complexity still limits the method to around 20-22 nodes.
  • Future Work: The authors suggest exploring ways to scale beyond this limit by sampling partitions of variables and using the DP-based sampler within these partitions. They also propose further investigating the simultaneous sampling of partitions and graphs.

Summary updated

BibTeX
@inproceedings{eaton2007bayesian,
  author = {Daniel Eaton and Kevin P. Murphy},
  title = {{Bayesian structure learning using dynamic programming and MCMC}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2007},
}
Figure