Bayesian Network Structure Learning with Side Constraints

Andrew C. Li, Peter BeekPGM 2018 · OpenReview

Abstract

Hybrid methods for Bayesian network structure learning that incorporate both observed data and expert knowledge have proven to be important in many fields. Previous studies have presented both exact and heuristic approaches, but scaling these methods to large networks while satisfying complex, non-decomposable constraints remains a significant challenge. This paper introduces MINOBSx, a local search algorithm designed to incorporate ancestral constraints as hard requirements. By leveraging an ordering-based search space and novel pruning techniques, MINOBSx scales to networks twice as large as previous exact methods while maintaining high structural accuracy and 100% constraint feasibility.

Introduction

Bayesian Networks (BNs) are essential tools for representing probabilistic relationships and causal structures across various domains. However, learning the optimal structure of a BN from raw data is an NP-hard problem. Researchers typically rely on two primary paradigms: data-driven learning, which requires massive datasets and often struggles with causal directionality, and expert-driven design, which is limited by the expert's inability to specify every edge in a complex system.

A middle ground exists in hybrid learning, where experts provide "side knowledge" to guide the data-driven process. A particularly valuable form of knowledge is the ancestral constraint (e.g., "Variable X is an ancestor of Variable Y"). Unlike simple edge constraints, ancestral constraints are non-decomposable; they cannot be verified by looking at a single node and its parents but require an evaluation of the entire graph. While exact solvers can handle these constraints for small networks, they typically fail as the number of variables exceeds 20. This paper presents MINOBSx, a memetic algorithm designed to bridge this gap in scalability.

Methodology

The MINOBSx Algorithm

MINOBSx is built upon a local search framework that optimizes the network structure by searching through the space of topological orderings rather than the space of directed acyclic graphs (DAGs). This approach inherently guarantees that any resulting graph is acyclic, satisfying a fundamental requirement of BNs.

To maintain efficiency, the authors introduce technical innovations to manage the search space:

  1. Topological Search: By searching for variable orderings, the algorithm reduces the astronomical search space of graphs to a more manageable permutation space.
  2. P5 Pruning Rule: The algorithm employs a novel "inexact" pruning rule that uses a penalty parameter ($\lambda$) to balance the data-driven score (BDeu) against the expert's constraints. This allows the search to discard parent sets that are mathematically incompatible with the provided side knowledge.
  3. Two-Stage Hill Climbing: Within each ordering, the algorithm performs a specialized hill-climbing search. The primary objective is the satisfaction of all ancestral constraints, while the secondary objective is the optimization of the network's Bayesian score.

Experimental Evaluation

The performance of MINOBSx was evaluated using standard benchmarks from the Bayesian Network Repository, including Asia (8 nodes), Child (20 nodes), Insurance (27 nodes), Alarm (37 nodes), and Barley (48 nodes). Synthetic datasets ranging from $N=250$ to $8000$ samples were generated from these ground-truth networks. To simulate expert knowledge, the researchers sampled random ancestral constraints at varying densities (5% to 100%).

Key Results

Scalability and Feasibility

MINOBSx demonstrated a significant leap in scalability, successfully processing the Barley network (48 nodes). In contrast, previous exact methods using Integer Linear Programming typically max out at approximately 20 nodes when ancestral constraints are involved. Crucially, MINOBSx achieved 100% feasibility, satisfying every imposed constraint in all test cases. This outperformed existing stochastic tools like CaMML, which frequently failed to satisfy hard constraints on larger networks like Insurance and Barley.

Causal Accuracy

The inclusion of ancestral constraints significantly improved the Structural Intervention Distance (SID). This metric measures the model's ability to correctly predict the effects of external interventions. The results indicate that even a small amount of expert knowledge can act as a "causal anchor," leading to models that are qualitatively closer to the ground truth than those learned from data alone, particularly in data-sparse environments.

Score Optimality

While MINOBSx is a heuristic method, its results remained highly competitive with exact solvers. On smaller networks where exact solutions were available for comparison, the scores produced by MINOBSx were typically within 4% of the theoretical optimum.

Discussion and Limitations

Despite its successes, MINOBSx has limitations. To maintain computational speed, the algorithm currently limits each node to a maximum of three parents. This constraint hindered the recovery of the Alarm network, which contains a node with four parents. Additionally, the current implementation treats expert knowledge as "hard" constraints. In practice, experts may provide "soft" constraints that they would prefer the model to satisfy unless the data provides overwhelming evidence to the contrary.

Future research directions include extending the algorithm to handle d-separation constraints, which allow experts to specify conditional independence between variables, further enhancing the synergy between human expertise and machine learning in causal discovery.

Summary updated

Abstract

Hybrid methods for Bayesian network structure learning that incorporate both observed data and expert knowledge have proven to be important in many fields. Previous studies have presented both exac...
BibTeX
@inproceedings{li2018bayesian,
  author = {Andrew C. Li and Peter Beek},
  title = {{Bayesian Network Structure Learning with Side Constraints}},
  booktitle = {PGM},
  year = {2018},
  url = {https://openreview.net/forum?id=YadPMuwXnfo},
}
Figure