Learning Dynamic Bayesian Networks from Data: Foundations, First Principles and Numerical Comparisons

Vyacheslav Kungurtsev, Petr Rysavý, Fadwa Idlahcen, Pavel Rytír, Ales Wodecki · DOI

Abstract

Dynamic Bayesian Networks (DBNs) represent a cornerstone of probabilistic graphical modeling for time-series data, yet the literature on learning their structure and parameters remains fragmented. This paper serves as a comprehensive "field guide," bridging classical statistical theory with modern machine learning paradigms. By establishing a unified taxonomy of DBN learning algorithms—ranging from constraint-based methods to continuous optimization—the authors provide a rigorous numerical comparison. Their findings highlight critical trade-offs between computational scalability, structural accuracy, and the ability to handle high-dimensional data regimes.

Introduction: The Challenge of Temporal Structure Learning

Dynamic Bayesian Networks are often described as the "Swiss Army Knife" of time-series modeling. They provide an interpretable framework for capturing evolving causal mechanisms while gracefully handling the inherent uncertainty of stochastic processes. Despite their utility in fields as diverse as econometrics, biology, and robotics, learning a DBN from observational data is notoriously difficult. Identifying the optimal graph structure is an NP-complete problem, further complicated by the "curse of dimensionality" where the number of variables often exceeds the available data points.

The primary objective of this work is to unify the disparate approaches to DBN learning. The authors address the fundamental challenge of identifying both the "who-influences-whom" (the directed acyclic graph structure) and the "by-how-much" (the conditional probability parameters) from multiple data trajectories.

Foundations of Dynamic Bayesian Networks

A DBN extends standard Bayesian Networks to model sequences of variables over time. It typically consists of an initial network representing the distribution at the first time step and a transition network that defines the dependencies between consecutive time steps.

A canonical Dynamic Bayesian Network (DBN) structure showing dependencies across time steps $t=0, 1, 2$.

As illustrated in Figure 1, DBNs capture two types of dependencies: intra-slice edges (contemporaneous influences within the same time step) and inter-slice edges (temporal influences across time). Enforcing acyclicity in these structures is crucial to avoid "circular reasoning" in causal inference.

Methodological Taxonomy

The paper categorizes the evolution of DBN learning into three primary families:

  1. Constraint-Based Methods: Algorithms like PCMCI+ utilize statistical tests, such as Conditional Independence (CI) tests, to prune potential edges. While theoretically grounded and capable of identifying causal skeletons, these methods often struggle with computational scaling as the number of variables grows.
  2. Score-Based Methods: This family treats learning as a discrete optimization problem, searching for a graph that maximizes a predefined score, such as the Bayesian Information Criterion (BIC) or the Bayesian Gaussian equivalent (BGe) score. Modern iterations, including GFlowNets, employ reinforcement learning to sample from the posterior distribution of possible graphs, offering a more nuanced view of model uncertainty.
  3. Continuous Optimization (One-Shot) Methods: A recent paradigm shift, exemplified by Dynotears, transforms the discrete graph search into a continuous optimization problem. By using an algebraic characterization of acyclicity—specifically, a constraint involving the trace of the matrix exponential—these methods allow for gradient-based learning. This approach significantly enhances speed and scalability for large-scale systems.

Experimental Framework and Benchmarks

To evaluate these methodologies, the authors utilized synthetic benchmarks where the "ground truth" structure is known. Using datasets from causaLens and DBNclass, they simulated complex causal graphs with varying temporal lags.

The experiments were conducted across two distinct data regimes:

  • Favorable Regime: Characterized by a high data-to-variable ratio ($NT \gg n$), where causal identification is theoretically more robust.
  • High Dimensional Regime: Simulating real-world constraints where the number of variables is large relative to the number of observed time steps.

The scale of these systems ranged from small (3 variables) to medium-large (30 variables), providing a clear picture of how different algorithms handle increasing complexity.

Key Insights: History, Trajectories, and Paradoxes

The study yields several profound insights into the nature of temporal learning:

  • The Conductance of History: The "mixing time" of a stochastic process determines how much information a single trajectory provides. Systems with high conductance "forget" their initial states quickly, making the starting point of a trajectory less critical for long-term structural learning.
  • Trajectory Value: For forecasting purposes, the authors found a greater benefit in obtaining longer trajectories rather than a larger number of short trajectories.
  • The Structural Paradox: Continuous methods often assign near-zero weights to edges. While conceptually binary (an edge either exists or it doesn't), this "soft" representation is the key enabler for scaling to hundreds of variables.
  • Hybridization: The most robust performance often emerges from hybrid methods that use constraints to narrow the search space before applying score-based sampling to resolve uncertainty.

Results and Comparative Performance

The numerical comparisons revealed a clear hierarchy of performance based on the problem scale:

  • Accuracy vs. Scalability: PCMCI+ remains the most reliable for low-dimensional problems but becomes computationally "impractical" for larger systems, often exceeding time limits.
  • Scalability Leaders: Dynotears and GFlowNets emerged as the most viable for large-scale problems. Dynotears offers superior speed, while GFlowNets provides better quantification of model uncertainty.
  • Structural Recovery: In high-dimensional settings, most algorithms struggle to recover the exact ground truth (measured by Structural Hamming Distance). However, they maintain high generative accuracy, suggesting that these models can predict future states effectively even if the underlying causal "mechanics" are not perfectly identified.

Limitations and Future Directions

Despite the comprehensive nature of this guide, several challenges remain. The current benchmarks assume causal sufficiency, meaning no unobserved confounders are influencing the system—a condition rarely met in real-world medical or economic data. Furthermore, the primary focus on Linear Structural Equation Models (LSEMs) leaves room for more extensive benchmarking of non-linear and neural DBN extensions. Finally, the authors suggest that future research should more tightly integrate the learning phase with inference tasks to better support practical causal discovery.

Summary updated

BibTeX
@misc{kungurtsev2024learning,
  author = {Vyacheslav Kungurtsev and Petr Rysavý and Fadwa Idlahcen and Pavel Rytír and Ales Wodecki},
  title = {{Learning Dynamic Bayesian Networks from Data: Foundations, First Principles and Numerical Comparisons}},
  year = {2024},
  eprint = {2406.17585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.17585},
}
Figure