Skip to main content
QUICK REVIEW

[Paper Review] Consistent feature attribution for tree ensembles

Scott Lundberg, Su‐In Lee|arXiv (Cornell University)|Jun 19, 2017
Bayesian Modeling and Causal InferenceComputer Science5 references149 citations
TL;DR

The paper shows current tree ensemble feature attribution methods are inconsistent and introduces fast exact Tree SHAP algorithms to compute Shapley-based attributions, integrating into XGBoost to enable fast, consistent explanations and improved supervised clustering.

ABSTRACT

Note that a newer expanded version of this paper is now available at: arXiv:1802.03888 It is critical in many applications to understand what features are important for a model, and why individual predictions were made. For tree ensemble methods these questions are usually answered by attributing importance values to input features, either globally or for a single prediction. Here we show that current feature attribution methods are inconsistent, which means changing the model to rely more on a given feature can actually decrease the importance assigned to that feature. To address this problem we develop fast exact solutions for SHAP (SHapley Additive exPlanation) values, which were recently shown to be the unique additive feature attribution method based on conditional expectations that is both consistent and locally accurate. We integrate these improvements into the latest version of XGBoost, demonstrate the inconsistencies of current methods, and show how using SHAP values results in significantly improved supervised clustering performance. Feature importance values are a key part of understanding widely used models such as gradient boosting trees and random forests, so improvements to them have broad practical implications.

Motivation & Objective

  • Demonstrate that existing feature attribution methods for tree ensembles can be inconsistent and counterintuitive.
  • Motivate and adopt SHAP values as the unique consistent attribution method.
  • Develop fast, exact algorithms (Tree SHAP) to compute SHAP values for tree ensembles.
  • Integrate Tree SHAP into XGBoost and evaluate the impact on prediction explanations.
  • Illustrate the practical benefits of SHAP values through supervised clustering experiments.

Proposed method

  • Link tree ensemble feature attributions with additive feature attribution methods to justify SHAP as the unique consistent approach.
  • Derive exact SHAP value algorithms for tree ensembles that reduce complexity from exponential to O(TLD^2) time.
  • Develop Tree SHAP algorithms including a straightforward O(TL2^M) baseline and a faster O(TLD^2) method for practical usage.
  • Integrate Tree SHAP into XGBoost and demonstrate speed improvements for explanations on large models.

Experimental results

Research questions

  • RQ1Are current feature attribution methods for tree ensembles inconsistent with respect to feature importance when model reliance changes?
  • RQ2Can SHAP values provide a unique, consistent, locally accurate attribution for tree ensembles?
  • RQ3How can SHAP values be computed efficiently for trees and tree ensembles?
  • RQ4What is the practical impact of SHAP-based attributions on model explanations and downstream tasks (e.g., clustering)?

Key findings

  • Current path-based feature attribution methods are inconsistent and can assign lower importance to a feature that has a larger impact on the output.
  • SHAP values are the only consistent, locally accurate additive feature attribution method that satisfies missingness and consistency when using conditional expectations.
  • Tree SHAP reduces SHAP computation from exponential to polynomial time, enabling explanations for large models (O(TL^2) for unbalanced trees, O(TL log^2 L) for balanced trees).
  • Integrating Tree SHAP into XGBoost enables fast, scalable explanations for models with thousands of trees and hundreds of inputs.
  • SHAP-based explanations improve supervised clustering performance compared to traditional path-based attributions in a gene-expression Alzheimer’s study.

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.