arXiv:2609.05826cs.LGSep 2026

Manuscript Offprint

arXiv:2609.05826

Scaling Optimal Classification Trees via Adaptive Feature and Sample Reduction

Jiancheng Tu, Wenqi Fan

Abstract

Dynamic programming for optimal classification trees becomes computationally expensive as the numbers of features and training samples increase. We develop a joint feature- and sample-space reduction framework based on STreeD. Weighted STreeD merges duplicate records created after projection onto a fixed candidate set into weighted representatives. This reduces sample-dependent computation without changing the fixed-candidate optimization problem. Adaptive STreeD repeatedly refines a bounded candidate set, retains features used by the incumbent tree, rebuilds the weighted representation, and solves the resulting reduced problems. Each certified Weighted STreeD solution is optimal for its current candidate set, while the outer feature search remains heuristic over the full feature space. Experiments on five data sets show that Weighted STreeD achieves speedups of up to 121.41 times over standard STreeD. Adaptive STreeD reduces runtime in matched comparisons at depths 2–4 and continues to return feasible trees at greater depths where full-feature methods are limited by time or memory. Under the same computational budget, its predictive performance remains comparable to the evaluated optimal classification tree baselines and is higher in some comparisons. These results show how joint feature- and sample-space reduction can scale dynamic-programming-based optimal-tree learning to more demanding instances.

Keywords: Interpretable machine learning, optimal classification tree, dynamic programming

1 Introduction

Classification trees are widely used when predictions must be explained through explicit decision rules. This is particularly relevant in high-stakes applications such as credit scoring, medical prediction, and criminal justice, where decision makers may need to inspect and justify individual predictions (Rudin 2019). A shallow tree provides such transparency through a short sequence of rules from the root node to a leaf.

Classical tree-learning methods such as CART, ID3, and C4.5 construct trees greedily (Breiman et al. 1984, Quinlan 1986, 1993). They are computationally efficient, but local split decisions may not lead to the best final tree. Optimal classification tree methods instead optimize the complete tree. Existing approaches include mixed-integer optimization (Bertsimas and Dunn 2017, Verwer and Zhang 2019, Alston et al. 2026, Liu et al. 2024, Blanquero et al. 2021, 2020), dynamic programming (Aglin et al. 2020, Demirović et al. 2022, Lin et al. 2020, van der Linden et al. 2023), SAT, and constraint programming (Verhaeghe et al. 2020, Shati et al. 2021). Among these approaches, dynamic programming exploits the recursive tree structure and has been effective for shallow optimal-tree learning.

We build on STreeD, a general dynamic-programming framework for optimal decision trees (van der Linden et al. 2023). Its computational cost depends strongly on the number of candidate features and training samples. Large feature spaces increase the number of states and split evaluations, while many states repeatedly process training records. These costs become more severe after preprocessing creates a high-dimensional binary feature space.

We exploit the interaction between feature and sample reduction. Restricting the candidate set reduces split enumeration and can create additional duplicate projected records, which are merged into weighted representatives. Based on this idea, Weighted STreeD provides a lossless reformulation for fixed candidate sets, and Adaptive STreeD iteratively refines bounded candidate sets while rebuilding the weighted representation.

The two methods have different guarantee scopes. A certified Weighted STreeD solution is optimal for its fixed candidate set. Adaptive STreeD, however, remains heuristic over the full feature space. It recovers a full-feature optimum when a visited candidate set contains the split features of such an optimal tree and the corresponding reduced problem is solved to optimality. We also derive complexity and conditional solution-quality results that clarify these guarantees.

Experiments on five binarized data sets show that Weighted STreeD achieves speedups of up to 121.41×121.41\times over standard STreeD. Adaptive STreeD reduces runtime in matched comparisons at depths 2–4 and continues to return feasible trees at greater depths where full-feature methods are limited by time or memory. Under the same computational budget, its predictive performance remains comparable to the evaluated optimal-tree baselines.

The paper makes two methodological contributions. First, we develop a joint feature- and sample-space reduction scheme in which candidate restriction can increase the amount of lossless weighted aggregation. Second, we develop an adaptive candidate-refinement method that updates the reduced feature space while preserving features used by the incumbent. Theoretical analysis characterizes the computational reductions and guarantee scope, and computational experiments evaluate the two mechanisms separately and jointly.

References (52)