Learning Chordal Markov Networks via Branch and Bound

Kari Rantanen, Antti Hyttinen, Matti JärvisaloNeurIPS 2017

TL;DR

This paper introduces BBMarkov, the first non-trivial branch-and-bound algorithm for learning the structure of chordal Markov networks. By combining clever symmetry breaking with dynamic programming-based bounds, the authors bypass the "memory wall" that plagues previous state-of-the-art methods. BBMarkov successfully scales to 20 variables while using up to 30x less memory than competing approaches.

What Problem Does This Paper Address?

Graphical models are essential tools for understanding dependencies in complex, real-world data. This paper focuses specifically on Chordal Markov Network Structure Learning (CMSL).

Chordal graphs (also known as decomposable graphs) are a special class of undirected graphs where every cycle of four or more nodes has a "chord"—an edge connecting two non-adjacent nodes in the cycle. Finding the "best" chordal graph that maximizes a scoring function (like marginal likelihood) for a given dataset is an NP-hard problem.

Examples of a chordal graph (a), its corresponding junction tree (b), and a directed acyclic graph representation (c).

Existing exact approaches to this problem generally fall into two camps, both with significant drawbacks:

  1. Integer Programming (IP) / Constraint Satisfaction: These methods often struggle to scale, frequently failing to solve instances with even 10–15 variables within a reasonable timeframe.
  2. Dynamic Programming (DP): While fast, these algorithms (such as the state-of-the-art Junctor) hit a severe "memory wall." They require $\Omega(3^n)$ space, meaning they quickly exhaust the RAM of modern computers as the number of variables ($n$) grows.

Methods

To overcome these limitations, the authors propose a hybrid Branch and Bound (B&B) approach called BBMarkov. Instead of searching over the massive space of undirected graphs directly, the algorithm searches over the space of ordered decomposable DAGs (Directed Acyclic Graphs without "immoralities"—patterns like $A \to C \leftarrow B$ where $A$ and $B$ are not connected).

Key technical innovations in BBMarkov include:

  • Symmetry Breaking: Many different directed graphs can represent the exact same undirected chordal graph. The authors introduce "preferred vertex orders" to ensure the search algorithm doesn't waste time exploring structurally equivalent graphs.
  • DP-Based Bounding: To prune the search tree effectively, the authors leverage results from Bayesian Network Structure Learning (BNSL). Because an optimal Bayesian network score provides a natural upper bound for a chordal network score, they precompute DP tables to provide tight, mathematically sound bounds during the B&B search.
  • Relaxed Immorality Pruning: They develop a secondary bounding method that "relaxedly" considers immoralities, allowing the algorithm to close off unpromising branches of the search tree much earlier.

Datasets

The algorithm was evaluated using 54 real-world datasets that serve as standard benchmarks in the field (e.g., Alarm, Adult, Letter, Zoo, Water). To test scalability, the authors created sub-instances by restricting datasets to the first $n$ variables, ranging from $n=10$ up to $n=20$.

Key Insights and Ideas

  • The Memory-Time Tradeoff: Pure DP algorithms are essentially "brute force"—they must store and solve every subproblem. B&B allows the algorithm to skip large sections of the search space entirely if the mathematical bounds prove a better solution cannot exist there, trading some computation time for massive memory savings.
  • BNSL as a Proxy: A major conceptual breakthrough in this work is realizing that the well-studied, less-restrictive problem of Bayesian Network learning can be harnessed to provide extremely high-quality bounds for the more restrictive chordal Markov network problem.
  • Anytime Utility: Unlike DP, which only yields an answer at the very end of its run, B&B is an "anytime" algorithm. It often finds a highly optimal solution quickly and then spends the remainder of its execution time proving that no better solution exists.

Key Results

  • Dominates IP: BBMarkov significantly outperformed the integer programming-based GOBNILP, which routinely failed to solve instances beyond 15 variables.
  • Massive Memory Efficiency: The memory savings are drastic. At 19 variables, the DP-based Junctor required nearly 25-30 GB of RAM, while BBMarkov used only about 1 GB.
Memory usage comparison between Junctor and BBMarkov as the number of variables increases. BBMarkov avoids the exponential memory wall.
  • Scaling to 20 Variables: BBMarkov successfully reached the 20-variable mark on several datasets within a few hours—a threshold where Junctor typically crashes due to memory exhaustion ("memout").
  • Proving Optimality: On many datasets, BBMarkov found the optimal solution in mere seconds, spending the rest of its runtime formally proving its optimality through pruning.

Limitations and Future Work

  • The Exponential Wall: While scaling to 20 variables is a significant improvement, the problem remains fundamentally exponential. Scaling exact methods to 30 or 40 variables remains a massive challenge.
  • Score Dependency: The efficiency of the B&B pruning depends heavily on the quality of the scoring function and the specific data distribution. On some "hard" datasets, the bounds may not be tight enough to prune the search tree effectively.
  • Parallelization: The authors note that branch-and-bound algorithms are naturally suited for parallel execution. Distributing the search tree across multiple cores or machines could be a highly promising avenue for future performance gains.

Summary updated

BibTeX
@inproceedings{rantanen2017learning,
  author = {Kari Rantanen and Antti Hyttinen and Matti Järvisalo},
  title = {{Learning Chordal Markov Networks via Branch and Bound}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure