TL;DR
Finding the globally optimal structure of a chordal Markov network is a notoriously difficult NP-hard problem. This paper introduces a novel dynamic programming algorithm, named Junctor, that leverages a recursive characterization of junction trees to achieve an $O(4^n)$ time complexity. It outperforms previous constraint-satisfaction approaches by a factor of ten million on small benchmarks and successfully scales to networks with 18 or more vertices.
The Challenge of Markov Network Structure Learning
Learning the structure of Markov networks (undirected graphical models) from data is a fundamental task in machine learning. Specifically, finding a chordal (or decomposable) graph that maximizes a scoring function is highly desirable because chordal graphs allow for efficient exact inference via junction trees. However, this optimization problem is NP-hard.
Historically, exact algorithms for this task were extremely limited. State-of-the-art methods relied on constraint satisfaction solvers that could take days to solve a simple 8-vertex problem. Consequently, most researchers relied on local search heuristics that offered no guarantee of finding the best possible model. The authors aim to bridge this gap with an exact, yet significantly faster, algorithm.
Methods: From Edges to Recursive Partition Trees
The core innovation of the paper is a paradigm shift: rather than viewing chordal graphs merely as sets of edges, the authors model them as Recursive Partition Trees (RPTs).
- Recursive Characterization: The authors prove that any junction tree (the representation of a chordal graph) can be decomposed recursively. If you root the tree at a specific clique, the subtrees correspond to a disjoint partition of the remaining vertices.
- Dynamic Programming (DP): Because the scoring function for chordal graphs is "decomposable"—meaning it can be expressed as a product of scores over cliques divided by scores over separators—the global optimization problem can be broken down into independent sub-problems.
- Fast Evaluation: A naive DP approach would be too slow due to the need to iterate over all possible partitions. The authors cleverly factor the main recurrence into three simpler functions. This optimization brings the time complexity down to $O(4^n)$ and space complexity to $O(3^n)$.
- Bounded Width: They also demonstrate that limiting the maximum clique size (the treewidth plus one) to a constant $w$ makes the algorithm even more efficient, allowing it to scale better for sparse graphs.
Key Insights and Results
The authors evaluated Junctor against a leading integer linear programming (ILP) solver called GOBNILP using both synthetic data and ten real-world benchmark datasets from the UCI Machine Learning Repository.
- The Junction Tree Advantage: By focusing on the junction tree representation, the authors found a structure that naturally fits the "optimal substructure" requirement of dynamic programming.
- Predictable Complexity: Unlike ILP or constraint solvers, which can be "lucky" on specific data instances but suffer from unpredictable worst-case behavior, this DP approach has a predictable, data-independent runtime based solely on the number of vertices ($n$) and the width limit ($w$).
- Massive Speedup: On an 8-vertex benchmark, Junctor was 10 million times faster than the previous constraint-satisfaction approach, reducing runtime from days to milliseconds.
- Scalability and ILP Comparison: The algorithm consistently solved instances with up to 18 vertices in a few hours without any width constraints. While GOBNILP performed well on very sparse data or small widths, Junctor scaled much more gracefully as the number of vertices and the allowed clique size increased. For example, on the Bridges dataset (12 attributes), Junctor took less than a second, while GOBNILP took about 7 minutes.
- Guaranteed Exactness: Unlike heuristic searches, Junctor is mathematically guaranteed to find the global maximum of the scoring function.
Limitations and Future Work
Despite the massive speedup, the algorithm still faces the fundamental limits of exponential scaling.
- The Exponential Wall: $O(4^n)$ time complexity means the algorithm hits a practical limit around 20–25 vertices.
- Memory Usage: The $O(3^n)$ space requirement is significant. For $n=22$, the algorithm required 128 GB of RAM.
- Scoring Functions: The method strictly assumes the score is decomposable (like BDeu or BIC), which does not apply to all possible graph scoring metrics.
The authors suggest that future work could combine this dynamic programming foundation with techniques like A* search or branch-and-bound to further push the boundaries of exact structure learning.
Summary updated