Skip to main content
QUICK REVIEW

[Paper Review] groupShapley: Efficient prediction explanation with Shapley values for feature groups

Martin Jullum, Annabelle Redelmeier|arXiv (Cornell University)|Jun 23, 2021
Explainable Artificial Intelligence (XAI)Computer Science11 citations
TL;DR

This paper introduces groupShapley, a method that computes Shapley values for grouped features to reduce computational complexity and improve interpretability in machine learning explanations. By aggregating features into meaningful groups—such as demographic, vehicle, or driving history categories—it enables efficient, accurate, and intuitive prediction explanations even with hundreds of features, while preserving theoretical properties under specific conditions.

ABSTRACT

Shapley values has established itself as one of the most appropriate and theoretically sound frameworks for explaining predictions from complex machine learning models. The popularity of Shapley values in the explanation setting is probably due to its unique theoretical properties. The main drawback with Shapley values, however, is that its computational complexity grows exponentially in the number of input features, making it unfeasible in many real world situations where there could be hundreds or thousands of features. Furthermore, with many (dependent) features, presenting/visualizing and interpreting the computed Shapley values also becomes challenging. The present paper introduces groupShapley: a conceptually simple approach for dealing with the aforementioned bottlenecks. The idea is to group the features, for example by type or dependence, and then compute and present Shapley values for these groups instead of for all individual features. Reducing hundreds or thousands of features to half a dozen or so, makes precise computations practically feasible and the presentation and knowledge extraction greatly simplified. We prove that under certain conditions, groupShapley is equivalent to summing the feature-wise Shapley values within each feature group. Moreover, we provide a simulation study exemplifying the differences when these conditions are not met. We illustrate the usability of the approach in a real world car insurance example, where groupShapley is used to provide simple and intuitive explanations.

Motivation & Objective

  • Address the exponential computational complexity of Shapley values in high-dimensional machine learning models with hundreds or thousands of features.
  • Overcome challenges in interpreting individual Shapley values when features are dependent or numerous.
  • Provide a computationally feasible and conceptually simple method for local model explanation that maintains theoretical soundness.
  • Enable intuitive, group-based explanations that are easier to visualize and communicate in real-world applications.
  • Demonstrate the method’s utility in complex, real-world datasets with mixed feature types and dependencies.

Proposed method

  • Group features into meaningful categories based on domain knowledge or dependence structure (e.g., personal info, car details, driving history).
  • Compute Shapley values for each group instead of individual features, reducing the number of required computations from exponential to manageable levels.
  • Use the conditional expectation-based contribution function $ v(\mathcal{S}) = \mathbb{E}[f(\bm{x}) \mid \bm{x}_{\mathcal{S}} = \bm{x}^*_{\mathcal{S}}] $ to ensure proper accounting for feature dependencies.
  • Prove that groupShapley equals the sum of individual Shapley values within a group when features are exchangeable or independent within groups.
  • Apply the method using conditional inference trees to estimate conditional expectations in the presence of mixed continuous, discrete, and categorical features.
  • Implement the approach in the R package `shapr` (development version) for practical use in real-world applications.

Experimental results

Research questions

  • RQ1Can grouping features preserve the theoretical properties of Shapley values while drastically reducing computational cost?
  • RQ2Under what conditions is the groupShapley value equivalent to the sum of individual Shapley values within a group?
  • RQ3How does groupShapley perform in practice when feature dependencies violate the conditions for equivalence?
  • RQ4Can groupShapley produce more interpretable and actionable explanations in real-world machine learning applications compared to individual feature Shapley values?
  • RQ5How effective is groupShapley in handling high-dimensional, mixed-type data with missing values and complex dependencies?

Key findings

  • groupShapley provides a computationally feasible alternative to individual feature Shapley values when the number of features exceeds a few dozen.
  • Under conditions of feature exchangeability or independence within groups, groupShapley is mathematically equivalent to summing individual Shapley values across features in the group.
  • In simulations with dependent features, groupShapley values diverge from the sum of individual values, highlighting the importance of group structure in interpretation.
  • In a real-world car insurance dataset with 23 features, groupShapley successfully produced intuitive, group-based explanations that aligned with domain expectations (e.g., track record and personal info groups had strong impacts).
  • The method effectively handles mixed feature types, missing data (via predictive mean matching), and complex dependencies, as demonstrated in a random forest model with AUC of 0.815.
  • The groupShapley approach enables clear visualization and interpretation of model predictions, as shown in Figure 4, where group contributions for four individuals were consistently aligned with real-world expectations.

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.