Overview
In the quest for "Explainable AI," researchers and practitioners often turn to simple, interpretable models like decision trees. However, Binary Decision Diagrams (BDDs) frequently offer a superior alternative. Because BDDs are directed acyclic graphs (DAGs) rather than simple trees, they can merge redundant decision paths, leading to much more compact representations of the exact same logic.
The primary challenge is that finding the smallest possible BDD that perfectly classifies a dataset is an NP-complete problem. While heuristic methods exist, they cannot guarantee the absolute minimum size, which is critical for both hardware efficiency and human interpretability. Previous exact algorithms relied heavily on brute-force enumerations that struggled to scale even to very small sizes.
This paper bridges that gap by adapting the "witness paradigm"—previously successful for decision trees—to create a new exact algorithm for finding minimum-size BDDs. Their approach provides a massive speedup for small, highly interpretable models compared to state-of-the-art SAT-based solvers.
The WitBDD Algorithm
The authors introduce WitBDD, a branch-and-bound algorithm based on the witness paradigm. Extending this paradigm from trees to DAGs was an open problem because BDDs allow paths to merge, complicating the structural search. The authors solved this by defining a "Witness BDD" (WBDD) structure that explicitly tracks these merge points.
Instead of trying to build the entire BDD structure at once, the algorithm starts with a trivial BDD (a single root and one leaf). It then iteratively refines the graph:
- Identify a Witness: It finds a "dirty" example—a data point in the training set that is currently misclassified by the partial BDD.
- Force Refinement: It uses this example as a witness to force a structural refinement of the BDD, mandating that the witness must traverse a specific new edge.
- Branching: The algorithm branches into three possible ways to add a new internal node to resolve the misclassification:
- Leaf-insertion: Adding a new leaf for a specific class.
- H-insertion: Subdividing an existing path to add a new decision node.
- $\Phi$-insertion: A more complex operation that creates a new split and a merge vertex.
By using specific data points as witnesses, the algorithm drastically prunes the search space, only considering BDD structures that are "consistent" with these witnesses. The authors prove that the algorithm's complexity is tightly tied to specific parameters: the solution size ($s$), the domain size of features ($D$), and the maximum Hamming distance between any two data points ($\delta$). Furthermore, they prove that BDDs possess "strong extendability," meaning any partial BDD correctly classifying a subset of witness points can be extended to a full solution if one exists.
Experimental Evaluation
The authors evaluated their C++ implementation using 35 standard binary classification datasets from the Penn Machine Learning Benchmarks (PMLB). To test the limits of exact solvers, they generated 700 smaller instances by randomly sampling 10% and 20% subsets of the original data. They compared WitBDD against a re-implementation of a state-of-the-art SAT-based BDD optimizer.
Key Results
- Massive Speedup for Small Models: For BDDs with 4 or fewer internal nodes, WitBDD was roughly 828 times faster on average than the SAT-based approach, with a median speedup of 64x.
- Practical Limits: The algorithm successfully solved 79% of the instances that the SAT solver could handle within a strict one-hour time limit.
- The "Size 5" Threshold: Performance dynamics shift as the BDD grows. For optimal sizes $\ge 5$, the SAT solver generally outperformed WitBDD. This occurs because the search space for the witness-based branching grows factorially with the size of the graph.
- Versatility: The framework easily extends to Ordered BDDs (OBDDs) and scenarios where a small, defined number of misclassifications ($t$) are allowed.
Limitations and Future Work
The primary limitation of WitBDD is its scaling factor. While it is lightning-fast for very small, "human-readable" BDDs (size $\le 4$), the combinatorial explosion of branching choices makes it slower than SAT solvers for medium-sized models. Using the Exponential Time Hypothesis (ETH), the authors show that the exponential dependence on the solution size ($s$) in their running time is likely unavoidable in theory.
To push the boundaries of this exact solver in the future, the authors suggest several directions:
- Developing better heuristics for choosing which "dirty" example to use as the next witness.
- Implementing symmetry-breaking techniques to avoid exploring isomorphic BDD structures.
- Integrating more powerful lower bounds (such as the "Packing lower bound") to prune the search tree earlier.
- Adapting the technique to minimize BDD depth rather than strictly the number of nodes.
Summary updated