Abstract
Masking some input variables of a deep neural network (DNN) and computing output changes on the masked input sample represent a typical way to compute attributions of input variables in the sample. People usually mask an input variable using its baseline value. However, there is no theory to examine whether baseline value faithfully represents the absence of an input variable, i.e., removing all signals from the input variable. Fortunately, recent studies show that the inference score of a DNN can be strictly disentangled into a set of causal patterns (or concepts) encoded by the DNN. Therefore, we propose to use causal patterns to examine the faithfulness of baseline values. More crucially, it is proven that causal patterns can be explained as the elementary rationale of the Shapley value. Furthermore, we propose a method to learn optimal baseline values, and experimental results have demonstrated its effectiveness.
Introduction
To understand why a Deep Neural Network (DNN) made a specific prediction, researchers often use Shapley values—a method from game theory that assigns "credit" to each input feature. To calculate these, one must observe how the model's output changes when certain features are "absent."
However, representing the "absence" of a feature in a digital input is non-trivial. Usually, researchers use a baseline value: they might turn a pixel black (zero-baseline), use the average color of all images (mean-baseline), or blur the area. The problem is that there is no theoretical guarantee that these baselines actually represent "nothingness." For example, masking a face in an image with a black square might cause the DNN to see "a weird black square"—a new feature in itself—rather than "an absent face." This "blind faith" in baselines can lead to misleading attributions and a lack of trust in AI explanations.
Methodology: Causal Patterns and Optimal Baselines
The authors propose moving away from human intuition toward the internal logic of the DNN using three main pillars:
- Causal Patterns: Recent theory shows that a DNN’s output can be decomposed into a set of "causal patterns" (or Harsanyi dividends). These are essentially "AND" relationships between variables (e.g., "Feature A AND Feature B must both be present to trigger this effect").
- Occam’s Razor for Baselines: The authors argue that the "correct" baseline should result in the simplest possible explanation. If a baseline is incorrect, a single high-order interaction (a complex concept) gets "shattered" into an exponential number of redundant, low-order patterns.
- Optimization: Since checking every possible combination of features is computationally impossible ($2^n$), they develop an efficient approximation. They propose two loss functions ($L_{Shapley}$ and $L_{marginal}$) that penalize the strength of low-order interactions. By minimizing these losses, the model is forced to find baseline values that eliminate as much signal as possible without creating new artifacts.
Experimental Evaluation
The researchers validated their method across a variety of domains, including synthetic functions (where ground truth is known), image data (MNIST, CIFAR-10), and tabular data (UCI Census Income, South German Credit).
Key Results
- Superior Faithfulness: On MNIST, the $R$ metric (measuring the ratio of remaining original signals to newly introduced "noise") for the proposed method was 0.2185, significantly better than the Zero-baseline (1.1736) or Mean-baseline (0.3043).
- High Accuracy: On synthetic functions, the learned baselines reached over 98% accuracy in identifying the true baseline.
- Intuitive Explanations: In the Income dataset, standard SHAP (using mean baselines) often prioritized "marital status" over "occupation." The proposed method identified "occupation" as a primary driver, aligning better with real-world logic and providing a less noisy attribution map.
Discussion and Insights
A key insight is the "Shattering" Effect: using an incorrect baseline causes the model's logic to appear much more complicated than it is. A single "clean" concept becomes a mess of redundant patterns. Furthermore, the authors show that "out-of-distribution" (OOD) concerns are nuanced; a value that looks strange to a human might actually be the most "silent" value for the network's internal filters.
Crucially, the paper proves that causal patterns are the "elementary building blocks" of Shapley values, providing a solid theoretical bridge between interaction theory and feature attribution.
Limitations and Future Work
While effective, learning optimal baselines requires an optimization step for each model/dataset, which is more computationally intensive than using constant values. Additionally, in complex functions, a variable might have multiple "equivalent" baseline values, leading to slight variations. Scaling this approach to massive foundation models like large Transformers will require further optimizations in sampling strategies to handle the vast number of input variables.
Summary updated