In the world of Explainable AI (XAI), we often focus on the "why" behind a single prediction. But for scientists and engineers, the "how" of the entire model—global feature effects—is often more important. We rely on tools like Partial Dependence Plots (PDP) and Accumulated Local Effects (ALE) to tell us how a feature like "age" or "temperature" affects a model's output across the board.
But what happens if the data shifts slightly, or if we fine-tune the model? Does the explanation stay the same, or does the "big picture" fall apart? A new paper, "On the Robustness of Global Feature Effect Explanations," provides the first rigorous look at the stability of these essential diagnostic tools.
TL;DR
This paper establishes the first theoretical bounds for the robustness of global feature effect explanations (PDP and ALE) against data and model perturbations. Through experiments on real-world datasets, the authors demonstrate that while PDP is generally more stable under data shifts, ALE is surprisingly sensitive to model changes and can sometimes fail basic "sanity checks."
What Problem Does This Paper Address?
While researchers have extensively studied the robustness of local explanations (like SHAP or LIME), global explanations have been largely taken for granted. Global effects are used for scientific discovery in fields like medicine and climate science, where a non-robust explanation could lead to false scientific conclusions.
The authors identify a critical gap: we don't know how much a global explanation changes when the underlying data distribution shifts (data perturbation) or when the model weights are updated (model perturbation). If a small change in data can drastically flip a feature's perceived effect, the explanation isn't just unstable—it's potentially misleading.
Methods
The authors approach the problem by deriving mathematical upper bounds for explanation changes:
- Data Perturbation Bounds: Using Total Variation (TV) distance, they quantify how much PDP and ALE can change when the input data distribution is perturbed. For ALE, they utilize the Lipschitz constant of the model to bound changes based on the model's gradient.
- Model Perturbation Bounds: They relate the robustness of global effects to the robustness of local removal-based attributions. They derive a new bound for ALE based on the infinity norm of the difference between the partial derivatives of the original and perturbed models.
- Adversarial Testing: Beyond theory, they use a genetic algorithm to perform "data poisoning" attacks, intentionally trying to manipulate global explanations to see if they hit the theoretical "worst-case" scenarios.
Datasets
The study utilizes a diverse set of continuous and categorical datasets from the OpenXAI benchmark:
- HELOC: Credit risk prediction.
- Pima: Diabetes risk prediction.
- Synthetic (Gaussian): A controlled environment to test theoretical limits.
- Adult, Credit (German), and Heart: Used specifically for model perturbation tests involving categorical features.
Key Insights and Ideas
- The XOR Trap: The authors use a simple XOR function to show that a feature's global explanation can depend entirely on the distribution of other features. As seen in Figure 1, changing the mean or variance of a secondary feature can completely flip the perceived effect of the primary feature.
- PDP vs. ALE Robustness: PDP (marginal) tends to be more robust to data perturbations than conditional methods. However, ALE's "accumulated" nature means that errors or perturbations at the start of a feature's range can "snowball," making the bound an increasing function of the feature value.
- The Sanity Check Failure: A key finding is that ALE often fails the "model randomization test." Ideally, if you randomize a model's weights, the explanation should change drastically. The authors found that ALE is sometimes less affected by model randomization than PDP, suggesting it may reflect the data distribution more than the actual model logic.
Key Results
- Adversarial Vulnerability: In experiments on the Pima dataset, adversarial attacks were able to push explanation changes very close to the theoretical upper bounds, proving that these explanations are indeed vulnerable to targeted data manipulation.
- Quantitative Gap: The research quantifies the gap between best-case (random noise) and worst-case (adversarial) scenarios, providing a "safety margin" for practitioners using these tools.
- Model Sensitivity: Across six datasets, the authors showed that global effects are generally influenced by model weight perturbations, but the degree of sensitivity varies significantly between PDP, ALE, and conditional plots.
Limitations and Future Work
- Lipschitz Assumption: The theoretical bounds for ALE assume the model is $L$-Lipschitz continuous. This doesn't apply to non-smooth models like Decision Trees or Random Forests, which have infinite gradients at split points.
- Categorical Features: While some experiments included categorical data, the theoretical bounds for data perturbation were derived primarily for continuous features.
- Numerical Approximations: The authors acknowledge that calculating TV distance and conditional distributions is computationally difficult and prone to estimation errors.
- Future Directions: The authors suggest that future work should focus on how feature correlations and interactions specifically impact these robustness bounds, potentially leading to "robust-by-design" explanation methods.
Summary updated