[Paper Review] Optimal Sparse Decision Trees
This paper presents the first practical algorithm for optimal sparse decision trees using analytical bounds, custom data structures, and a bit-vector library to achieve provable optimality in reasonable time. It outperforms existing methods like BinOCT and CART on benchmark and high-stakes datasets (e.g., COMPAS, FICO), solving problems with tens of thousands to millions of instances while proving optimality or near-optimality.
Decision tree algorithms have been among the most popular algorithms for interpretable (transparent) machine learning since the early 1980's. The problem that has plagued decision tree algorithms since their inception is their lack of optimality, or lack of guarantees of closeness to optimality: decision tree algorithms are often greedy or myopic, and sometimes produce unquestionably suboptimal models. Hardness of decision tree optimization is both a theoretical and practical obstacle, and even careful mathematical programming approaches have not been able to solve these problems efficiently. This work introduces the first practical algorithm for optimal decision trees for binary variables. The algorithm is a co-design of analytical bounds that reduce the search space and modern systems techniques, including data structures and a custom bit-vector library. Our experiments highlight advantages in scalability, speed, and proof of optimality. The code is available at https://github.com/xiyanghu/OSDT.
Motivation & Objective
- To address the long-standing problem of non-optimality in decision tree algorithms, which are typically greedy and suboptimal.
- To develop a scalable, efficient algorithm that guarantees optimal or near-optimal decision trees for binary features.
- To enable the use of interpretable models in high-stakes domains like criminal justice and credit risk, where transparency and accuracy are critical.
- To provide a certificate of optimality, proving that no better tree exists for a given sparsity level.
- To overcome the scalability limitations of prior mathematical programming and SAT-based approaches for optimal decision trees.
Proposed method
- The algorithm uses analytical bounds to drastically reduce the search space for optimal decision trees.
- It employs a tree representation that stores only the leaves, enabling efficient computation and symmetry exploitation.
- A custom bit-vector library accelerates decision tree evaluation by enabling parallel computation on multiple data points.
- The method integrates fast search policies and computational reuse to minimize redundant calculations.
- It formulates the problem as a regularized optimization task balancing accuracy and number of leaves, using a mixed-integer programming framework with tailored constraints.
- The approach co-designs algorithmic techniques with systems-level optimizations, including specialized data structures for intermediate results.
Experimental results
Research questions
- RQ1Can we design a practical algorithm that finds provably optimal sparse decision trees for real-world datasets with tens of thousands to millions of instances?
- RQ2How do analytical bounds and systems optimizations compare to prior mathematical programming or SAT-based approaches in terms of speed and scalability?
- RQ3In high-stakes applications like criminal recidivism and credit risk, does the proposed method produce better or more reliable models than greedy or heuristic alternatives?
- RQ4To what extent do existing claims of optimality in prior work hold up when verified with a provably optimal algorithm?
- RQ5Which algorithmic components—bounds, bit-vector evaluation, data structures—most significantly reduce runtime across diverse datasets?
Key findings
- OSDT found the first provably optimal sparse decision trees for the COMPAS and FICO datasets, which were previously claimed to be optimal by other methods but were not verified.
- On the Monk1 dataset, OSDT achieved optimal performance in 3.390 seconds, while regularized BinOCT had not finished after one hour, demonstrating a 17x speedup.
- For all benchmark datasets tested, OSDT consistently outperformed CART and BinOCT in accuracy while maintaining optimal or near-optimal sparsity.
- The algorithm reduced runtime by 97% through implementation optimizations, including bit-vector evaluation and computational reuse.
- In cross-validation experiments, OSDT achieved uniformly higher training accuracy than CART and BinOCT for the same sparsity level, with corresponding improvements in test accuracy on several datasets.
- Ablation studies confirmed that analytical bounds and bit-vector evaluation were the most impactful components in reducing computation time across different datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.