Abstract
Traditional decision tree algorithms like CART rely on greedy heuristics that often produce suboptimal, overly complex models. This paper proposes a Mixed Integer Programming (MIP) framework to construct globally optimal decision trees. By optimizing the entire tree structure simultaneously and allowing for combinatorial branching on categorical features, the approach yields models that are more interpretable and accurate than those from standard heuristic-based methods.
Introduction
Decision trees (DTs) are a cornerstone of interpretable machine learning, functioning as intuitive flowcharts for human decision-making. However, standard construction algorithms such as CART or C4.5 are "greedy," making locally optimal splits at each node without considering the global tree structure. This often results in unnecessarily deep trees that are difficult to interpret or prone to overfitting.
While finding a globally optimal decision tree is NP-hard, this research demonstrates that for the small-depth trees typically required in high-stakes domains—such as medicine or finance—modern optimization solvers can find absolute optima within reasonable timeframes.
Methodology: Global Optimization via MIP
The core innovation is a novel Mixed Integer Programming (MIP) formulation. Unlike greedy methods that grow trees branch-by-branch, this model defines the tree's topology upfront and solves for the optimal branching rules at every node simultaneously.
Combinatorial Branching
A significant departure from standard trees is the use of combinatorial branching. Instead of splitting on a single feature value, the model can split on subsets of categorical values (e.g., "If Marital Status is {Married OR Domestic Partner}"). This allows the model to capture complex relationships with much shallower trees.
Fixed Topology and Optimization
The authors utilize a fixed tree topology, which simplifies the optimization problem by pre-defining the relationships between parent and child nodes.
To make the problem tractable, the authors introduced several technical enhancements:
- Symmetry Breaking: "Anchor features" are used to prevent the solver from exploring redundant permutations of the same tree logic.
- LP Strengthening: Mathematical proofs were used to "tighten" the linear programming relaxation, allowing the solver to prune the search space more effectively.
- Integrality Relaxation: The authors proved that many variables in the model naturally converge to binary values (0 or 1) due to the model's structure, allowing them to be treated as continuous variables to speed up computation.
Experimental Results
The "Optimal Decision Trees" (ODT) approach was evaluated on 10 binary classification datasets from the UCI Repository and LIBSVM, including census data (a1a), breast cancer records, and the FICO Explainable ML Challenge (heloc).
- Accuracy Boost: ODT consistently outperformed CART. On the
monks-1dataset, ODT achieved 100% test accuracy, whereas CART reached only 82.3%. - Simplicity and Interpretability: On the FICO dataset, the ODT approach produced a depth-2 tree (4 leaves) that matched the performance (71.6% accuracy) of the winning entry in a major competition, which utilized far more complex logic.
- Computational Tractability: Most instances with up to 600 samples and depth-3 topologies were solved to optimality in under 30 minutes, and often within seconds.
Discussion and Limitations
While the MIP approach offers significant advantages in accuracy and interpretability, it faces certain constraints:
- Scalability: The number of continuous variables grows linearly with dataset size. Consequently, trees deeper than depth 4 remain computationally expensive for very large datasets.
- Topology Constraints: The current model requires pre-specifying the tree structure. While cross-validation can help select the best topology, a more flexible automated approach would be a valuable future development.
- Preprocessing: Numerical features must be discretized into "buckets" before processing, which may lead to some loss of granular information.
Conclusion
By shifting from greedy heuristics to global optimization, this work demonstrates that the trade-off between accuracy and interpretability is not always necessary. Globally optimal, shallow trees can provide state-of-the-art performance while remaining fully transparent to human users.
Summary updated