Learning Bayesian Network Structure using LP Relaxations

Tommi S. Jaakkola, David A. Sontag, Amir Globerson, Marina Meila

Introduction

Learning the structure of a Bayesian network—represented as a Directed Acyclic Graph (DAG)—is an NP-hard problem. The primary difficulty lies in the global acyclicity constraint: while local parent selection for individual nodes is straightforward, ensuring the entire graph remains cycle-free requires coordinating choices across all variables. Traditional exact methods, such as Dynamic Programming (DP), typically hit a computational wall at around 30 nodes due to exponential memory and time requirements. This paper introduces an exact solver based on Linear Programming (LP) relaxations that scales significantly better.

Methods: LP Relaxations and Cluster Constraints

The authors formulate structure learning as an Integer Linear Program (ILP). To handle the complexity, they employ LP relaxations and a novel class of cluster constraints. Unlike standard cycle inequalities that prevent simple loops, cluster constraints require that for any subset of nodes, at least one node must have its parents outside that subset, effectively breaking all potential cycles within that cluster.

The optimization process uses a dual-bound approach. By solving the dual problem and iteratively adding only the violated cluster constraints (a cutting-plane method), the algorithm maintains a "certificate of optimality." This certificate provides a theoretical bound on how far the current best solution is from the global maximum. If the LP solution is fractional, a branch-and-bound search is performed to find the true integer solution.

Convergence of the LP relaxation (upper bound) and the best integral reconstruction (lower bound) over time.

Experimental Evaluation

The method was evaluated on several real-world and benchmark datasets, including RNA expression data (22 variables), phenotypic data (25 variables), and the Alarm medical diagnostic benchmark (37 variables).

Performance and Scaling

The LP-based approach demonstrates superior scaling compared to traditional DP. For the 37-node Alarm network, the optimal solution was found in approximately 7 minutes, whereas DP was projected to take over 30 minutes. On several datasets, such as RNA and Phenotype, the LP relaxation was so "tight" that it yielded the optimal integer solution immediately, bypassing the need for an extensive branch-and-bound phase.

Comparison of computational time between dynamic programming and the proposed LP-based branch-and-bound method as the number of variables increases.

Key Insights and Limitations

By "lifting" constraints from simple edge selections to parent-set selections, the authors leverage powerful combinatorial optimization tools. The dual space approach is particularly valuable because it provides a continuous measure of progress toward the global optimum.

However, limitations remain. The method relies on pre-calculating and pruning possible parent sets; if the maximum allowed number of parents is very high, the number of variables in the LP could explode. Additionally, while this approach represents a significant leap over DP, scaling to networks with hundreds of nodes remains a challenge for exact solvers. Future work may focus on more formal separation algorithms for cluster constraints to further enhance efficiency.

Summary updated

BibTeX
@article{jaakkola2010learning,
  author = {Tommi S. Jaakkola and David A. Sontag and Amir Globerson and Marina Meila},
  title = {{Learning Bayesian Network Structure using LP Relaxations}},
  journal = {AISTATS},
  year = {2010},
}
Figure