Overview
This paper introduces GOSDT (Generalized and Scalable Optimal Sparse Decision Trees), a highly scalable algorithm for generating provably optimal decision trees. Unlike previous methods that rely on greedy heuristics or optimality-sacrificing approximations for continuous variables, GOSDT uses dynamic programming with novel bounds to directly optimize a wide variety of metrics—including rank statistics like AUC and F-score. Remarkably, it achieves this orders of magnitude faster than previous state-of-the-art methods.
The Challenge of Optimal Decision Trees
Finding the absolute optimal decision tree for a dataset is an NP-hard problem. Because of this, traditional algorithms like CART or C4.5 rely on greedy, top-down heuristics that often produce suboptimal trees. While recent breakthroughs (like CORELS and OSDT) have made it possible to find provably optimal sparse trees, they suffer from two major limitations:
- Imbalanced Data: They are designed to optimize standard accuracy, which performs poorly on imbalanced datasets where metrics like F-score or Area Under the ROC Curve (AUC) are more appropriate.
- Continuous Variables: To handle continuous variables, competing optimal solvers (like DL8.5 and BinOCT) use a preprocessing step called "bucketization" (grouping continuous values).
The authors mathematically prove that this seemingly innocuous bucketization trick actually sacrifices strict optimality. If you want a truly optimal tree, you have to evaluate the exact splits.
GOSDT tackles the challenge of fully optimizing decision trees over continuous variables and complex, non-additive objective functions without taking shortcuts that compromise the optimal guarantee.
Core Methodology: Dynamic Programming with Bounds
The authors develop a custom Dynamic Programming with Bounds (DPB) algorithm. To make the massive search space of decision trees tractable, they introduce several novel techniques:
- Support Set Identification: Instead of identifying a subproblem by its logical rules (e.g., "Age > 30 AND Income < 50k"), GOSDT identifies it by the exact subset of training samples (the "support set") that reach that node. This data-centric approach allows the algorithm to instantly recognize and reuse computations when different logical paths lead to the same grouping of data.
- Incremental Similar Support Bound: A new bounding theorem allows the algorithm to reuse bounds from previously evaluated, slightly different continuous variable splits. This is crucial for efficiently handling the explosion of thresholds introduced by continuous features.
- Asynchronous Bound Updates: Instead of using blocking recursive calls standard in dynamic programming, GOSDT uses a priority queue to schedule problems. This allows it to eagerly propagate bounds up the dependency graph, pruning the search space much more aggressively.
- Hierarchical Bounds for Rank Statistics: The authors derive new lower bounds specifically for non-additive rank statistics like AUC and partial AUC, allowing the solver to prune suboptimal trees early in the generation process.
Key Results and Insights
Versatility in Optimization
GOSDT successfully optimizes complex, non-additive objectives (AUC, F-score, balanced accuracy) directly. Calculating metrics like AUC normally requires quadratic computation time relative to the number of observations. However, because all data points in a single decision tree leaf share the exact same prediction score, the math simplifies drastically, allowing GOSDT to optimize these complex metrics directly. The paper demonstrates that optimizing for these different metrics produces structurally distinct, optimal trees for each specific goal.
Accuracy vs. Sparsity
GOSDT maps the exact efficient frontier between tree size (number of leaves) and accuracy. It consistently outperforms greedy methods like CART, proving that you don't need deep, uninterpretable trees to achieve high accuracy if the tree is built optimally.
Speed and Scalability
As the number of features and continuous thresholds increases, GOSDT scales significantly better than state-of-the-art optimal tree algorithms (like DL8.5 and OSDT). It achieves training times several orders of magnitude faster than existing methods.
Limitations and Future Work
While GOSDT scales exceptionally well with the number of observations (easily handling tens of thousands of rows), the authors note it is most effective for datasets with a small to medium number of features. Highly high-dimensional data remains a challenge for exact optimal solvers.
Future work may extend the framework to handle other types of monotonicity, fairness constraints, and cost-related soft/hard constraints. The authors also point to further speedups through better garbage collection, search space exploration, and the discovery of tighter bounds.
Summary updated