NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast Sparse Decision Tree Optimization via Reference Ensembles

Hayden McTavish, Chudi Zhong, Reto Achermann, Ilias Karimalis, Jacques Chen, Cynthia Rudin, Margo I. Seltzer

Abstract

Finding optimal sparse decision trees is a computationally intensive NP-hard problem. While optimal solvers like GOSDT and DL8.5 exist, they often struggle with the large search spaces created by continuous-valued features. This paper introduces a "smart guessing" framework that leverages insights from black-box reference ensembles (e.g., Gradient Boosted Trees) to prune the search space. Our approach produces interpretable trees that match black-box accuracy while achieving 10–100x speedups over current state-of-the-art optimal solvers.

Introduction

In interpretable machine learning, sparse decision trees are considered the "gold standard" due to their auditability. However, the trade-off between accuracy and sparsity presents a significant optimization challenge. Continuous features exacerbate this by introducing a near-infinite number of potential split points. Practitioners often resort to greedy algorithms like CART, which are fast but suboptimal, or wait for optimal solvers that may fail to converge. This research bridges that gap by using reference models to guide the optimization process toward high-performing, sparse solutions.

Methods: Pruning via Reference Ensembles

The authors propose three primary strategies to accelerate branch-and-bound optimization:

  1. Threshold Guessing (Column Elimination): Instead of evaluating all possible split points, the algorithm identifies thresholds used by a reference ensemble (e.g., XGBoost). It iteratively prunes less significant thresholds until the ensemble's performance begins to degrade, significantly reducing the feature space for the optimizer.
  2. Depth Guessing: Utilizing VC-dimension theory, the authors derive a mathematical bound (Theorem 4.2) for the tree depth required to match the complexity of a given ensemble. This provides a principled maximum depth constraint that preserves predictive power without unnecessary search.
  3. Lower Bound Guessing: This novel mechanism "guesses" a lower bound for error based on the reference model's performance on data subsets. If a search branch cannot outperform the black-box reference, it is immediately pruned.

Theoretical guarantees (Theorems 4.1 and 4.3) ensure that these heuristics do not lead to models significantly inferior to the reference ensemble.

Experimental Results

The framework was evaluated across seven diverse datasets, including financial (FICO), criminal justice (COMPAS, Broward, Netherlands), and marketing domains.

Accuracy vs. Run Time on COMPAS. The proposed methods (stars) achieve similar accuracy to optimal solvers with 10-100x runtime savings, effectively avoiding the timeouts encountered by baseline GOSDT and DL8.5.

Performance and Efficiency

The proposed strategies improved runtimes by one to two orders of magnitude compared to baseline GOSDT and DL8.5. As shown in Figure 1, the "guessing" variants (stars) reach the same accuracy levels as the original solvers but much faster, successfully completing tasks where baselines reached the timeout limit.

Accuracy vs. Number of Leaves. Across multiple datasets, the optimized trees (stars) reach the Pareto frontier, matching the accuracy of black-box GBDTs (dashed line) with significantly fewer leaves than greedy baselines like CART.

Accuracy and Sparsity

The resulting models consistently occupy the "Pareto frontier" of the accuracy-sparsity trade-off. Figure 2 demonstrates that these sparse trees frequently match the accuracy of Gradient Boosted Decision Trees (GBDT) while utilizing only a small number of leaves. In some instances, the extreme sparsity acted as a regularizer, allowing the optimized trees to outperform the black-box models on test data by avoiding overfitting to noise.

Conclusion and Future Work

By treating black-box ensembles as "teachers," we can extract critical split points and bounds to find optimal sparse trees efficiently. While the method is currently focused on binary classification and depends on the quality of the reference model, it represents a major step toward making optimal interpretable models practical for real-world use. Future work includes extending these heuristics to regression and multi-class problems.

Summary updated

BibTeX
@inproceedings{mctavish2022fast,
  author = {Hayden McTavish and Chudi Zhong and Reto Achermann and Ilias Karimalis and Jacques Chen and Cynthia Rudin and Margo I. Seltzer},
  title = {{Fast Sparse Decision Tree Optimization via Reference Ensembles}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i9.21194},
}
Figure