Manuscript Offprint
arXiv:2609.05826Scaling Optimal Classification Trees via Adaptive Feature and Sample Reduction
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 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.
2.1 Optimal Classification Trees
Optimal classification tree methods optimize the complete tree rather than selecting splits greedily. Major exact approaches include mixed-integer optimization, dynamic programming, SAT/MaxSAT, constraint programming, and branch-and-bound.
Mixed-integer optimization models jointly determine tree structure, split rules, and leaf predictions. The OCT formulation established this approach for bounded-depth trees (Bertsimas and Dunn 2017), followed by stronger formulations and extensions to richer split rules, objectives, and constraints (Verwer and Zhang 2019, Aghaei et al. 2025, Günlik et al. 2021, Subramanian and Sun 2023, Ales et al. 2024, D'Onofrio et al. 2024). These models are flexible, but sample-indexed routing variables and large split spaces can limit scalability. SAT, MaxSAT, and constraint-programming methods provide alternative exact formulations based on logical constraints and structured search (Shati et al. 2021, Hu et al. 2020, Verhaeghe et al. 2020). Column-generation and path-based approaches further reduce the initial model by generating rules or paths as needed (Firat et al. 2020, Patel et al. 2024, Subramanian and Sun 2023).
Dynamic-programming methods exploit the recursive structure of a decision tree and reuse repeated subproblems through caching and bounds. DL8.5 combines caching with branch-and-bound search (Aglin et al. 2020), while MurTree introduces specialized bounds, similarity-based pruning, and efficient shallow-tree routines (Demirović et al. 2022). OSDT and GOSDT use regularization and strong pruning rules to learn sparse optimal trees (Hu et al. 2019, Lin et al. 2020). STreeD generalizes this line of work by identifying conditions under which objectives and constraints can be decomposed into independent subtree problems (van der Linden et al. 2023). Recent alternatives include AND/OR search in MAPTree and AO* search in Branches (Sullivan et al. 2024, Chaouki et al. 2025). Quant-BnB and ConTree instead specialize search for continuous features (Mazumder et al. 2022, Briña et al. 2025).
2.2 Data and Feature Reduction
Data-reduction methods use repeated or indistinguishable records to reduce computation. CORELS and OSDT use equivalent-point arguments to derive unavoidable prediction errors (Angelino et al. 2018, Hu et al. 2019). Similar ideas have been used to strengthen lower bounds or reduce redundant observations in optimal-tree search (Zhang et al. 2023, Keegan et al. 2025, Hua et al. 2022).
GOSDT provides a related dynamic-programming precedent. It stores positive and negative empirical mass for each distinct row in a fixed binary feature matrix (Lin et al. 2020). WFlowOCT aggregates duplicate feature-label records into weighted instances within a flow-based mixed-integer model (Tu et al. 2026). Weighted STreeD differs in that duplicate records are defined after projection onto the current candidate set. Restricting the candidate set can therefore create additional duplicate records, which are merged into weighted representatives. The weighted representation is rebuilt whenever the candidate set changes, coupling feature-space reduction with sample-space reduction. Under the stated separability and information-preservation conditions, the transformation leaves the fixed-candidate optimization problem unchanged.
Feature reduction can be applied before optimization or during the solution process. BinOCT reduces binary variables associated with distinct feature values (Verwer and Zhang 2019), while reference-guided methods use black-box models to select thresholds, estimate tree size, or guide lower bounds (McTavish et al. 2022). Other studies reduce the feature space more directly. Ruggieri (2019) enumerates feature subsets for a fixed greedy learner, while Ing et al. (2024) and Eiben et al. (2023) study compact feature supports under different structural assumptions. These methods reduce the search space, but they do not generally guarantee that the selected features contain those used by a full-feature optimal tree. Adaptive STreeD follows a different strategy: it solves a sequence of bounded candidate-set problems and rebuilds the weighted data representation after each candidate update.
2.3 Near-Optimal Classification Trees
When proving full optimality is too expensive, several methods seek high-quality trees within a fixed computational budget. Limited-discrepancy search, Blossom, and anytime beam search retain the full search space but prioritize strong incumbents before completing the optimality proof (Demirović et al. 2023, Kiossou and Schaus 2026). Memory-constrained methods instead limit cache usage or modify state processing (Aglin et al. 2022). Other approaches reduce exact search by optimizing only part of the tree: SPLIT solves upper subproblems exactly and constructs lower levels greedily (Babbar et al. 2025), while SAT-based local improvement reoptimizes selected subtrees of a heuristic solution (Schidler and Szeider 2021).
Adaptive STreeD differs by restricting the candidate feature space rather than the tree structure or search order. Each certified inner solve is optimal for its current candidate set, while the outer feature refinement remains heuristic over the full feature space. A full-feature optimum is recovered only when a visited candidate set contains the split features of such an optimal tree and the corresponding reduced problem is solved to optimality.
3 Weighted Unique-Data Dynamic Programming
This section develops the fixed-candidate weighted reformulation of STreeD. We first establish fixed-candidate equivalence between the original and weighted representations for separable tasks that satisfy the information-preservation condition. We then specialize to the training-accuracy objective to present the explicit recursion and analyze its time and space complexity. This specialization reflects the paper's focus on scalability rather than a restriction of the weighted reformulation. Proofs are given in Appendix D.
3.1 Problem Setting
Let be a training set, where is the post-binarization feature vector, is the class label drawn from the finite class set , and collects any additional record-level information required by the task, such as class-specific costs, treatment and outcome information, or group membership.
Let be the full post-binarization feature set. Fix a candidate set and let . A tree restricted to may use only features in as split features; denotes the prediction of tree after projecting observation onto .
For a tree , let denote its training misclassification count. The empirical misclassification error is , and training accuracy is . Thus, maximizing training accuracy is equivalent to minimizing . The recursions below use this additive count.
Definition 1. Following Definition 4.2 of van der Linden et al. (2023), an optimization task is separable if and only if the optimal solution to any subtree can be determined independently of decision variables outside that subtree and the branching decisions of its parent nodes.
With appropriate task states, STreeD supports ordinary and cost-sensitive classification, prescriptive policy learning, -score and Matthews correlation coefficient optimization, and gurop fairness objectives. The aggregation argument below applies whenever the key or stored statistics retain all information used by the task's dynamic program.
For the fixed candidate set , define the aggregation key
Observations with the same key form one group in the fixed-candidate problem. The weighted unique data set contains one representative for each distinct key. Here, is the projected binary feature vector, and retain the task-relevant information, and is the number of original observations represented by . Let
denote the number of weighted unique records. Each representative must retain all task-specific information and sufficient statistics required by the dynamic program.
Let denote the class of classification trees with depth at most , at most internal split nodes, and split features restricted to . All results below use the same fixed , the same post-binarized representation, and the same feasible tree class. We use and for states over original and weighted records, respectively, and and for the remaining depth and node budget. Appendix B.1 collects the notation.
3.2 STreeD Dynamic Programming Baseline
For the training-accuracy objective, STreeD recursively solves the two child subproblems created by a split (van der Linden et al. 2023). Its state records the observations reaching the node, the remaining depth, and the remaining node budget. Leaf(A) is the smallest misclassification count attainable by a constant class prediction. For , let
The cache avoids repeated solution of identical states. The simplified recursion in Appendix B.2 omits implementation enhancements because it is used only to expose sample-dependent work.
Let be the set of distinct cached states visited by the baseline recursion. For a state , define
We use the conservative path-state bound
When , treating as fixed and as the input variable,
The following proposition records the baseline time and space terms. The bounds are intended for complexity accounting rather than as tight models of a specific implementation.
Proposition 1. Consider the accuracy-based recursion above for labels in the finite class set , and suppose that the baseline implementation scans the records in every visited state. The asymptotic input quantities are , , , , and ; denotes the machine-word size. Its running time is
A conservative worst-case bound is
If each cached state is represented by a bitset over the n original records and one machine word stores b bits, then the sample-dependent cache-space requirement is
These expressions exclude storage for the input feature matrix, returned trees, and auxiliary solver statistics.
The state-sum expressions separate work performed on the records from split and budget enumeration. The worst-case form replaces the actual visited-state collection by a conservative path bound, so it should be read as an accounting bound rather than a prediction of realized runtime. Pruning and state reuse can reduce realized work below this bound.
3.3 Weighted STreeD
Weighted STreeD applies the same fixed-candidate recursion to the weighted unique data set . The multiplicity weights satisfy
Let denote the set of distinct task-specific values of . Because all projected features are binary,
For the training-accuracy objective, .
Equation (6) is only an upper bound. The actual value of depends on the patterns observed in the data. When only a small fraction of the possible patterns occurs, projection onto a small candidate set can create many duplicate records. In such cases, can be much smaller than both the original sample size and the combinatorial upper bound. The main theoretical result is the equivalence between the original and weighted fixed-candidate problems.
Proposition 2. Fix a candidate set , a feasible tree class , and a separable optimization task. Suppose the aggregation key retains all record-level information required by that task. For each feasible tree , let denote record 's contribution to the vector of sufficient statistics used by the dynamic program. Assume that this contribution depends only on , , and , and that the task value and feasibility of are determined by the sum of these contributions together with any tree-only terms. If denotes the corresponding contribution for weighted record , then
The original and weighted representations therefore give every feasible tree the same task statistics and the same value under the possibly nonlinear task objective computed from those statistics. Because the feasible tree class and tree-only terms are unchanged, the two fixed-candidate problems also have the same optimal value and the same set of optimal trees.
Remark 1. The weighted representation supports the same separable tasks as STreeD whenever the aggregation key or stored sufficient statistics retain the information required by the task. What must be retained is task dependent. For the training-accuracy objective, projected features and class labels suffice. For the nonlinear but separable -score objective, the weighted counts must reproduce the class-specific confusion-matrix statistics used by the task state.
We now specialize the weighted recursion and its complexity analysis to the training-accuracy objective. For this weighted recursion, let
be the weighted records reaching a node. The best weighted leaf cost is
(8)
For a split feature , define
Let be the minimum weighted misclassification count for state . The recursion is
where
The weighted and unweighted recursions have the same structure. Their only difference is the representation of the records and the use of weights in the sufficient statistics.
Corollary 1. For the training-accuracy objective with labels in the finite class set , suppose the weighted and unweighted recursions use the same fixed candidate set S, depth limit D, internal-node budget M, and pruning rules. If those rules are computed from aggregation-preserving weighted class counts, then (9)–(10) returns the same optimal misclassification count as the corresponding recursion on the original data.
Let be the set of distinct weighted states visited by Weighted STreeD. For a weighted state , define .
The following proposition gives the weighted time and space terms.
Proposition 3. Consider the weighted misclassification-count recursion above for labels in the finite class set , and suppose that Weighted STreeD uses the same direct state-scanning implementation as the baseline. The asymptotic input quantities are , , , , and ; denotes the machine-word size. Its running time is
Using the path-state bound in (2), a conservative worst-case bound is
If each weighted state is represented by a bitset over the weighted unique records, then the sample-dependent cache-space requirement is
These expressions exclude storage for the weighted input table, returned trees, and auxiliary solver statistics.
Relative to the baseline bounds, the sample-universe terms replace and the state sizes by and . Candidate-set size, depth, and node-budget factors remain. The weighted representation can reduce record-processing work and bitset length without eliminating the combinatorial search over feasible trees. The exact reduction in sample-scanning work depends on the compression achieved within all visited states, not only at the root state.
Proposition 4. For the training-accuracy objective with labels in the finite class set , assume that the baseline and weighted recursions visit corresponding logical states under the same candidate set, depth limit, internal-node budget, search order, and aggregation-preserving pruning rules. Then the reduction ratio in the sample-scanning term is
If the state-level compression ratios are close to the root-level compression ratio, then
For bitset-based cache representations and corresponding logical states, the per-state sample-dependent storage ratio is
When both and are large,
The ratio approximates sample-scanning and bitset-storage reductions only when similar compression persists across visited states. It is not a wall-clock speedup because feature enumeration, budget allocation, caching, pruning, and fixed solver overhead remain. The fixed-candidate ablation in Section 5.3 evaluates the realized effect. When changes, projection and aggregation are repeated, so the equivalence and complexity results apply separately to each candidate set.
4 Adaptive STreeD
Section 3 gives a lossless weighted reformulation for a fixed candidate feature set. Adaptive STreeD applies this reformulation to a sequence of reduced problems with bounded candidate sets in large binarized feature spaces. The initial candidate set consists of the most important features selected by a random forest. Later iterations retain the features used by the current incumbent and use repeated CART fits to propose new candidates. After each update, the data are projected onto the active feature set, which can create additional duplicate records. These records are merged into weighted representatives, and the resulting problem is solved by Weighted STreeD. Random forests and CART are used only for feature proposal. A certified inner solve is optimal for its current candidate set under the assumptions of Section 3, whereas the outer candidate refinement remains heuristic over the full feature space.
4.1 Candidate-Refinement Algorithm
Algorithm 1 summarizes the complete Adaptive STreeD procedure. Let , and let the target tree have maximum depth and node budget ( when unrestricted). The training score is ; the experiments use accuracy. Each active set contains at most features.
A depth- binary tree has at most internal nodes and therefore cannot use more than distinct split features. The capacity exploits this structural sparsity. A smaller value reduces split enumeration and usually increases compression after projection; a larger value supplies broader feature coverage but makes the exact reduced problem harder. The sensitivity experiment in Section 5.4 evaluates this tradeoff directly.
The initial candidate set contains the top- features ranked by random forest, and the incumbent is initialized as the best constant leaf. At later iterations, the incumbent support is retained and at most
Algorithm 1 Adaptive STreeD
Require: Data , features , depth , node budget , score , capacity , time limits , iteration limit , patience , switch threshold , tolerance
Ensure: Best feasible tree
1: top- features ranked by a random forest 2: best constant-leaf tree; 3: 4: for do 5: if elapsed or then 6: break 7: end if 8: if then 9: if then 10: break 11: end if 12: if ; otherwise 13: at most top features from repeated CART fits on 14: if then 15: break 16: end if 17: 18: end if 19: 20: weighted unique data obtained from the projection of onto 21: WeightedSTreeD() 22: if is feasible and then 23: 24: 25: else 26: 27: end if 28: if then 29: break 30: end if 31: end for 32: return
additional features are proposed using repeated multi-level CART fits, which can identify features that become useful after earlier splits. The archives and record features used by accepted incumbents and previously proposed features, respectively. After nonimproving iterations, the proposal step also excludes , encouraging exploration of new feature blocks. CART is used only for feature proposal and provides no optimality guarantee.
The incumbent support is never removed. If , no new feature can be added while retaining the incumbent, and the procedure stops; otherwise, the proposal block is truncated so that satisfies . For each active candidate set, the data are projected, aggregated, and solved by Weighted STreeD. Let be the total time limit and the maximum time for one inner solve. Provided that elapsed , the time assigned to iteration is
Only an improvement greater than replaces the incumbent; failed or nonimproving inner solves leave it unchanged. Hence, the incumbent-score sequence is nondecreasing, and an interrupted inner solve cannot discard the best feasible tree found previously. A certified inner solution is optimal for the current candidate set, whereas an uncertified feasible solution is only an incumbent for that reduced problem. Retaining the incumbent support keeps the current tree feasible in subsequent reduced problems as long as its support fits within the candidate capacity.
4.2 Joint Feature- and Sample-Space Reduction
At iteration , let and . Feature restriction replaces the full dimension by , while weighted aggregation replaces the original records by weighted records in the sample-dependent terms of the inner dynamic program. For binarized features and labels in ,
This is an upper bound. The actual value of depends on the feature-label patterns observed after projection and may be much smaller. The following proposition gives the per-iteration complexity under the model developed in Section 3.
Proposition 5. Consider classification with labels in the finite class set , binarized candidate features, and the training-accuracy objective. Suppose that iteration uses candidate set , with , and aggregation key . Under the direct state-scanning model of Proposition 3, the running time of the inner Weighted STreeD solve is
where . The asymptotic input quantities are , and . Since , a uniform per-iteration bound is
The capacity reduces two sources of computational cost. First, each dynamic-programming state considers at most candidate features instead of all features. Second, projection onto a smaller feature set can create fewer distinct records. Weighted STreeD therefore processes fewer weighted records. Once the active candidate set is constructed, the complexity of the inner dynamic program depends on rather than the full feature dimension . The complete Adaptive STreeD procedure, however, still depends on the original data because feature proposal, projection, and aggregation operate on the full input.
For completed iterations, let denote the cost of the initial random-forest ranking and the cost of the CART proposal at iteration . Assuming expected constant-time hash-table operations, projection and aggregation require expected work. The total computational cost is therefore
where is bounded by (20). Here , and the candidate sizes are input quantities. Equation (22) accounts for the entire pipeline. In contrast, covers only the exact dynamic-programming solve at iteration .
Equation (22) shows that the complete procedure still depends on the original sample size and feature dimension , even though each inner dynamic-programming problem operates on a reduced representation. Accordingly, and quantify the reductions in the sample- and feature-dependent components of the dynamic program, respectively. They should not be interpreted as guarantees on total wall-clock speedup. Figure 1 summarizes one refinement cycle of Adaptive STreeD.

Figure 1: One Adaptive STreeD refinement cycle. Candidate restriction reduces features to , and aggregation maps projected records to weighted unique records before the inner solve.
4.3 Conditional Solution-Quality Analysis
We examine how the main parameters of Adaptive STreeD influence solution quality, with particular attention to training accuracy. Recovering a full-feature optimum requires that some visited candidate set contain the split features of an optimal tree and that the corresponding reduced problem be solved to certified optimality. This section relates this event to candidate capacity, refinement opportunities, and the quality of the retained incumbent.
Let
Choose a full-feature optimal tree , and define
Since a feasible tree has depth at most D and at most M internal nodes,
We assume , so that an active candidate set can contain the selected optimal support.
For iteration t, define
and
with equal to the whole sample space. Let denote the search history before iteration . Suppose deterministic constants satisfy
Proposition 6. Assume that (24) holds for , and that whenever occurs, the corresponding reduced problem is solved to certified optimality. Suppose further that the retained incumbent has approximation ratio at least . If denotes the final incumbent score after completed iterations, then
Proposition 6 highlights three factors: the baseline ratio , the number of completed iterations , and the conditional support-coverage bounds . Larger values of any of these quantities improve the bound. The are theoretical lower bounds; random-forest and CART importance scores are used only to rank candidate features and are not estimates of these probabilities.
For training accuracy, let
denote the majority-class proportion. Since Algorithm 1 initializes the incumbent with the majority-class leaf and , the initial approximation ratio is at least .
Corollary 2. For training accuracy, under the assumptions of Proposition 6,
The candidate capacity affects both feature coverage and the difficulty of the reduced problem. The condition is necessary for an active set to contain the selected optimal support. Increasing may improve coverage, but it also enlarges the reduced problem and can make certification more difficult. The random-forest initialization and CART-guided refinement determine which features enter the candidate sets and therefore influence the coverage probabilities .
The remaining parameters mainly control how many reduced problems can be explored and certified. The iteration and patience limits affect the number of completed iterations . A larger inner time limit gives each reduced problem more time to reach certified optimality, whereas the total budget limits both the number and duration of inner solves. Tree depth and node budget affect the possible support size through and also determine the difficulty of the dynamic program. Under a fixed computational budget, training accuracy therefore depends on the balance between feature coverage, refinement opportunities, and the ability to certify the resulting reduced problems.
5 Computational Experiments
The computational study addresses three questions:
Q1. Does Adaptive STreeD improve the scalability of optimal classification tree learning while maintaining predictive performance as the maximum tree depth increases?
Q2. When the candidate feature set is fixed, to what extent does weighted unique-data aggregation reduce the computational cost of STreeD?
Q3. How does the candidate-set capacity K affect the tradeoff between computational efficiency and predictive performance?
We conduct three experiments. The overall comparison evaluates Adaptive STreeD against CART and two full-feature optimal-tree solvers across different tree depths. The fixed-candidate ablation isolates the computational effect of Weighted STreeD. The candidate-capacity study examines the sensitivity of Adaptive STreeD to K. Appendix A separately examines the preprocessing resolution used to construct the binary candidate universe.
Table 1: Data sets used in the computational experiments
| Data set | Samples | Original features | Binary features | Classes |
|---|---|---|---|---|
| COMPAS | 12,381 | 22 | 230 | 2 |
| Diabetic | 101,766 | 47 | 544 | 3 |
| Give Me Some Credit | 150,000 | 10 | 375 | 2 |
| FICO | 10,459 | 23 | 758 | 2 |
| Transactions | 786,363 | 113 | 653 | 2 |
5.1 Experimental Setup
Data and preprocessing. We use five public tabular data sets: COMPAS (Angwin et al. 2016, ProPublica 2016), Diabetes 130-US Hospitals (Strack et al. 2014, Clore et al. 2014), Give Me Some Credit (Kaggle 2011), FICO HELOC (FICO 2018, Arya et al. 2020), and Capital One Transactions (Capital One Recruiting 2018, Bhardwaj 2020). We use five independent 80/20 train-test splits. Continuous features are quantile binned into at most 100 intervals and represented by cumulative binary indicators; categorical features are one-hot encoded. The 100-bin cap is used as a conservative preprocessing choice to retain more threshold information before optimization, rather than to minimize runtime. Appendix A examines the sensitivity to this choice, and Table 1 reports the resulting Bin100 dimensions.
Method settings. The overall comparison uses . Unless otherwise stated, Adaptive STreeD uses a total time limit of seconds, a maximum inner-solve time of seconds, outer iterations, , , and an improvement tolerance of . The CART proposal procedure uses depth 5 and 20 repeated fits per iteration. The sensitivity experiment varies while holding the remaining parameters fixed. STreeD, Weighted STreeD, and DL8.5 optimize training accuracy with the full depth-based node budget . Each configuration has a 600-second time limit. CART is included as a fast greedy baseline. Adaptive STreeD uses a single total time budget covering feature proposal, projection, aggregation, and all inner Weighted STreeD solves. To focus the computational study on scalability, all optimization-based methods use training accuracy as the common objective. This experimental choice does not restrict the weighted reformulation to accuracy. Our implementation also includes weighted variants for -score optimization and cost-sensitive classification.
Computing environment and status. The CART and Random Forest (RF) algorithms were implemented in Python 3.12 using scikit-learn (Pedregosa et al. 2011). All experiments were conducted on a 64-bit Windows system with an Intel Core i9-14900KF at 3.20 GHz and 64 GB of memory. The implementations of Adaptive STreeD and Weighted STreeD, together with reproducible examples, are publicly available at https://github.com/Tommytutu/AdaptiveSTreeD. For full-feature STreeD and DL8.5, Optimal denotes a certified optimum over the full candidate feature set. For fixed-candidate Weighted STreeD, it denotes a certified optimum for the specified candidate set. Adaptive STreeD does not in general provide a full-feature optimality certificate; for this method, we report whether a feasible incumbent is returned and whether the total time limit is reached. A run with no feasible return before the time or memory limit is reported as Infeasible; this is an experimental status and does not imply mathematical infeasibility.
5.2 Overall Computational Performance
This subsection addresses Q1 by comparing computational scalability and predictive performance across CART, Adaptive STreeD, full-feature STreeD, and DL8.5 at depths 2–7 under a common 600-second time limit. Full-feature STreeD serves as the direct reference because Adaptive STreeD is built on the same dynamic-programming framework, while DL8.5 provides an additional dynamic-programming baseline for finite-budget optimal-tree search (Aglin et al. 2020).

Figure 2: Runtime distributions by maximum tree depth. Boxes show interquartile ranges and center lines show medians. The dashed line marks the 600-second time limit.
Scalability. Results are matched by data set, random split, and maximum depth. CART and Adaptive STreeD are evaluated at all depths. Full-feature STreeD returns feasible trees only through depth 4, and its certification rate drops sharply at depth 4. At depths 5–7, runs that reach the time or memory limit without a feasible tree are reported as Infeasible. DL8.5 returns only uncertified incumbents in all 75 runs at these depths. Comparisons at larger depths are therefore interpreted under the common computational budget rather than against consistently certified full-feature optima.
Figure 2 reports median runtimes and interquartile ranges. At depths 2–4, median runtimes for Adaptive STreeD are 5.38, 12.70, and 17.84 seconds, compared with 7.19, 98.48, and 607.11 seconds for full-feature STreeD. The corresponding runtime ratios are , , and . The depth-4 ratio is capped because many full-feature runs reach the time or memory limit. The widening gap with depth reflects the growing cost of full-feature search, whereas at depth 2 the overhead of feature proposal and aggregation offsets much of the benefit.
At depths 5–7, Adaptive STreeD returns a feasible tree in all 25 runs at each depth, with median runtimes of 42.08, 94.91, and 223.94 seconds. Among these runs, 1, 6, and 9 reach the time limit, respectively. Full-feature STreeD, in contrast, fails to return a feasible tree before the time or memory limit at these depths. Candidate restriction therefore extends the range of depths for which a feasible tree can be obtained under the stated computational protocol, although the computational burden still grows with depth.
DL8.5 is faster than Adaptive STreeD at depth 2, reflecting the overhead of the adaptive procedure on easier instances. At depths 3 and 4, 11 of 25 and 23 of 25 DL8.5 runs reach the time limit, and all 75 runs at depths 5–7 are time-limited. These solutions are therefore treated as uncertified incumbents. Overall, the relative computational advantage of Adaptive STreeD becomes more pronounced as depth and problem difficulty increase.
Predictive performance. Figure 3 reports five-split means with sample-standard-deviation error bars. At depths 2–4, Adaptive STreeD closely matches the available full-feature STreeD results. Across the 75 matched data-set-split-depth configurations, the training-accuracy difference is at most 0.1 percentage

Figure 3: Training and test accuracy by data set and maximum tree depth. Points show five-split means and error bars show sample standard deviations.
points in 60 cases and at most 0.2 percentage points in 67 cases. The average Adaptive-minus-STreeD difference is -0.0553 percentage points for training accuracy and 0.08 percentage points for test accuracy. These differences are descriptive, and no statistical significance is claimed.
For COMPAS, Diabetic, Give Me Some Credit, and FICO, Adaptive STreeD generally achieves predictive performance comparable to the other optimal-tree methods over the depths for which matched results are available. The small test-accuracy differences indicate that the scalability improvement does not come with a systematic loss in predictive performance.
A different pattern appears for Transactions, the largest data set with 786,363 observations. At depth 4, Adaptive STreeD achieves better predictive performance than full-feature STreeD and DL8.5. The full-feature search is particularly difficult on this large instance, and many competing runs are limited by the 600-second budget. Under the same budget, Adaptive STreeD searches a reduced feature space and obtains a tree with higher predictive performance. This is a finite-budget advantage and does not imply that a certified full-feature optimum would have lower predictive performance.
At greater depths, the pooled mean training accuracy of Adaptive STreeD increases from 80.08% at depth 4 to 80.54%, 80.87%, and 81.00% at depths 5–7. Full-feature STreeD provides no comparable feasible solutions at these depths, while DL8.5 returns time-limited incumbents. Test accuracy, however, is not monotone in depth: the best five-split mean occurs at depth 3 for COMPAS and Give Me Some Credit, depth 4 for Diabetic and Transactions, and depth 5 for FICO. This pattern is consistent with overfitting, as deeper trees can improve the training objective without necessarily improving out-of-sample performance.
For Q1, the matched results indicate that Adaptive STreeD scales better as tree depth and problem difficulty increase. Its predictive performance remains comparable to the evaluated optimal-tree methods under the same computational budget. On the largest data set, the reduced search also yields higher predictive performance within that budget.
5.3 Fixed-Candidate Weighted Aggregation
This subsection addresses Q2 by isolating the computational effect of weighted unique-data aggregation. A 500-tree random forest ranks the binary features, and matched STreeD and Weighted STreeD runs receive
Table 2: Weighted aggregation ablation on five binarized data sets
| Data set | Pairs | Mean comp. | Mean sp. | Max sp. | Faster | Same | Better |
|---|---|---|---|---|---|---|---|
| COMPAS | 30 | 10.19 | 2.44 | 7.48 | 23/30 | 30/30 | 0 |
| Diabetic | 30 | 39.05 | 3.83 | 36.68 | 18/30 | 28/30 | 2 |
| Give Me Some Credit | 30 | 281.68 | 9.53 | 40.02 | 20/30 | 27/30 | 3 |
| FICO | 30 | 98.78 | 2.14 | 7.96 | 19/30 | 30/30 | 0 |
| Transactions | 30 | 538.46 | 23.05 | 121.41 | 20/30 | 23/30 | 7 |
| All | 150 | 193.63 | 8.20 | 121.41 | 100/150 | 138/150 | 12 |
Note. “Mean comp.” and “Mean sp.” denote arithmetic-mean compression and runtime speedup, respectively. “Faster” denotes a recorded speedup greater than one. “Same” indicates equal training misclassification, while “Better” indicates lower training misclassification for Weighted STreeD.
the same top features, training split, depth, objective, and 600-second time limit. Thus, the two methods solve the same fixed-candidate tree problem and differ only in the representation of the training records. Standard STreeD retains all training records, whereas Weighted STreeD merges duplicate projected feature–label records into weighted representatives.
For each matched pair, we report
A speedup above one favors Weighted STreeD. Ratios involving time-limited runs are interpreted as capped comparisons.
Computational effect. Table 2 and Figure 4 show that Weighted STreeD has lower recorded runtime in 100 of 150 matched cases. All 50 cases in which it is not faster occur at depths 2 and 3, where the underlying optimization problems are relatively easy and aggregation overhead is more noticeable. Across all cases, the arithmetic-mean speedup is , with a maximum of .
Compression and speedup vary across data sets. Transactions has the largest mean compression ratio, , and the largest mean speedup, , while Give Me Some Credit achieves a mean speedup of . In contrast, COMPAS has a smaller mean compression ratio of and a more moderate mean speedup of .
Depth and candidate-set size further explain the runtime differences. At depths 2 and 3, the additional cost of aggregation, initialization, and weight management can offset the savings from shorter record scans. From depth 4 onward, Weighted STreeD is faster in all matched cases, as repeated record processing across more dynamic-programming states becomes more important. The largest gains also tend to occur for smaller , because projection onto fewer features creates more duplicate records. As increases, generally approaches , reducing the benefit of aggregation.
The compression ratio and runtime improvement are positively related, but not proportional. Compression and log speedup have a Spearman correlation of 0.342. This is consistent with the complexity analysis: measures the reduction in sample-dependent work, whereas total runtime also includes feature enumeration, caching, pruning, and solver overhead. Therefore, a large compression ratio does not imply an equally large wall-clock speedup.
Solution quality. The two methods solve the same fixed-candidate optimization problem, so weighted aggregation does not change its optimum. Training misclassification is identical in 138 of 150 matched cases. All 12 differences occur in time-limited runs, where Weighted STreeD obtains a better incumbent before termination. When both methods certify optimality, Proposition 2 requires their optimal objective values to agree.

(a) Mean speedup by K and depth.

(b) Compression ratio and matched runtime speedup.
Figure 4: Effect of weighted unique-data aggregation under fixed candidate sets. The dashed line in panel (b) indicates equal recorded runtime between standard STreeD and Weighted STreeD.
For Q2, aggregation is most effective when projection creates many duplicate records and tree depth makes repeated scanning costly.
5.4 Sensitivity to Candidate-Set Capacity
This subsection addresses Q3 by examining how the candidate-set capacity affects computational cost and predictive performance. We evaluate at depths 2–7 on five data sets and five train–test splits. Runtime ratios and test-accuracy differences are computed within matched blocks using as the reference. Of the 1,050 planned runs, 1,043 return results; missing runs are not imputed. Complete numerical results are reported in Appendix C.1.
Seven configurations are unavailable. These missing runs occur only at larger candidate capacities and greater depths and are therefore not treated as random. Accuracy differences are computed only for matched blocks in which both the target capacity and return a feasible tree.
Computational cost. Figure 5(a) shows that runtime generally increases with , and the effect becomes stronger as tree depth increases. At , all 150 runs return results and the pooled median runtime is 10.48 seconds. At , 144 runs return results, the pooled median runtime increases to 32.03 seconds, and the median matched runtime ratio relative to is .
Across the full capacity sequence, pooled median runtime increases from 7.95 seconds at to 20.89 seconds at and 32.03 seconds at . All 150 runs return results through , compared with 149 at and 144 at . The runtime increase is especially pronounced at greater depths. For example, at depth 6, the median matched runtime ratio for relative to reaches .
This behavior is consistent with the complexity analysis. A larger candidate set increases the number of split features considered at each dynamic-programming state. It can also create more distinct projected records, reducing the amount of compression available to Weighted STreeD. Both effects become more important as tree depth increases.
Predictive performance. Figure 5(b) shows that predictive performance changes much less than runtime. Pooled mean training accuracy is 0.7942, 0.7965, and 0.8029 for , respectively, while pooled mean test accuracy is 0.7892, 0.7905, and 0.7946. Relative to , the mean matched test-accuracy difference ranges from -0.127 percentage points at to +0.122 percentage points at .
Increasing therefore provides modest average improvements in predictive performance compared with its effect on runtime. The depth-specific differences are also not monotone. A larger candidate set gives the

(a) Runtime sensitivity.
(b) Matched test-accuracy difference.
Figure 5: Sensitivity to candidate-set capacity . Runtime curves show depth-specific medians on a logarithmic scale, with shaded interquartile ranges. Accuracy curves report mean matched test-accuracy differences relative to in percentage points.
algorithm access to more features, but the additional coverage does not necessarily improve test accuracy at every depth.
For Q3, the results identify a tradeoff between feature coverage and computational cost. Increasing provides more candidate features and modestly improves average predictive performance, but at a much larger computational cost. The completion rate also decreases at the largest capacities, especially for deeper trees. In these experiments, provides a computationally efficient operating point, whereas provides broader feature coverage and slightly higher solution quality at greater computational cost.
6 Conclusion
This paper develops two complementary mechanisms for improving the scalability of dynamic-programming-based optimal classification trees. Weighted STreeD merges duplicate projected records into weighted representatives while preserving the fixed-candidate optimization problem under the stated assumptions. Adaptive STreeD further combines bounded candidate sets, feature refinement, and Weighted STreeD. Each certified inner solution is optimal for its current candidate set, while the outer feature search remains heuristic over the full feature space.
Across five data sets, Adaptive STreeD requires less runtime than full-feature STreeD in matched comparisons at depths 2–4 and continues to return feasible trees at greater depths. Its predictive performance remains comparable to the evaluated optimal-tree methods under the same computational budget. On the largest data set, Transactions, it also achieves higher predictive performance in the finite-budget comparison with the full-feature methods. The fixed-candidate ablation shows that Weighted STreeD achieves an average speedup of and a maximum of , with larger gains for deeper trees and more compressible data. The sensitivity analysis further identifies a tradeoff in the candidate capacity : increasing improves feature coverage and slightly improves solution quality, but also increases runtime, especially for deeper trees.
The main limitation is that Adaptive STreeD does not guarantee full-feature optimality because the feature-proposal procedure may omit features used by an optimal tree. Its performance also depends on the candidate capacity, time allocation, and stopping rules, and reducing the feature and sample spaces does not remove the combinatorial dependence on tree depth. In addition, the current analysis gives explicit recursions and complexity bounds only for binarized candidate features under the training-accuracy objective. Proposition 2 separately establishes fixed-candidate equivalence for separable tasks that satisfy the information-preservation condition.
Future work will investigate safe feature-screening rules, stronger full-space bounds, adaptive candidate capacities, and more efficient memory and parallelization strategies. Extensions to continuous features, task-specific recursions and complexity bounds for objectives beyond training accuracy, robust formulations, and broader high-stakes applications are also left for future work.
References
Sina Aghaei, Andrés Gómez, and Phebe Vayanos. Strong optimal classification trees. Operations Research, 73(4):2223–2241, 2025.
Gaël Aglin, Siegfried Nijssen, and Pierre Schaus. Learning optimal decision trees using caching branch-and-bound search. Proceedings of the AAAI Conference on Artificial Intelligence, 34(4):3146–3153, 2020.
Gaël Aglin, Siegfried Nijssen, and Pierre Schaus. Learning optimal decision trees under memory constraints. In Machine Learning and Knowledge Discovery in Databases. Research Track, volume 13717 of Lecture Notes in Artificial Intelligence, pages 393–409. Springer, 2022.
Zacharie Ales, Valentine Huré, and Amélie Lambert. New optimization models for optimal classification trees. Computers & Operations Research, 164:106515, 2024.
Brandon C. Alston, Hamidreza Validi, and Illya V. Hicks. Mixed integer linear optimization formulations for learning optimal binary classification trees. INFORMS Journal on Computing, 2026.
Elaine Angelino, Nicholas Larus-Stone, Daniel Alabi, Margo Seltzer, and Cynthia Rudin. Learning certifiably optimal rule lists for categorical data. Journal of Machine Learning Research, 18(234):1–78, 2018.
Julia Angwin, Jeff Larson, Surya Mattu, and Lauren Kirchner. Machine bias, 2016. ProPublica, May 23. Available at https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing.
Vijay Arya, Rachel K. E. Bellamy, Pin-Yu Chen, Amit Dhurandhar, Michael Hind, Samuel C. Hoffman, Stephanie Houde, Q. Vera Liao, Ronny Luss, Aleksandra Mojsilovic, Sami Mourad, Pablo Pedemonte, Ramya Raghavendra, John T. Richards, Prasanna Sattigeri, Karthikeyan Shanmugam, Moninder Singh, Kush R. Varshney, Dennis Wei, and Yunfeng Zhang. AI Explainability 360: An extensible toolkit for understanding data and machine learning models. Journal of Machine Learning Research, 21(130):1–6, 2020.
Varun Babbar, Hayden McTavish, Cynthia Rudin, and Margo Seltzer. Near-optimal decision trees in a SPLIT second. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 2114–2175. PMLR, 2025.
Dimitris Bertsimas and Jack Dunn. Optimal classification trees. Machine Learning, 106(7):1039–1082, 2017.
Abhishek Bhardwaj. Fraud detection, 2020. Kaggle data set. Available at https://www.kaggle.com/datasets/iabhishekbhardwaj/fraud-detection.
Rafael Blanquero, Emilio Carrizosa, Cristina Molero-Río, and Dolores Romero Morales. Sparsity in optimal randomized classification trees. European Journal of Operational Research, 284(1):255–272, 2020.
Rafael Blanquero, Emilio Carrizosa, Cristina Molero-Río, and Dolores Romero Morales. Optimal randomized classification trees. Computers & Operations Research, 132:105281, 2021.
Leo Breiman, Jerome H. Friedman, Richard A. Olshen, and Charles J. Stone. Classification and Regression Trees. Wadsworth International Group, Belmont, CA, 1984.
Cătălin E. Brita, Jacobus G. M. van der Linden, and Emir Demirović. Optimal classification trees for continuous feature data using dynamic programming with branch-and-bound. Proceedings of the AAAI Conference on Artificial Intelligence, 39(11):11131–11139, 2025.
Capital One Recruiting. Capital one data science challenge, 2018. Synthetic card-transaction data. Available at https://github.com/CapitalOneRecruiting/DS.
Ayman Chaouki, Jesse Read, and Albert Bifet. Branches: Efficiently seeking optimal sparse decision trees via AO*. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 7430–7484. PMLR, 2025.
John Clore, Krzysztof J. Cios, Jonathan P. DeShazo, and Beata Strack. Diabetes 130-us hospitals for years 1999–2008, 2014. UCI Machine Learning Repository. DOI: 10.24432/C5230J.
Emir Demirović, Anna Lukina, Emmanuel Hebrard, Jeffrey Chan, James Bailey, Christopher Leckie, Kotagiri Ramamohanarao, and Peter J. Stuckey. MurTree: Optimal decision trees via dynamic programming and search. Journal of Machine Learning Research, 23(26):1–47, 2022.
Emir Demirović, Emmanuel Hebrard, and Louis Jean. Blossom: An anytime algorithm for computing optimal decision trees. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 7533–7562. PMLR, 2023.
Federico D'Onofrio, Giorgio Grani, Marta Monaci, and Laura Palagi. Margin optimal classification trees. Computers & Operations Research, 161:106441, 2024.
Eduard Eiben, Sebastian Ordyniak, Giacomo Paesani, and Stefan Szeider. Learning small decision trees with large domain. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pages 3184–3192, 2023.
FICO. Explainable machine learning challenge: HELOC data set, 2018. FICO Community. Available at https://community.fico.com/s/explainable-machine-learning-challenge.
Murat Firat, Guillaume Crognier, Adriana F. Gabor, C. A. J. Hurkens, and Yingqian Zhang. Column generation based heuristic for learning classification trees. Computers & Operations Research, 116:104866, 2020.
Oktay Günlük, Jayant Kalagnanam, Minhan Li, Matt Menickelly, and Katya Scheinberg. Optimal decision trees for categorical data via integer programming. Journal of Global Optimization, 81(1):233–260, 2021.
Hao Hu, Mohamed Siala, Emmanuel Hebrard, and Marie-José Huguet. Learning optimal decision trees with MaxSAT and its integration in AdaBoost. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, pages 1170–1176, 2020.
Xiyang Hu, Cynthia Rudin, and Margo Seltzer. Optimal sparse decision trees. In Advances in Neural Information Processing Systems, volume 32, pages 7265–7273, 2019.
Kaixun Hua, Jiayang Ren, and Yankai Cao. A scalable deterministic global optimization algorithm for training optimal decision tree. In Advances in Neural Information Processing Systems, volume 35, pages 8347–8359, 2022.
David Ing, Said Jabbour, Lakhdar Sais, and Fabien Delorme. LAD-based feature selection for optimal decision trees and other classifiers. In Proceedings of the 21st International Conference on Principles of Knowledge Representation and Reasoning, pages 867–877, 2024.
Kaggle. Give me some credit, 2011. Kaggle competition. Available at https://www.kaggle.com/c/GiveMeSomeCredit.
Mitchell Keegan, Michael Forbes, Paul Corry, and Mahdi Abolghasemi. Acceleration techniques for learning optimal classification trees with integer programming, 2025. URL https://arxiv.org/abs/2511.18791.
Harold Kiossou and Pierre Schaus. A generic complete anytime beam search for optimal decision tree. In Advances in Intelligent Data Analysis XXIV, volume 16513 of Lecture Notes in Computer Science, pages 97–109. Springer, 2026.
Jimmy Lin, Chudi Zhong, Diane Hu, Cynthia Rudin, and Margo Seltzer. Generalized and scalable optimal sparse decision trees. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 6150–6160. PMLR, 2020.
Enhao Liu, Tengmu Hu, Theodore T. Allen, and Christoph Hermes. Optimal classification trees with leaf-branch and binary constraints. Computers & Operations Research, 166:106629, 2024.
Rahul Mazumder, Xiang Meng, and Haoyue Wang. Quant-BnB: A scalable branch-and-bound method for optimal decision trees with continuous features. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 15255–15277. PMLR, 2022.
Hayden McTavish, Chudi Zhong, Reto Achermann, Ilias Karimalis, Jacques Chen, Cynthia Rudin, and Margo Seltzer. Fast sparse decision tree optimization via reference ensembles. Proceedings of the AAAI Conference on Artificial Intelligence, 36(9):9604–9613, 2022.
Krunal Kishor Patel, Guy Desaulniers, and Andrea Lodi. An improved column-generation-based matheuristic for learning classification trees. Computers & Operations Research, 165:106579, 2024.
Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay. Scikit-learn: Machine learning in python. Journal of Machine Learning Research, 12:2825–2830, 2011.
ProPublica. Data and analysis for “Machine Bias”, 2016. GitHub repository. Available at https://github.com/propublica/compas-analysis.
J. Ross Quinlan. Induction of decision trees. Machine Learning, 1(1):81–106, 1986.
J. Ross Quinlan. C4.5: Programs for Machine Learning. Morgan Kaufmann, San Mateo, CA, 1993.
Cynthia Rudin. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence, 1(5):206–215, 2019.
Salvatore Ruggieri. Complete search for feature selection in decision trees. Journal of Machine Learning Research, 20(104):1–34, 2019.
André Schidler and Stefan Szeider. SAT-based decision tree learning for large data sets. Proceedings of the AAAI Conference on Artificial Intelligence, 35(5):3904–3912, 2021.
Pouya Shati, Eldan Cohen, and Sheila A. McIlraith. SAT-based approach for learning optimal decision trees with non-binary features. In 27th International Conference on Principles and Practice of Constraint Programming, volume 210 of Leibniz International Proceedings in Informatics, pages 50:1–50:16. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2021.
Beata Strack, Jonathan P. DeShazo, Chris Gennings, Juan L. Olmo, Sebastian Ventura, Krzysztof J. Cios, and John N. Clore. Impact of HbA1c measurement on hospital readmission rates: Analysis of 70,000 clinical database patient records. BioMed Research International, 2014:781670, 2014.
Shivaram Subramanian and Wei Sun. Scalable optimal multiway-split decision trees with constraints. Proceedings of the AAAI Conference on Artificial Intelligence, 37(8):9891–9899, 2023.
Colin Sullivan, Mo Tiwari, and Sebastian Thrun. MAPTree: Beating “optimal” decision trees with Bayesian decision trees. Proceedings of the AAAI Conference on Artificial Intelligence, 38(8):9019–9026, 2024.
Jiancheng Tu, Wenqi Fan, and Zhibin Wu. Generalized optimal classification trees: A mixed-integer programming approach, 2026. URL https://arxiv.org/abs/2602.02173.
Jacobus G. M. van der Linden, Mathijs M. de Weerdt, and Emir Demirović. Necessary and sufficient conditions for optimal decision trees using dynamic programming. In Advances in Neural Information Processing Systems, volume 36, pages 9173–9212, 2023.
Hélène Verhaeghe, Siegfried Nijssen, Gilles Pesant, Claude-Guy Quimper, and Pierre Schaus. Learning optimal decision trees using constraint programming. Constraints, 25(3–4):226–250, 2020.
Sicco Verwer and Yingqian Zhang. Learning optimal classification trees using a binary linear program formulation. Proceedings of the AAAI Conference on Artificial Intelligence, 33(1):1625–1632, 2019.
Rui Zhang, Rui Xin, Margo Seltzer, and Cynthia Rudin. Optimal sparse regression trees. Proceedings of the AAAI Conference on Artificial Intelligence, 37(9):11270–11279, 2023.
A Binning Sensitivity
The main experiments discretize each continuous feature using at most 100 quantile bins before cumulative binary encoding. The value 100 is an upper bound rather than a requirement that every feature produce 100 distinct bins. Tied values and repeated quantiles may produce fewer intervals and, consequently, fewer binary thresholds. This resolution defines a common candidate threshold universe for all methods while limiting the threshold information removed before optimization. The 100-bin setting is not assumed to minimize runtime or maximize predictive accuracy. It also serves a different purpose from the candidate capacity : the binning cap determines the feature universe during preprocessing, whereas limits the active feature set during Adaptive STreeD.
We examine the effect of preprocessing resolution by applying Weighted STreeD to representations constructed with maximum quantile bins. Adaptive candidate refinement is not used in this experiment, so the comparison isolates the effect of . We evaluate five data sets at depths , giving 15 configurations for each value of and 75 configurations in total. All runs use the same fixed 80/20 train–test split with random state 42. Using a fixed split avoids variation from repeated data partitioning, but the resulting accuracy differences should be interpreted as descriptive rather than as estimates across random splits.
Each configuration maximizes training accuracy, uses the complete depth-based node budget, and has a nominal runtime limit of 600 seconds. A time-limited run contributes its best feasible incumbent when one is available. Table 3 reports the pooled results, while Figure 6 separates the runtime effect by depth and the test-accuracy effect by data set.
Table 3: Sensitivity of Weighted STreeD to the maximum number of quantile bins
| Max bins | Mean binary feat. | Median runtime (s) | runtime (s) | Limit share | Mean train acc. | Mean test acc. | Median comp. |
|---|---|---|---|---|---|---|---|
| 5 | 100.8 | 1.50 | 7.74 | 6.7% | 0.79291 | 0.78772 | 1.28 |
| 10 | 139.0 | 2.96 | 59.07 | 13.3% | 0.79526 | 0.79065 | 1.07 |
| 20 | 201.6 | 7.30 | 444.87 | 13.3% | 0.79616 | 0.79275 | 1.06 |
| 50 | 344.2 | 33.67 | 606.12 | 26.7% | 0.79663 | 0.79273 | 1.02 |
| 100 | 512.0 | 119.71 | 609.26 | 33.3% | 0.79670 | 0.79256 | 1.01 |
Note. Each row aggregates 15 successful runs (five data sets and depths ) using Weighted STreeD. Binary-feature counts and accuracies are means; runtimes and compression factors are medians. “Limit share” is the fraction of runs with fit runtime at least 599 seconds. The column is the median over the five depth-4 runs. The bin count is a cap; repeated quantiles can yield fewer distinct thresholds.
Increasing the binning resolution substantially raises computational cost. As increases from 5 to 100, the average number of binary features increases from 100.8 to 512.0, corresponding to a increase. The pooled median recorded runtime rises from 1.50 to 119.71 seconds, while the depth-4 median increases from 7.74 to 609.26 seconds. The fraction of runs with a recorded runtime of at least 599 seconds increases from 6.7% to 33.3%.
Recorded runtimes may slightly exceed the nominal 600-second limit because termination checks and result collection introduce a small amount of additional time. The largest depth-4 observations should therefore be interpreted as censored by the computational budget rather than as uncensored runtime measurements. Nevertheless, the measurements indicate that finer binning increases computational cost.
Finer binning affects both sources of dynamic-programming cost. It creates more candidate split features and reduces the number of duplicate projected records. The median compression ratio consequently decreases from 1.28 at to 1.01 at . Increasing the preprocessing resolution therefore expands the feature search space and leaves fewer duplicate records for Weighted STreeD to aggregate.

(a) Median recorded runtime by depth.
(b) Test-accuracy difference relative to B = 100.
Figure 6: Sensitivity to the maximum number of quantile bins. Panel (a) reports the median recorded runtime over the five data sets at each depth; the dashed line marks the nominal 600-second limit. Panel (b) reports the mean test-accuracy difference relative to B = 100 for each data set, averaged over depths 2–4. Positive values favor the indicated binning level. Time-limited runs contribute their best feasible incumbents.
The predictive effect is much smaller and is not monotone. Mean test accuracy increases by approximately 0.50 percentage points from B = 5 to B = 20. The pooled mean test accuracies at B = 20 and B = 100 are 0.79275 and 0.79256, respectively, corresponding to a difference of only 0.02 percentage points in favor of B = 20. Hence, the sensitivity study does not identify 100 bins as a predictive optimum.
Instead, the results support the intended role of Bin100 as a conservative preprocessing cap. It preserves a relatively rich set of candidate thresholds and applies the same encoded representation to all methods. Adaptive candidate refinement is then responsible for controlling the feature dimension considered during optimization. A smaller cap, such as B = 20, provides a computationally attractive alternative and achieves similar predictive performance in this fixed-split experiment, but it defines a coarser candidate universe and may discard thresholds before optimization. Because the analysis uses only one train-test split, broader conclusions about the predictive effect of B would require evaluation across repeated random splits.
B Supplementary Method Details
B.1 Notation
Table 4: Notation used in the weighted unique-data dynamic program.
| Symbol | Meaning | Scope |
|---|---|---|
| Original training set | Fixed input data | |
| Full feature index set | Full post-binarization space | |
| Candidate split-feature set | Fixed within one DP solve | |
| Candidate-set size, | Fixed within one DP solve | |
| Maximum tree depth | Feasible tree class | |
| Maximum number of internal split nodes | Feasible tree class | |
| Remaining depth | DP state variable | |
| Remaining internal-node budget | DP state variable | |
| Set of original records reaching a state | Baseline STreeD | |
| Set of weighted records reaching a state | Weighted STreeD | |
| Number of original records in state | Baseline state | |
| Number of weighted records in state | Weighted state | |
| Record-level information required by the task | Aggregation key | |
| Record 's contribution to the task statistics under tree | Separable-task equivalence | |
| Aggregation key | Fixed candidate set | |
| Weighted unique data induced by | Fixed candidate set | |
| Number of weighted unique records | Fixed candidate set | |
| Conservative path-state bound | Complexity analysis |
Note. The candidate set and post-binarized feature representation remain fixed within each dynamic-programming solve.
B.2 Baseline STreeD Recursion
Algorithm 2 Simplified STreeD Recursion for Fixed Candidate Features
Require: Record set A, candidate features S, remaining depth d, remaining internal-node budget m, cache C
1: if (A, d, m) ∈ C then 2: return C(A, d, m) 3: end if 4: C* ← Leaf(A) 5: T* ← best leaf for A 6: if d = 0 or m = 0 then 7: C(A, d, m) ← (C*, T*) 8: return (C*, T*) 9: end if 10: for f ∈ S do 11: A₀(f) ← {i ∈ A : x_{if} = 0} 12: A₁(f) ← {i ∈ A : x_{if} = 1} 13: if A₀(f) = 0 or A₁(f) = 0 then 14: continue 15: end if 16: for m₀ = 0, ..., m - 1 do 17: m₁ ← m - 1 - m₀ 18: (C₀, T₀) ← STreeD(A₀(f), S, d - 1, m₀, C) 19: (C₁, T₁) ← STreeD(A₁(f), S, d - 1, m₁, C) 20: if C₀ + C₁ < C* then 21: C* ← C₀ + C₁ 22: T* ← (f, T₀, T₁) 23: end if 24: end for 25: end for 26: C(A, d, m) ← (C*, T*) 27: return (C*, T*)
C Supplementary Experimental Results
C.1 Complete Candidate-Capacity Results
Table 5: Sensitivity of Adaptive STreeD to candidate-set capacity
| K | Successful | Runtime | Train acc. | Test acc. | Runtime/K = 20 | Test diff. (pp) |
|---|---|---|---|---|---|---|
| 10 | 150 | 7.95 [2.29-22.30] | 0.788 | -0.127 | ||
| 15 | 150 | 9.29 [2.72-24.74] | 0.897 | -0.088 | ||
| 20 | 150 | 10.48 [3.35-27.44] | 1.000 | 0.000 | ||
| 25 | 150 | 17.99 [4.42-30.66] | 1.110 | 0.027 | ||
| 30 | 150 | 20.89 [6.39-33.48] | 1.241 | 0.039 | ||
| 35 | 149 | 27.45 [8.19-39.61] | 1.563 | 0.064 | ||
| 40 | 144 | 32.03 [11.49-82.55] | 2.433 | 0.122 |
Note. Runtime is the median [interquartile range] in seconds over available configurations. Accuracies are mean sample standard deviation. Runtime ratios and test-accuracy differences are computed within matched blocks relative to K = 20. The reported runtime ratio is the median of within-block ratios and is not the ratio of the pooled median runtimes.
D Proofs
D.1 Proof of Proposition 1
Consider a cached state , where . Under the direct state-scanning model, computing the class counts required by the best leaf costs in the stated conservative accounting. Evaluating the binary candidate splits requires additional work. For each candidate split, the remaining internal-node budget can be divided between the two child subtrees in at most ways, contributing work once the child values are available. The total cost at the state is therefore
O\left(\left|\mathcal{K}\right|+q\right)n_{A}+q m\right).Summing this quantity over all states in gives (3).
To obtain the worst-case bound, consider a nonredundant path of length . Such a path fixes at most distinct binary features and one outcome for each selected feature. The number of possible path descriptions is therefore at most
Summing over gives the path-state bound in (2). Including the possible remaining-depth and remaining-budget values gives at most
cached states. Using and in the per-state cost then gives (4).
For the space bound, a bitset representing a subset of the original records requires machine words. The remaining information stored with a state, including , , and its dynamic-programming value, requires constant space. Summing over all cached states gives (5). The input feature matrix, returned trees, and auxiliary solver statistics are excluded, as stated in the proposition.
D.2 Proof of Proposition 2
For each weighted record , let
be the group of original observations represented by . By construction, . Every observation in has the same projected features, label, and record-level task information. Moreover, any uses only features in , so all observations in the group reach the same leaf and receive the same prediction. Their sufficient-statistic contributions are therefore identical; denote this common vector by . It follows that
Because the groups partition the original data, summing over u gives
Thus, every feasible tree has the same task statistics under the original and weighted representations. The feasible tree class and all tree-only terms are also unchanged. Applying the same, possibly nonlinear, task objective and constraints therefore gives each tree the same objective value and feasibility status in both representations. The two fixed-candidate problems consequently have the same optimal value and the same set of optimal trees.
D.3 Proof of Corollary 1
For a weighted state , let
be the corresponding set of original observations. The weighted class counts in equal the unweighted class counts in . Therefore, the weighted leaf cost in (8) equals the unweighted leaf cost of the corresponding original state.
For every , the split of into and corresponds exactly to the split of into its original observation copies. In particular,
The result now follows by induction on the remaining depth and node budget. When or , both recursions return the same leaf cost. For and , assume that corresponding child states have equal optimal values. The two recursions examine the same split features and the same allocations satisfying . Their child-state values are equal by the induction hypothesis, and their leaf alternatives are also equal. Taking the minimum over the same alternatives therefore gives the same value at the parent state.
Aggregation-preserving bounds and pruning rules do not change this correspondence because they are computed from the same weighted sufficient statistics. Hence, the weighted and unweighted recursions return the same optimal misclassification count over .
D.4 Proof of Proposition 3
At a weighted state , Weighted STreeD scans weighted records. Computing weighted class counts and evaluating the candidate splits require
work. Allocating the remaining internal-node budget between the child subtrees contributes . Summing the resulting per-state cost over gives (11).
The logical path-state bound remains because aggregation changes the record representation but not the candidate features or the possible feature–outcome paths. There are therefore at most
depth- and budget-indexed states under the conservative accounting. Using and gives (12).
For the space bound, a bitset over the weighted records requires machine words, and the remaining information stored with a state requires constant space. Summing over the cached weighted states gives (13). Storage for the weighted input table, returned trees, and auxiliary solver statistics is excluded.
D.5 Proof of Proposition 4
Under the proposition's correspondence assumption, each logical baseline state has a corresponding weighted state . The sample-scanning part of the baseline running time is proportional to
whereas the corresponding term for Weighted STreeD is proportional to
The common factor cancels, giving exactly (14). The budget-allocation terms are not included because the proposition concerns only the sample-scanning component.
Suppose that the compression ratio in each pair of corresponding states is close to the root-level ratio:
Equivalently, . Summing this relation over the corresponding states gives
Substitution into (14) yields (15).
For bitset-based representations, every baseline state uses a bitset over the universe of original records, whereas every weighted state uses a bitset over the universe of weighted records. Including constant state metadata gives the per-state ratio
which is (16). When both and are large, the additive constants are negligible and the ratio approaches .
D.6 Proof of Proposition 5
At iteration , apply (12) with candidate set , candidate-set size , and weighted unique-data size . This directly gives (20).
For ordinary classification with binarized candidate features, there are at most projected feature vectors and possible labels. Hence,
Since ,
Moreover,
Substituting these inequalities into (20) gives the uniform bound (21).
This proposition begins after and have been constructed. It therefore does not include random-forest or CART fitting, projection, or aggregation. Those terms are accounted for separately in (22).
D.7 Proof of Proposition 6
Let
be the event that the selected optimal support has not been covered during the first completed iterations. Since is -measurable,
On , condition (24) implies
Therefore,
Iterating from gives
On , at least one active candidate set contains . The corresponding reduced tree class contains and is a subset of the full-feature tree class. Its optimal score is therefore exactly . By assumption, that reduced problem is solved to certified optimality, and incumbent preservation retains the score through iteration .
On , the baseline assumption gives
Consequently,
which is (25).
D.8 Proof of Corollary 2
For training accuracy, the best constant-leaf tree has score . Algorithm 1 initializes the incumbent with this tree and never replaces the incumbent with a worse solution. Hence,
Since ,
Thus, the baseline condition in Proposition 6 holds with . Substitution into (25) gives (26).
D.9 Verification of the Algorithmic Properties
Algorithm 1 executes at most iterations because its outer loop is indexed by . Its remaining stopping conditions correspond to the explicit tests for the runtime limit, maximum score, full incumbent support, empty proposal block, and patience limit.
The initial candidate set contains at most random-forest-ranked features. In every later iteration, CART proposes at most features, and the active set is updated as . Therefore,
A feasible tree of depth at most and with at most internal nodes uses no more than
distinct split features.
For a fixed active set , Proposition 2 ensures equivalence between the weighted and expanded reduced problems whenever its preservation conditions hold. A certified Weighted STreeD solve therefore returns an optimum over . The certificate is specific to and does not establish optimality over the full feature set.
Finally, the algorithm replaces the incumbent only when
Otherwise, it retains the existing incumbent. The incumbent-score sequence is therefore nondecreasing, and an unsuccessful inner solve does not remove the best feasible tree found previously.