Abstract
Tree ensembles like AdaBoost and XGBoost are highly accurate but often grow to massive sizes, leading to slow inference and high memory consumption. This paper introduces FIPE (Functionally-Identical Pruning of Ensembles), a novel algorithm that prunes these ensembles to a fraction of their original size without altering their prediction function for any possible input. By framing pruning as a rigorous optimization problem with a mathematical guarantee of faithfulness, FIPE provides a "free lunch" for model compression: smaller, faster models with zero drop in accuracy.
Introduction
Tree ensembles, including Random Forests and Gradient Boosted Trees, are the state-of-the-art for tabular data. However, achieving peak performance often requires hundreds or thousands of trees, making models memory-heavy and slow during inference—a significant bottleneck for edge devices like microcontrollers.
Traditionally, pruning these models requires a trade-off: removing trees reduces model size but typically degrades accuracy and generalization. There is usually no guarantee that a conventionally pruned model will behave like the original on unseen data. FIPE addresses this gap by asking: Can we compress a tree ensemble such that its decision boundary remains mathematically identical to the original model across the entire feature space?
Methodology: The FIPE Algorithm
FIPE frames pruning as an optimization problem rather than a heuristic culling of weak trees. The algorithm iterates between two core components to ensure functional identity:
- The Pruner: This component solves an optimization problem to find the smallest subset of reweighted trees that matches the original model's predictions on a finite set of data points. The authors propose an exact $L_0$-norm version for minimal size and a scalable $L_1$-norm approximation using linear programming.
- The Separation Oracle: Acting as an adversary, the Oracle uses Mixed-Integer Linear Programming (MILP) to search the continuous feature space for any point where the pruned and original models disagree.
The process follows a loop: the Pruner proposes a compressed model, and the Oracle attempts to find a counterfactual point where predictions differ. If such a point is found, it is added to the Pruner's dataset for the next iteration. If the Oracle cannot find a disagreeing point, the algorithm terminates, providing a mathematical certification that the pruned model is functionally identical to the original everywhere.
Experimental Evaluation
The authors evaluated FIPE on 11 standard tabular datasets (e.g., Breast-Cancer, COMPAS, ELEC2, Spambase) featuring diverse sizes and feature types. These benchmarks tested the algorithm's ability to handle continuous, binary, and categorical data under various conditions. The algorithm required surprisingly few iterations; even for large ensembles, FIPE could certify equivalence in fewer than 200 calls to the Oracle.
Key Insights and Results
The study yielded several critical insights into the nature of boosted ensembles:
- Redundancy in Boosting: A massive percentage of base learners in boosted ensembles are superfluous. FIPE successfully pruned AdaBoost ensembles by up to 90%. For instance, on the ELEC2 dataset, an ensemble of 50 trees was reduced to just 2 without changing the decision boundary.
- The Role of Late Bloomers: Trees added late in the boosting process often appear to have low predictive power. However, FIPE reveals that after pruning, these late-stage trees can be assigned significant weights, allowing many earlier trees to be discarded.
- Efficiency of $L_1$ Approximation: The $L_1$-norm approximation provides nearly the same sparsity as the $L_0$-norm but runs significantly faster, enabling the method to scale to large datasets.
- Superiority over Heuristics: Traditional non-faithful pruning methods (e.g., IMD, DREP) suffer massive accuracy drops when forced to the same compression levels as FIPE. FIPE maintains 100% faithfulness and original test accuracy across all datasets.
Conclusion and Future Work
FIPE demonstrates that functional identity is a powerful constraint for model compression. While the current approach is highly effective, the authors note limitations regarding the scalability of the MILP oracle for extremely deep trees. Future work may explore "subspace faithfulness"—enforcing identity only on the manifold of plausible observations—to achieve even more aggressive compression, or using approximate oracles to trade strict guarantees for increased speed.
Summary updated