Skip to main content
QUICK REVIEW

[Paper Review] SHAFF: Fast and consistent SHApley eFfect estimates via random Forests

Clément Bénard, Gérard Biau|arXiv (Cornell University)|May 25, 2021
Explainable Artificial Intelligence (XAI)Computer Science29 references16 citations
TL;DR

SHAFF is a fast and consistent method for estimating Shapley effects using random forests, leveraging importance sampling and projected forests to avoid retraining models. It achieves high accuracy even with dependent variables and is the first such method proven consistent without model retraining.

ABSTRACT

Interpretability of learning algorithms is crucial for applications involving critical decisions, and variable importance is one of the main interpretation tools. Shapley effects are now widely used to interpret both tree ensembles and neural networks, as they can efficiently handle dependence and interactions in the data, as opposed to most other variable importance measures. However, estimating Shapley effects is a challenging task, because of the computational complexity and the conditional expectation estimates. Accordingly, existing Shapley algorithms have flaws: a costly running time, or a bias when input variables are dependent. Therefore, we introduce SHAFF, SHApley eFfects via random Forests, a fast and accurate Shapley effect estimate, even when input variables are dependent. We show SHAFF efficiency through both a theoretical analysis of its consistency, and the practical performance improvements over competitors with extensive experiments. An implementation of SHAFF in C++ and R is available online.

Motivation & Objective

  • Address the computational infeasibility of exact Shapley effect estimation due to exponential complexity in high-dimensional settings.
  • Overcome the bias in existing Shapley estimation methods when input variables are dependent.
  • Develop a fast, consistent, and practical algorithm for estimating Shapley effects tailored to random forests.
  • Enable accurate variable importance assessment for interpretable machine learning, especially in high-stakes applications like healthcare.
  • Provide a framework that supports both global and local interpretation through extension to SHAP values.

Proposed method

  • Use importance sampling to prioritize subsets of variables along random forest paths, reducing the number of required conditional variance estimates.
  • Apply the projected forest algorithm to efficiently compute conditional expectations given any subset of variables without retraining.
  • Leverage the structure of random forests to estimate $\mathbb{V}[\mathbb{E}[Y|\mathbf{X}^{(U)}]]$ for all subsets $U$ with a single forest fit.
  • Integrate combinatorial weights $\frac{1}{p} \binom{p-1}{|U|}^{-1}$ into the estimation to ensure unbiased averaging over all subsets.
  • Prove consistency of the estimator under mild regularity conditions, establishing theoretical guarantees without model retraining.
  • Extend the method to categorical variables by using ordered category splits based on conditional mean, as implemented in ranger.

Experimental results

Research questions

  • RQ1Can Shapley effect estimation be made both fast and consistent for dependent input variables using random forests?
  • RQ2Does avoiding repeated model retraining in Shapley estimation preserve accuracy and consistency?
  • RQ3How does SHAFF compare to state-of-the-art methods like TreeSHAP, SAGE, and pMC in terms of error and runtime?
  • RQ4Can SHAFF accurately estimate Shapley effects for categorical variables with many categories, where MDI is known to be biased?
  • RQ5Is the projected forest approach sufficient to enable fast and accurate conditional expectation estimation across all variable subsets?

Key findings

  • SHAFF achieves the lowest cumulative absolute error (0.19) among all methods in the pMC/Forest experiment, outperforming TreeSHAP and SAGE.
  • In the categorical variable experiment, SHAFF correctly estimates zero Shapley effects for $X^{(5)}$ and $X^{(6)}$, while MDI and SAGE show strong bias toward high-cardinality variables.
  • SHAFF maintains low error (0.29) in the pMC/Projected-RF experiment, demonstrating robustness in conditional expectation estimation.
  • The algorithm runs significantly faster than competitors, with a single forest fit required, unlike methods requiring multiple retraining steps.
  • SHAFF is the first Shapley estimation method proven consistent without retraining multiple models, under mild assumptions.
  • The method extends naturally to SHAP values due to the availability of conditional predictions via projected forests.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.