Extendable and Iterative Structure Learning Strategy for Bayesian Networks

Hamid Kalantari, Russell Greiner, Pouria RamaziICLR 2025

Learning the structure of Bayesian Networks (BNs) from data is a notoriously difficult, NP-hard problem because the number of possible graph structures grows exponentially with the number of variables. Traditional "gold standard" algorithms, such as the PC algorithm, suffer from a major flaw: they are static. If you have an existing model and need to introduce a new variable—like adding "social media sentiment" to a stock market model—traditional methods require you to discard the old model and relearn the entire structure from scratch. In high-dimensional fields like genomics or finance, this is computationally prohibitive and ignores the valuable information already encoded in the existing model.

To address this, researchers have developed a new "extendable" strategy for Bayesian Network structure learning. This approach allows practitioners to add new variables to an existing model without retraining from scratch, achieving up to a 1300x speedup in runtime while maintaining—and sometimes even improving—model accuracy.

The Extendable Structure Learning Strategy

Instead of executing a full search, the proposed method focuses exclusively on how a new variable $Y$ interacts with an existing, correct graph $\mathcal{G}$. The authors present this approach in two primary flavors:

  1. Extendable PC (Constraint-based): This method modifies the classic PC algorithm. Instead of testing every possible conditional independence (CI), it first identifies the neighbors of the new variable $Y$. It then uses $Y$ to "prune" only the existing edges in $\mathcal{G}$ that might have been spurious due to $Y$ being previously unobserved.
  2. Extendable Score-based: This approach uses a "T-function" to drastically trim the search space of possible Directed Acyclic Graphs (DAGs). It restricts the search to only those graphs that respect the theoretical constraints of the existing structure.

Building on these extendable methods, the authors also introduce an Iterative Paradigm. Rather than processing a massive set of variables all at once, this paradigm starts with a tiny subset (e.g., two variables) and iteratively adds the remaining variables one by one using the extendable algorithm.

Key Insights: Spurious Adjacencies and the "No New Edges" Rule

One of the most significant theoretical findings in the paper is the "No New Edges" rule. The authors prove that adding a new variable $Y$ to a perfect map (P-map) can only result in the deletion of existing edges between original variables; it never results in the addition of new ones. This immediately collapses the computational search space.

But why would an edge disappear when a new variable is added? The paper identifies that $Y$ often explains a correlation that previously looked like a direct link.

Examples of spurious adjacencies caused by a newly introduced variable Y.

As illustrated above, a previously assumed direct edge between two variables (like $X_1$ and $X_2$) might actually be spurious. This happens when the newly introduced $Y$ acts as a "hidden common cause" (confounder) or a "mediator" between them. By only performing CI tests related to the new variable and its immediate neighbors to check for these specific structures, the algorithm avoids the combinatorial explosion of tests required by standard learning methods.

Surprisingly, the Iterative Superiority principle shows that building a graph node-by-node can actually be faster than building it all at once. Iterative construction maintains a smaller "maximum degree" of nodes throughout the process, which is the primary driver of complexity in constraint-based learning.

Empirical Results

The researchers evaluated their methods on 13 classic Bayesian Network benchmark datasets, ranging from small networks (like ASIA and CANCER) to large, complex ones (like ALARM, HEPAR2, and ANDES, which contains 223 nodes). Using 10,000 instances drawn from these distributions, the performance gains were dramatic:

  • Massive Speedups: On the large ANDES dataset, the Extendable PC algorithm was 1346 times faster than the standard PC algorithm, dropping runtime from 2652 seconds to just 1.97 seconds.
  • Test Efficiency: The number of CI tests required for the HEPAR2 dataset plummeted from over 23,000 using standard PC to a mere 536 with Extendable PC.
  • Maintained Accuracy: Measured using Structural Hamming Distance (SHD), the Extendable and Iterative versions matched the accuracy of the standard PC algorithm in almost all cases. In some datasets, like WATER, the Iterative approach actually reduced the error rate.

Limitations and Future Work

While the results provide a highly scalable solution for BN structure learning, the authors note a few areas for further exploration:

  • Variable Ordering: In the iterative approach, the order in which variables are added impacts performance. An ordering close to the "topological causal order" yields the best results, but automatically determining this optimal order remains a challenge.
  • Hidden Variables: The underlying theory assumes the distribution admits a P-map. If there are many unobserved latent variables beyond the one being actively added, the "faithfulness" assumption might be violated, potentially leading to structural errors.
  • Real-time Updates: This work sets a strong foundation for real-time model updates. However, further research is needed to seamlessly integrate this into streaming data environments where new instances and new variables arrive simultaneously.

Summary updated

BibTeX
@inproceedings{kalantari2025extendable,
  author = {Hamid Kalantari and Russell Greiner and Pouria Ramazi},
  title = {{Extendable and Iterative Structure Learning Strategy for Bayesian Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=3n6DYH3cIP},
}
Figure