Integrating Random Forests and Generalized Linear Models for Improved Accuracy and Interpretability

Abhineet Agarwal, Ana M. Kenney, Yan Shuo Tan, Tiffany M. Tang, Bin Yu
7/4/2023
stat.MEcs.AIcs.LG

Official code: csinva/imodels (1,627 stars, MIT, last commit 2026-04-28). 1 more implementation below.

Abstract

Random forests (RFs) are among the most popular supervised learning algorithms due to their nonlinear flexibility and ease-of-use. However, as black box models, they can only be interpreted via algorithmically-defined feature importance methods, such as Mean Decrease in Impurity (MDI), which have been observed to be highly unstable and have ambiguous scientific meaning. Furthermore, they can perform poorly in the presence of smooth or additive structure. To address this, we reinterpret decision trees and MDI as linear regression and $R^2$ values, respectively, with respect to engineered features associated with the tree's decision splits. This allows us to combine the respective strengths of RFs and generalized linear models in a framework called RF+, which also yields an improved feature importance method we call MDI+. Through extensive data-inspired simulations and real-world datasets, we show that RF+ improves prediction accuracy over RFs and that MDI+ outperforms popular feature importance measures in identifying signal features, often yielding more than a 10% improvement over its closest competitor. In case studies on drug response prediction and breast cancer subtyping, we further show that MDI+ extracts well-established genes with significantly greater stability compared to existing feature importance measures.

View on arXivView PDF

Code Implementations(2)

csinva/imodelsOfficial100%
MIT

Interpretable ML package 🔍 for concise, transparent, and accurate predictive modeling (sklearn-compatible).

1,627145Python, Jupyter NotebookJul 4, 20195 months agoMIT
aiartificial-intelligencebayesian-rule-listdata-scienceexplainable-ai+13 more

Experiments with experimental rule-based models to go along with imodels.

186R, HTMLNov 15, 20217 months ago
aidata-sciencedecision-treesimodelsinterpretability+10 more

Similar Papers

Cite this paper

@article{agarwal2023integrating,
  title  = {Integrating Random Forests and Generalized Linear Models for Improved Accuracy and Interpretability},
  author = {Abhineet Agarwal and Ana M. Kenney and Yan Shuo Tan and Tiffany M. Tang and Bin Yu},
  year   = {2023},
  eprint = {2307.01932},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.01932v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.01932.svg)](https://codeofpaper.com/paper/2307.01932)

Discussion