Discovering the Interpretability-Performance Pareto Front of Decision Trees with Dynamic Programming

Hector Kohler, Riad Akrour, Philippe Preux · DOI

Abstract

Decision tree induction typically faces a trade-off between the speed of greedy algorithms like CART and the accuracy of computationally expensive optimal solvers. This paper introduces Dynamic Programming Decision Trees (DPDT), a framework that reframes tree construction as a Markov Decision Process (MDP). By using CART as a heuristic to suggest a diverse set of candidate splits, DPDT achieves near-optimal training accuracy with significantly reduced computational overhead and superior generalization to unseen data compared to traditional optimal solvers.

The Efficiency-Optimality Trade-off

Decision trees are fundamental tools for tabular data analysis, particularly when used in ensembles. However, the standard algorithm for building them—Classification and Regression Trees (CART)—is inherently "greedy." It selects the best split at each node in isolation, without considering how that choice impacts future splits. This local optimization often leads to suboptimal global tree structures, especially on complex datasets like the XOR problem, where initial splits may not immediately reduce impurity.

Figure 1: Comparison of CART, Optimal solvers, and DPDT on a pathological XOR-like dataset. While CART fails to find the global structure, DPDT matches the optimal solver's 100% accuracy.

On the other end of the spectrum, Optimal Decision Tree (ODT) solvers guarantee the best possible tree for a given loss function. However, finding the optimal tree is an NP-Hard problem, making these solvers difficult to scale to large datasets, continuous features, or deep trees. DPDT addresses this gap, seeking a middle ground that provides near-optimal accuracy with the scalability required for real-world applications.

Methods: Tree Induction as an MDP

The core innovation of DPDT is the formulation of tree induction as a Markov Decision Process (MDP). In this framework:

  • States: Represented by the current subset of data and the current depth in the tree.
  • Actions: Choosing a feature and threshold to split the data, or declaring a node a "leaf" and assigning a class label.
  • Rewards: Negative values representing misclassification errors, combined with a complexity penalty ($\alpha$) for each split to encourage parsimony.

To overcome the computational explosion of evaluating every possible split, DPDT employs Heuristic Split Generation. Instead of an exhaustive search, DPDT runs a "lightweight" version of CART at each node to suggest a small set of $B$ candidate splits.

Figure 4: The DPDT framework uses CART as a heuristic to suggest candidate splits within an MDP, which are then optimized using dynamic programming.

By limiting the search space to these "expert-suggested" candidates and applying Dynamic Programming (specifically backward induction), the algorithm can look ahead and find the best combination of splits across the entire tree depth. This ensures the final tree is the best possible configuration achievable within the suggested candidate space.

Key Insights and Results

Diversity over Information Gain

The authors observed that simply selecting the "top $B$ most informative splits" based on Gini impurity often results in redundant splits. By using CART to generate candidates, DPDT ensures a more diverse and discriminative set of options, which is crucial for the algorithm's look-ahead capability to succeed on problems like XOR.

Performance and Scalability

DPDT demonstrates remarkable efficiency, reaching 99% of optimal training accuracy while performing 1,000 to 10,000 times fewer operations than exact optimal solvers. Furthermore, DPDT often generalizes better to unseen test data than "optimal" solvers. This suggests that the heuristic constraints provided by CART act as a beneficial form of regularization, preventing the model from overfitting to training set noise.

In terms of scalability, while optimal solvers frequently time out on large-scale data, DPDT successfully induced a depth-10 tree on the 5-million-row KDD Cup dataset in under 15 minutes. When integrated into boosting frameworks (XGB-DPDT), it outperformed boosted CART and even specialized deep learning models for tabular data.

Conclusion and Future Work

DPDT bridges the gap between greedy heuristics and global optimization. While the current Python implementation is slower in wall-clock time than optimized C++ versions of CART, the reduction in logical operations is significant. Future work aims to develop an industry-ready C++ implementation for integration into libraries like XGBoost or LightGBM, further pushing the boundaries of the interpretability-performance Pareto front.

Summary updated

BibTeX
@inproceedings{kohler2025discovering,
  author = {Hector Kohler and Riad Akrour and Philippe Preux},
  title = {{Discovering the Interpretability-Performance Pareto Front of Decision Trees with Dynamic Programming}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3711896.3736868},
}
Figure