Introduction
Decision trees have long been considered the "gold standard" for interpretable machine learning. Because their logic is easy for humans to follow, they are widely deployed in high-stakes domains like healthcare and criminal justice. However, for decades, practitioners have relied on greedy heuristic algorithms like CART and C4.5. These algorithms make the "best" split at each step without looking ahead, often leading to suboptimal trees that are unnecessarily large, overly complex, or less accurate than they could be.
Finding a truly optimal tree—one that perfectly balances predictive accuracy with a penalty for complexity (sparsity)—is an NP-hard problem. Previous attempts to solve this using standard mathematical programming (such as Integer Linear Programming) failed to scale to real-world datasets.
This paper introduces OSDT (Optimal Sparse Decision Trees), the first practical algorithm to find provably optimal decision trees for binary data. By combining rigorous mathematical bounds with high-performance systems engineering, OSDT moves beyond the greedy heuristics of the 1980s to produce models that are both highly accurate and strictly interpretable.
Methodology: A Co-Design of Theory and Systems
The authors treat decision tree optimization as a branch-and-bound search problem. They define an objective function that minimizes a combination of error and complexity:
$$R(d, x, y) = \text{Misclassification Error} + \lambda \times (\text{Number of Leaves})$$
Here, $\lambda$ is a regularization parameter controlling the trade-off between accuracy and simplicity. The "secret sauce" of OSDT is its co-design of analytical bounds and systems-level techniques:
- Analytical Bounds: The authors derived several new theorems to aggressively "prune" the massive search space. For example, the Lower Bound on Node Support proves that any internal node in an optimal tree must capture at least $2\lambda$ of the data; if it does not, that branch can be discarded immediately.
- Bit-Vector Library: To speed up the evaluation of trees, the team implemented a custom bit-vector library, allowing the algorithm to process data in parallel directly at the hardware level.
- Computational Reuse: The algorithm caches intermediate results and recognizes symmetries (e.g., different permutations of leaves that result in the exact same tree structure) to avoid redundant work.
Key Insights and Results
The search space for decision trees is exponentially larger than for simpler models like rule lists. For instance, a tree with 8 leaves has 429 possible unlabeled shapes, whereas a rule list has only one. Greedy methods often introduce "useless splits" near the top of the tree that must be "undone" later, leading to messy models. OSDT avoids this by considering the global structure from the start.
The algorithm was evaluated on seven datasets focusing on high-stakes applications, including the ProPublica COMPAS dataset (predicting criminal recidivism), the FICO Credit Risk dataset (predicting loan defaults), and several UCI Machine Learning Repository datasets (Tic-Tac-Toe, Car Evaluation, Monk1-3).
Highlights of the results include: * Provable Optimality: OSDT successfully found and proved the optimality of trees for the COMPAS and FICO datasets within a 30-minute time limit. * Superior Accuracy and Sparsity: Compared to BinOCT (a recent mathematical programming approach), OSDT consistently found more accurate trees with fewer leaves. While BinOCT is restricted to "complete" binary trees (fixed shapes), OSDT can dynamically find trees of any shape. * The Importance of Systems Engineering: Mathematical theory alone was not enough to make this practical. The implementation speedups (data structures and bit-vectors) accounted for a 97% reduction in runtime, proving that algorithm-system co-design is essential for solving hard optimization problems. * Counterintuitive Scaling: The algorithm scales well with the number of samples. Interestingly, adding more features can sometimes make the algorithm run faster, as the analytical bounds allow for more aggressive pruning of the search space.
Limitations and Future Work
While OSDT represents a significant leap forward, it currently requires binary features. Continuous data must be discretized (e.g., "Age < 25") before processing, as the algorithm does not yet handle continuous variables natively.
Furthermore, the version presented in the paper runs on a single thread. Parallelizing the branch-and-bound search is a logical next step for even greater speed. Finally, the authors suggest that future work could involve bounds that identify highly correlated features to eliminate them early in the execution, further reducing the search space.
Summary updated