Skip to main content
QUICK REVIEW

[Paper Review] Generalized SHAP: Generating multiple types of explanations in machine learning

Dillon Bowen, Lyle Ungar|arXiv (Cornell University)|Jun 12, 2020
Explainable Artificial Intelligence (XAI)Computer Science38 citations
TL;DR

G-SHAP extends SHAP to compute feature importances for general functions of a model’s output, enabling general classification, intergroup difference, and model failure explanations with demonstrations on Iris, recidivism, and GDP forecasting.

ABSTRACT

Many important questions about a model cannot be answered just by explaining how much each feature contributes to its output. To answer a broader set of questions, we generalize a popular, mathematically well-grounded explanation technique, Shapley Additive Explanations (SHAP). Our new method - Generalized Shapley Additive Explanations (G-SHAP) - produces many additional types of explanations, including: 1) General classification explanations; Why is this sample more likely to belong to one class rather than another? 2) Intergroup differences; Why do our model's predictions differ between groups of observations? 3) Model failure; Why does our model perform poorly on a given sample? We formally define these types of explanations and illustrate their practical use on real data.

Motivation & Objective

  • Motivate the need to explain model behavior beyond plain feature importance by focusing on functions of the model output.
  • Generalize SHAP to compute explanations for broader questions such as class comparison, group differences, and model failure.
  • Formalize a unified framework (G-SHAP) to derive explanations for any function g of the model output.
  • Demonstrate practical use of G-SHAP with real data demonstrating new explanation types.

Proposed method

  • Define a generalized SHAP value: φ_g^j(f) = sum_S⊆{x^1,...,x^p} (|S|!(p-|S|-1)!/p!) [ g(f,S∪{x^j},Ω) − g(f,S,Ω) ] (Equation 2).
  • Instantiate g to produce three explanation types: general classification, intergroup differences, and model failure (with corresponding Ω and d or L as appropriate).
  • For general classification, measure the probability that observations X belong to positive vs negative classes using g that aggregates class probabilities across X and background Z (Equation 3/4).
  • For intergroup differences, measure how outputs differ between groups X0 and X1 using a difference function d and g that compares group means (Equation 5).
  • For model failure, measure loss L over X vs background Z to explain degraded performance (Equation 6).
  • Provide concrete examples and datasets (iris, criminal recidivism, GDP forecasting) to illustrate how G-SHAP reveals feature contributions to non-standard explanations.

Experimental results

Research questions

  • RQ1How can SHAP-like explanations be generalized to explain functions of a model's output beyond individual feature contributions?
  • RQ2What kinds of new explanations (general classification, intergroup differences, model failure) can be derived within a unified G-SHAP framework?
  • RQ3How do these generalized explanations behave on real datasets (e.g., Iris, recidivism, GDP) and what features drive them?
  • RQ4Can G-SHAP reveal biases or failures not captured by standard SHAP analyses?

Key findings

  • G-SHAP enables three new explanation types not cleanly provided by prior methods: general classification, intergroup difference, and model failure explanations.
  • In the Iris example, petal length is the most important feature for distinguishing Versicolour versus Setosa or Virginica, with relative importance differing by comparison.
  • In the intergroup difference example, prior convictions, age, and race most explain the higher predicted recidivism for Black vs White criminals.
  • In the GDP forecasting example, real estate loans as a percent of GDP in 2007-2008 contributed notably to the model's poor 2008-2009 forecast, with a quantified attribution to feature j.
  • The framework supports multiple Ω configurations and can extend to other difference measures (e.g., medians, Wasserstein distance) beyond those shown.

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.