The Scalability Wall in Decision Trees
While decision trees are highly prized for their interpretability, they are traditionally built using "greedy" heuristic algorithms like CART or C4.5. These methods make locally optimal splits at each node but often fail to find the globally optimal tree structure.
To address this, researchers have recently turned to Mixed-Integer Programming (MIP) to find provably optimal decision trees (ODT). However, standard MIP solvers struggle to scale. As the number of samples increases, the number of binary variables in the optimization problem explodes, typically limiting ODT methods to datasets with fewer than 7,000 samples. This paper introduces a scalable branch-and-bound algorithm capable of training globally optimal decision trees on datasets with hundreds of thousands of samples, breaking the "scalability wall" that has long hindered optimal decision tree induction.
Methodology: Reduced-Space Branch and Bound
The authors propose a Reduced-Space Branch and Bound (BB) algorithm based on three key innovations:
1. Two-Stage Reformulation The authors treat the tree structure (which features to split on and where) as the "first stage" and the assignment of samples to leaves as the "second stage." Crucially, they prove that the algorithm can converge by branching only on the first-stage variables. Because the tree structure is independent of the number of samples, the branching space remains manageable even for massive datasets.
2. Decomposable Bounding The lower and upper bounds for the optimization can be decomposed into many small-scale subproblems—one for each sample or group of samples. This makes the algorithm "embarrassingly parallel," allowing it to scale efficiently across hundreds or thousands of CPU cores.
3. Sample Reduction This novel pruning technique drastically reduces computational overhead. At any given node in the search tree, the algorithm can often pre-determine the cost (misclassification) of a large portion of the samples without further calculation.
By analyzing the current bounds on tree parameters, the algorithm can determine if a sample must fall into a specific leaf or if its loss is already fixed, effectively removing it from the expensive optimization steps at that BB node.
Key Insights and Results
The algorithm was evaluated on 21 real-world datasets from the UCI Machine Learning Repository, ranging from small datasets (210 samples) to massive ones like the HT-Sensor dataset (~929,000 samples).
- Unprecedented Scalability: The algorithm successfully found global solutions (with a <1% optimality gap) for the
SKIN-SEGMENTATIONdataset (245,057 samples) in under two hours using 1,000 cores. - The Power of Pruning: The sample reduction method proved remarkably effective. For the
SKIN-SEGMENTATIONdataset, an average of 63.6% of samples could be pre-determined at each search node. In some cases, over 99% of samples were determined before computing a lower bound. - Accuracy Gains: On datasets with more than 7,000 samples, the proposed algorithm improved training accuracy by 3.6% and testing accuracy by 2.8% on average compared to previous state-of-the-art optimal classification tree methods.
- Outperforming Heuristics: For large datasets, the optimal solutions reduced the training cost by an average of 12.5% compared to the standard CART algorithm.
Limitations and Future Work
While highly scalable in terms of sample size, the current implementation is most effective for trees with small depths (e.g., depth of 2 or 3). As the depth increases, the number of first-stage variables grows exponentially, slowing down convergence. Developing more advanced "bound tightening" methods will be essential for handling deeper trees. Additionally, achieving these results on massive datasets requires significant computational resources (e.g., 1,000 CPU cores), which may not be accessible to all practitioners.
Summary updated