Introduction
Decision trees are a cornerstone of interpretable machine learning, yet they suffer from a structural limitation known as data fragmentation. As trees grow deeper, they partition data into increasingly smaller subsets, leading to nodes that make decisions based on statistically insignificant sample sizes. This often results in poor generalization and model instability.
This paper introduces a novel framework for training Optimal Decision Diagrams (ODDs). By allowing decision paths to merge, ODDs overcome fragmentation, maintaining larger sample pools at deeper levels. This structural flexibility allows for models that are "deep but narrow," decoupling depth from the exponential width growth characteristic of traditional trees.
Methodology: Flow-Based Optimization
The authors formulate the ODD training problem as a Mixed-Integer Linear Program (MILP). Unlike previous approaches that rely on heuristics, this method seeks the mathematically optimal graph topology.
The Flow-Based Formulation
The classification process is modeled as a "flow" of samples through a predefined graph "skeleton." The MILP determines the optimal activation of nodes and arcs within this skeleton to minimize classification error.
Key technical innovations include:
- Variable Efficiency: By reducing the number of binary variables to $O(n \log |V|)$, the model achieves significantly better scalability than prior optimal tree formulations.
- Symmetry Breaking: Constraints are added to prevent the solver from exploring redundant, equivalent graph structures, accelerating the search for the global optimum.
- Two-Step Strategy: A fast heuristic provides a high-quality initial solution, which is then refined by a high-performance MILP solver (Gurobi).
Key Insights: The Power of Merging
The primary advantage of ODDs lies in their ability to represent complex logical concepts, such as XOR or disjunctions, more naturally than trees. By merging nodes that lead to the same logical conclusion, the model preserves data density at deeper levels of the diagram.
Experimental Results
The framework was tested on 54 datasets from the UCI Machine Learning Repository. The results demonstrate that ODDs are not only more accurate but also more parsimonious than traditional optimal trees.
- Higher Accuracy: ODDs consistently outperformed Optimal Decision Trees (ODTs) on test data, particularly by reducing the frequency of low-accuracy outliers.
- Model Compression: ODDs achieved superior performance while using the same number of internal nodes as trees, proving to be a more efficient way to encode decision logic.
- Robustness and Fairness: The MILP formulation is easily extensible. The authors demonstrated this by incorporating "stability constraints" (ensuring minimum sample flow through nodes) and fairness requirements (e.g., demographic parity) with minimal impact on overall accuracy.
Conclusion
Optimal Decision Diagrams represent a significant step forward in interpretable machine learning. By addressing the data fragmentation problem through a rigorous MILP framework, this work provides a scalable and flexible alternative to traditional decision trees. Future research will focus on dynamic skeleton construction and further improving the scalability of the optimization process for massive datasets.
Summary updated