Tree ensemble models, such as XGBoost and Random Forests, are the gold standard for predictive performance on tabular data. However, they are frequently criticized as "black boxes" due to their complexity, often comprising hundreds of deep trees that defy human comprehension. This research demonstrates that by constraining tree structure and applying a functional ANOVA decomposition, these ensembles can be transformed into inherently interpretable models that match or exceed the performance of state-of-the-art explainable boosting machines (EBMs).
Bridging the Interpretability Gap
Interpretability in machine learning typically falls into two categories: post-hoc explanations (like SHAP or LIME), which approximate a model's behavior but may be unfaithful to its internal logic, and inherently interpretable models (like Generalized Additive Models or GAMs), which are transparent but often sacrifice predictive power.
This paper proposes a middle ground: making tree ensembles "interpretable by design." By limiting trees to shallow depths (e.g., depth 2 or 3) and using a mathematical framework to unpack them, the authors show that ensembles can be both powerful and transparent.
Methodology: Opening the Black Box
The proposed pipeline involves three critical steps to ensure the resulting model is both accurate and understandable:
- Aggregation and Functional ANOVA: The ensemble is represented as a sum of leaf nodes. By grouping nodes that share split variables, the model is decomposed into a global intercept, main effects (single variables), and interactions (pairs or triplets). This is a faithful transformation; the sum of these parts exactly equals the original model's prediction.
- Purification: To ensure visualizations are mathematically sound and unique, a purification algorithm is applied. This prevents main effects from being "hidden" within interaction terms, ensuring each component represents a distinct contribution.
- Attribution: The authors prove that for shallow tree ensembles, their feature contribution calculation is exactly equivalent to the Shapley value, but it can be computed significantly more efficiently.
To further refine the model, the authors suggest structural constraints like monotonicity and a Hybrid Pruning strategy. This strategy combines Lasso and Forward-Backward Effect Selection to remove redundant effects, resulting in a "parsimonious" model that is easier for humans to audit.
Key Insights and Results
The Power of Shallow Trees
A major finding is that ensembles of shallow trees (depth 2 or 3) often perform as well as deep trees on tabular data. A depth-1 ensemble is mathematically equivalent to a GAM, while a depth-2 ensemble (XGB-2) is equivalent to a GAM with pairwise interactions (GA2M). These pairwise interactions are easily visualized using 2D heatmaps, providing a clear view of how variables interact.
Performance and Parsimony
On the Friedman benchmark dataset, XGB-2 achieved a test RMSE of 0.509, significantly outperforming the popular EBM (0.603). Furthermore, the pruning algorithm proved highly effective at "denoising" model logic. In experiments with the BikeSharing dataset, pruning reduced the model to just 8 main effects and a few interactions with negligible loss in accuracy.
Robustness to Constraints
Testing on the TaiwanCredit dataset showed that enforcing monotonicity and limiting bins (to prevent "jumpy" functions) resulted in a test AUC of 0.772—nearly identical to the unconstrained XGB-2 (0.774). This proves that interpretability and domain-specific constraints do not have to come at the cost of accuracy.
Conclusion
By treating tree ensembles as functional ANOVA decompositions, we can move beyond post-hoc approximations toward models that are inherently interpretable. While high-order interactions (depth > 3) remain a challenge for visualization, the use of shallow trees combined with rigorous purification and pruning offers a robust path for deploying high-performance, transparent models in critical domains.
Summary updated