Skip to main content
QUICK REVIEW

[Paper Review] SHAP for additively modeled features in a boosted trees model

M. Mayer|arXiv (Cornell University)|Jul 29, 2022
Model Reduction and Neural NetworksPhysics and Astronomy8 citations
TL;DR

This paper demonstrates that in gradient boosted trees models with additively modeled features—achieved via tree depth constraints or interaction constraints—SHAP dependence plots are mathematically equivalent to partial dependence plots (PDPs) up to a vertical shift. This equivalence allows SHAP plots to be interpreted as ceteris paribus effects, enabling direct use of SHAP plots for global model interpretation without loss of interpretability, particularly when features are modeled additively.

ABSTRACT

An important technique to explore a black-box machine learning (ML) model is called SHAP (SHapley Additive exPlanation). SHAP values decompose predictions into contributions of the features in a fair way. We will show that for a boosted trees model with some or all features being additively modeled, the SHAP dependence plot of such a feature corresponds to its partial dependence plot up to a vertical shift. We illustrate the result with XGBoost.

Motivation & Objective

  • To investigate the relationship between SHAP dependence plots and partial dependence plots (PDPs) in gradient boosted trees models with additively modeled features.
  • To determine whether SHAP dependence plots can serve as valid, interpretable alternatives to PDPs under additive modeling conditions.
  • To validate the theoretical equivalence between SHAP and PDPs in practical settings using XGBoost and real-world insurance data.
  • To provide guidance on when and how to interpret SHAP dependence plots as ceteris paribus effect plots in additive models.

Proposed method

  • Theoretical analysis using Shapley values and cooperative game theory to establish the mathematical equivalence between SHAP values and PDPs under additive feature modeling.
  • Application of TreeSHAP algorithm for efficient computation of SHAP values in XGBoost models with controlled tree depth and interaction constraints.
  • Modeling features as additive by setting max_depth = 1 (fully additive) or using interaction constraints (partly additive), ensuring no interaction effects for selected features.
  • Empirical comparison of SHAP dependence plots and PDPs using a subset of an insurance claims dataset from OpenML (ID 42876).
  • Vertical shifting of SHAP plots to align with PDPs for direct visual and quantitative comparison.
  • Use of Gamma regression with log link in XGBoost to model ultimate claim amounts, with model training and interpretation on 80% of data and evaluation on 1,000 sampled rows.

Experimental results

Research questions

  • RQ1Under what conditions do SHAP dependence plots for a feature in a boosted trees model coincide with its partial dependence plot?
  • RQ2Can SHAP dependence plots be interpreted as ceteris paribus effect plots when features are modeled additively in gradient boosted trees?
  • RQ3How does the presence of interaction constraints or tree depth limits affect the relationship between SHAP and PDP plots?
  • RQ4To what extent do SHAP dependence plots preserve the interpretability of PDPs in additive models?

Key findings

  • For features modeled additively in a gradient boosted trees model, the SHAP dependence plot is mathematically equivalent to the partial dependence plot up to a vertical shift.
  • In the fully additive model (max_depth = 1), the SHAP dependence plots for all features are perfectly parallel to their corresponding PDPs, confirming the theoretical equivalence.
  • In the partly additive model with interaction constraints, only the additively modeled features (DateNum and Female) show SHAP plots parallel to their PDPs, while other features exhibit scattered patterns indicating interaction effects.
  • The vertical shift between SHAP and PDP plots is consistent and does not affect the shape or interpretation of the effect, allowing direct use of SHAP plots as interpretable effect visualizations.
  • The effect of being female on the log expected ultimate claim amount is estimated at +0.32 (8.85 – 8.53), which is consistent across both SHAP and PDP plots in the additive model.
  • The correspondence between SHAP and PDP plots holds only for features that are truly additive; features with interaction effects show divergent patterns in SHAP dependence plots, indicating non-additive behavior.

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.