Threading the Needle of On and Off-Manifold Value Functions for Shapley Explanations

Chih-Kuan Yeh, Kuan-Yun Lee, Frederick Liu, Pradeep Kumar Ravikumar · OpenReview

Abstract

A popular explainable AI (XAI) approach to quantify feature importance of a given model is via Shapley values. These Shapley values arose in cooperative games, and hence a critical ingredient to compute these in an XAI context is a so-called value function, that computes the "value" of a subset of features, and which connects machine learning models to cooperative games. There are many possible choices for such value functions, which broadly fall into two categories: on-manifold and off-manifold value functions, which take an observational and an interventional viewpoint respectively. Both these classes however have their respective flaws, where on-manifold value functions violate key axiomatic properties and are computationally expensive, while off-manifold value functions pay less heed to the data manifold and evaluate the model on regions for which it wasn't trained. Thus, there is no consensus on which class of value functions to use. In this paper, we show that in addition to these existing issues, both classes of value functions are prone to adversarial manipulations on low density regions. We formalize the desiderata of value functions that respect both the model and the data manifold in a set of axioms and are robust to perturbation on off-manifold regions, and show that there exists a unique value function that satisfies these axioms, which we term the Joint Baseline value function, and the resulting Shapley value the Joint Baseline Shapley (JBshap), and validate the effectiveness of JBshap in experiments.

Introduction

Explainable AI (XAI) often relies on Shapley values to attribute a model's prediction to its input features. A central challenge in this process is defining the "value function" used to calculate the utility of feature subsets. Currently, the field is divided between two paradigms: off-manifold and on-manifold methods.

Off-manifold methods, such as Baseline Shapley (BShap), evaluate models by perturbing features to a baseline (e.g., masking pixels). This often forces models to predict on out-of-distribution (OOD) data points, making explanations susceptible to adversarial manipulation. Conversely, on-manifold methods, like Conditional Expectation Shapley (CES), marginalize over missing features using the data distribution. While they remain on the data manifold, they are computationally intensive and frequently violate core axioms—such as assigning importance to a feature the model does not use simply because it correlates with an influential one.

This paper identifies a "pick your poison" fallacy in existing literature and introduces Joint Baseline Shapley (JBshap). JBshap threads the needle by respecting both the model's logic and the data's natural structure, offering a robust and efficient alternative.

Methods

The authors propose a new axiomatic framework for value functions, introducing seven axioms—including Linearity, Symmetry, and Set Relevance—that account for both the model $f$ and the data distribution $p$. They prove that a unique value function satisfies these axioms: the Joint Baseline value function, defined as:

$$v^J_{x,f,p}(S) = f(x_S; x'_S)p(x_S; x'_S)$$

where $x_S$ represents features in the coalition, $x'_S$ are baseline features, and $p$ is the joint density. To practically estimate the joint density $p(x)$ for high-dimensional data, the authors utilize Noise-Contrastive Estimation (NCE). This involves training a binary classifier to distinguish real data from masked "noise" images, a process significantly faster than the conditional sampling required by traditional on-manifold methods.

Experimental Results

The effectiveness of JBshap was validated using the UCI Adult Income dataset for tabular robustness and ImageNet for visual saliency.

Adversarial Robustness

In experiments using the UCI Adult dataset, the authors tested robustness against adversarial "hiding" of sensitive features. They created a fine-tuned model designed to obscure its reliance on the "sex" feature. While traditional methods like BShap and CES saw the importance of this feature drop or invert, JBshap remained stable, correctly identifying the underlying model bias.

Global Shapley values for different value functions on the UCI Adult dataset. The importance for the "sex" feature (boxed) is significantly reduced for existing methods after adversarial fine-tuning, while JBshap remains robust.

Visual Precision

On ImageNet, JBshap produced more concentrated and precise saliency maps. By incorporating joint density, JBshap naturally ignores regions where the model has not been trained, focusing on high-information regions that contribute most to both the prediction and the data manifold.

Visualization of Shapley values on ImageNet. JBshap tends to focus on more specific, high-information regions compared to Bshap or CES.

Quantitative benchmarks using deletion curves further confirmed that JBshap more accurately identifies features driving both joint density and model output compared to both on-manifold and off-manifold competitors.

Conclusion

JBshap demonstrates that incorporating joint density into the value function resolves the long-standing trade-off between model and data fidelity. By turning a generative problem into a discriminative OOD detection task, it achieves both computational efficiency and adversarial robustness. Future work may involve refining density estimation techniques and extending this joint axiomatic approach to other attribution methods like Banzhaf values.

Summary updated

BibTeX
@misc{yeh2022threading,
  author = {Chih-Kuan Yeh and Kuan-Yun Lee and Frederick Liu and Pradeep Kumar Ravikumar},
  title = {{Threading the Needle of On and Off-Manifold Value Functions for Shapley Explanations}},
  year = {2022},
  eprint = {2202.11919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.11919},
}
Figure