Abstract
This research introduces a mathematically rigorous framework for pruning decision tree ensembles by explicitly incorporating feature acquisition costs (e.g., CPU time or sensor data). By formulating the pruning task as a 0-1 integer program and demonstrating that its linear programming relaxation is exact due to total unimodularity, the authors provide an efficient algorithm for cost-sensitive model optimization. This approach significantly reduces test-time costs while maintaining or improving predictive accuracy across various benchmarks.
Introduction
In practical machine learning deployments, features are rarely free. Acquisition costs can manifest as CPU cycles in high-frequency trading, sensor energy in IoT devices, or expensive medical procedures in healthcare. Traditional pruning techniques focus on model complexity to prevent overfitting but often neglect these heterogeneous "test-time budget" constraints.
The problem is amplified in ensembles like Random Forests. If multiple trees utilize the same expensive feature, the cost is incurred only once per instance. Existing methods typically prune trees in isolation, failing to account for these interdependencies. This work introduces a method to prune an entire ensemble simultaneously, optimizing the global trade-off between accuracy and total feature cost.
Methodology
The proposed framework, Optimally Pruning Decision Tree Ensembles, utilizes a novel optimization strategy:
- Integer Programming Formulation: The pruning task is defined as a 0-1 integer program (IP) aimed at minimizing a weighted sum of misclassification error and total feature cost.
- Feature Sharing Logic: The constraints explicitly model feature sharing. Once a feature is acquired for any tree in the ensemble for a specific test instance, it is considered "free" for all other trees.
- Exact LP Relaxation: A key theoretical contribution is the proof that the constraint matrix is totally unimodular. This ensures that the Linear Programming (LP) relaxation—which is computationally efficient—yields the exact integer solution, bypassing the NP-hardness typically associated with 0-1 IPs.
- Scalability: To manage large-scale models, the authors employ Dantzig-Wolfe decomposition, allowing for parallelized pruning of individual trees coordinated by a master problem.
Experimental Evaluation
The method was evaluated on diverse datasets including MiniBooNE (physics), Forest Covertype (cartography), CIFAR-10 (images), and Sonar/Heart (UCI benchmarks). Initial ensembles were generated using the BudgetRF algorithm.
The results highlight several key advantages:
- Cost Efficiency: On the MiniBooNE dataset, the algorithm reduced average feature cost to approximately 68% of the original ensemble's cost while maintaining the same test error (0.0724).
- Ensemble Superiority: "Ensemble pruning" (ens.pru) consistently outperformed "individual pruning" (ind.pru). For the Heart dataset, ensemble pruning achieved a similar error rate to individual pruning but at roughly 63% of the cost (5.81 vs 9.23).
- Adaptive Behavior: The pruned models act as adaptive rules, utilizing inexpensive features for simple cases and only invoking costly features for difficult instances that initial features could not resolve.
Conclusion
By treating pruning as a global optimization problem and leveraging the property of total unimodularity, this work provides a powerful tool for deploying cost-sensitive machine learning models. While the method currently acts as a post-processing step for pre-trained ensembles, future research may explore integrating this logic directly into the training phase to further optimize initial ensemble generation.
Summary updated