Using Model-Based Trees with Boosting to Fit Low-Order Functional ANOVA Models

Linwei Hu, Jie Chen, Vijayan N. Nair · DOI

Abstract

Low-order functional ANOVA (fANOVA) models have been rediscovered in the machine learning (ML) community under the guise of inherently interpretable machine learning. Explainable Boosting Machines or EBM (Lou et al. 2013) and GAMI-Net (Yang et al. 2021) are two recently proposed ML algorithms for fitting functional main effects and second-order interactions. We propose a new algorithm, called GAMI-Tree, that is similar to EBM, but has a number of features that lead to better performance. It uses model-based trees as base learners and incorporates a new interaction filtering method that is better at capturing the underlying interactions. In addition, our iterative training method converges to a model with better predictive performance, and the embedded purification ensures that interactions are hierarchically orthogonal to main effects. The algorithm does not need extensive tuning, and our implementation is fast and efficient. We use simulated and real datasets to compare the performance and interpretability of GAMI-Tree with EBM and GAMI-Net.

Introduction

In high-stakes fields like finance or healthcare, "black-box" models such as deep neural networks or standard gradient-boosted trees are often avoided because their decisions are difficult to explain. Researchers typically turn to Generalized Additive Models (GAMs), which are easy to visualize but often sacrifice accuracy by ignoring how variables interact. Existing "interpretable" models that include interactions, such as EBM or GAMI-Net, face three main hurdles: interaction detection limitations, bias from feature correlation, and computational scalability. This paper introduces GAMI-Tree, which evolves the GA2M (Generalized Additive Model plus 2nd-order Interactions) framework through boosted model-based trees and an iterative training process.

Methodology

GAMI-Tree introduces several novel components to the GA2M framework to improve both accuracy and interpretability.

Model-Based Trees (MBTs)

Unlike standard trees that predict a constant value at each leaf, MBTs fit a local linear or spline model within the leaf. This makes the model more parsimonious and the resulting prediction surface much smoother, avoiding the "jagged" surfaces typical of models like EBM. This structure allows for more natural representations of both main effects and interactions.

Main effect tree (left) and interaction effect tree (right) structures in GAMI-Tree.

Iterative Training and Interaction Filtering

Instead of a one-pass approach, GAMI-Tree cycles between fitting main effects and interactions. This iterative process allows the model to correct errors introduced by correlated features, ensuring that importance scores are not biased. The algorithm also utilizes a new filtering method using MBTs that outperforms traditional quadrant-based algorithms, particularly for oscillating or highly non-linear interactions.

Algorithm for fitting interaction effects (FitInt) in GAMI-Tree.

Purification and Efficiency

An embedded purification step ensures "hierarchical orthogonality," meaning interaction terms are purified so they do not contain hidden main effects. This ensures that importance rankings are truly representative of the data's underlying physics. The implementation is highly efficient, using binning and parallelization to handle datasets with up to 10 million observations in roughly 10 minutes.

Experimental Results

The algorithm was evaluated on both synthetic and real-world datasets, including a Bike Sharing dataset and a large-scale Home Lending dataset.

  • Accuracy: GAMI-Tree consistently outperformed EBM across benchmarks. In the Bike Sharing task, it achieved a test MSE of 0.103, beating EBM (0.107) and GAMI-Net (0.119), and coming close to the black-box XGBoost (0.099).
  • Interaction Capture: In simulations with complex sine wave interactions, GAMI-Tree successfully identified all true interactions, while EBM and GAMI-Net missed them due to filtering limitations.
  • Correlation Correction: Iterative training was shown to eliminate "fake" main effects by correctly reassigning importance in correlated datasets.

Conclusion

GAMI-Tree offers a significant advancement in interpretable machine learning by combining the smoothness of splines with the flexibility of boosted trees. Its iterative training and purification steps ensure that the model remains both accurate and truly transparent, even in the presence of correlated features. Future work will explore extending the framework to higher-order interactions.

Summary updated

BibTeX
@misc{hu2022using,
  author = {Linwei Hu and Jie Chen and Vijayan N. Nair},
  title = {{Using Model-Based Trees with Boosting to Fit Low-Order Functional ANOVA Models}},
  year = {2022},
  eprint = {2207.06950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.06950},
}
Figure