Abstract
This paper introduces a novel framework for learning optimal Binary Decision Diagrams (BDDs) for classification using MaxSAT. By leveraging the compact nature of BDDs—which avoid the "replication problem" common in decision trees—the authors produce models that are significantly smaller and more interpretable than state-of-the-art decision trees while maintaining competitive predictive accuracy.
Introduction
In the quest for Explainable AI (XAI), decision trees are often the go-to interpretable model. However, decision trees suffer from two major structural weaknesses: the replication problem (where identical subtrees are repeated in different branches) and the fragmentation problem (where data is split so thinly that lower nodes lack statistical significance).
Binary Decision Diagrams (BDDs) are a more compressed representation of Boolean functions that allow paths to merge, naturally solving the replication problem. While BDDs are staples in hardware design and model checking, they haven't been widely used in machine learning because finding the optimal BDD (the one that is most accurate or smallest for a given dataset) is a difficult combinatorial optimization problem. This paper tackles that challenge using declarative optimization techniques.
Methodology
The authors propose a multi-stage approach to learning BDDs:
- SAT Formulations ($BDD1$ & $BDD2$): They first create a Boolean Satisfiability (SAT) model to find a BDD of a fixed depth $H$ that perfectly classifies all training data. They improve upon their initial model ($BDD1$) with a more efficient encoding ($BDD2$) that significantly reduces the number of clauses, making it more scalable.
- MaxSAT for Optimization: Since real-world data is often noisy or not perfectly separable within a limited depth, they "lift" the SAT model to a MaxSAT model. In this setup, structural constraints (like ensuring the BDD is ordered) are "hard" rules, while correctly classifying each example is a "soft" rule. The solver then tries to satisfy as many soft rules as possible, effectively maximizing classification accuracy.
- Merging Compatible Subtrees: They introduce a post-processing step to merge "compatible" subtrees. This handles "unknown" nodes (parts of the BDD that no training examples reach) to improve the model's ability to generalize to new data.
- Heuristic Scaling: To handle very large datasets, they propose a hybrid approach: use a standard heuristic (like CART) to select the most important features first, then use their exact MaxSAT model to build the optimal BDD using only those features.
Key Insights and Results
Evaluation on datasets from the CP4IM repository (including medical, social, and technical domains) revealed several key advantages of the MaxSAT-BDD approach:
- Compactness: MaxSAT-BDDs were consistently smaller than optimal decision trees (MaxSAT-DT). For example, on the mushroom dataset at depth 6, the BDD had 14.6 nodes compared to the decision tree's 27.56 nodes.
- Accuracy: The BDD models achieved predictive accuracy competitive with (and often slightly better than) exact decision tree methods, particularly at lower depths where interpretability is highest.
- Solver Performance: The $BDD2$ encoding was significantly faster and more memory-efficient than $BDD1$. For depth 2, the model could report optimality for almost all tested datasets within the 15-minute time limit.
- Robustness to Bias: The approach is robust to different ways of handling "unknown" nodes, consistently outperforming traditional heuristic methods like OODG (Oblivious Read-Once Decision Graphs).
Conclusion and Future Work
While the current model requires a pre-defined depth $H$, it demonstrates that BDDs are inherently more efficient than trees for XAI. Future work will focus on integrating depth optimization, extending the framework to multi-valued classification, and conducting broader comparisons with other interpretable structures like decision rules or decision sets.
Summary updated