Introduction
Bayesian networks (BNs) are fundamental tools for representing complex joint probability distributions. However, they face two major computational hurdles: learning the optimal structure from data is NP-hard, and performing inference is often intractable. Inference complexity is tied directly to the graph's treewidth—a measure of its cyclic complexity. Most existing algorithms either fail to scale to large datasets or produce models with high treewidth, rendering them impractical for real-world reasoning.
This paper introduces k-MAX, an anytime algorithm designed to learn BN structures while strictly bounding their treewidth. By ensuring low treewidth, the resulting models support efficient inference even at scale. Furthermore, the authors integrate k-MAX into a Structural Expectation-Maximization (SEM) framework, creating a tool for data imputation that matches the accuracy of state-of-the-art random forests while being nearly 10 times faster.
The k-MAX Algorithm
The k-MAX algorithm improves upon the previous state-of-the-art "k-greedy" approach by using a more sophisticated variable ordering heuristic. While k-greedy relies on fixed random orderings, k-MAX employs a dynamic ranking system to decide which variable to add to the network next.
Dynamic Ranking and the Regret Heuristic
k-MAX ranks variables using a score $m(X_i)$ that calculates the "regret": the difference between the best feasible parent set (under the treewidth constraint) and the best possible parent set in the unconstrained search space. This heuristic prioritizes variables that can be integrated into the network without a significant score penalty, deferring those that would currently violate the treewidth limit.
Anytime Property
A key advantage of k-MAX is its "anytime" nature. It can be interrupted at any point to return the best structure found so far, making it highly suitable for time-constrained environments where a good solution is needed quickly.
Structural EM for Incomplete Data
Handling missing data typically requires Structural EM (SEM), where inference must be performed repeatedly during the learning process to estimate missing values. This is usually a massive computational bottleneck. The authors propose SEM-kMAX, which leverages the bounded treewidth of k-MAX to keep the "Expectation" step efficient.
To further optimize performance, SEM-kMAX utilizes "Hard EM," filling in missing values with their most likely estimates rather than full probability distributions. This approach significantly reduces memory overhead while maintaining high accuracy for tasks like data imputation.
Experimental Evaluation
The authors evaluated k-MAX and SEM-kMAX across 18 real-world datasets (up to 1,556 variables) and 20 synthetic datasets (up to 10,000 variables).
Key Findings
- Superior Structure Learning: k-MAX consistently outperformed k-greedy, finding higher-scoring BIC structures in nearly all experiments across 74 datasets.
- Efficiency in Imputation: Compared to
mRFα, a leading random forest imputation method, SEM-kMAX achieved comparable accuracy but was 10x faster. - Scalability and Inference Speed: The algorithm successfully scaled to thousands of variables. While ground-truth models often required over 30 minutes for a single query, k-MAX's bounded-treewidth models completed the same queries in under 0.1 seconds.
Conclusion
The k-MAX algorithm demonstrates that bounding treewidth is not just a constraint on model expressiveness, but a powerful enabler for scalable learning and inference. By maintaining a linear worst-case complexity $O(nd)$, SEM-kMAX sets a new milestone for Bayesian structure learning from large, incomplete datasets. Future work may explore soft EM variants and further parallelization to enhance performance on multi-core systems.
Summary updated