SHAP-based Explanations are Sensitive to Feature Representation
Hyunseung Hwang, Andrew Bell, Joao Fonseca, Venetia Pliatsika, Julia Stoyanovich, Steven Euijong Whang
TL;DR
The paper investigates how SHAP-based local explanations for tabular data are influenced by upstream feature representations, revealing that simple data engineering like bucketization and categorical encoding can drastically alter reported feature importance and rankings. It demonstrates a Bayes-optimized attack to manipulate SHAP ranks while preserving model fidelity, illustrating practical risks for audits and fairness assessments. The work argues for robust explanation frameworks that account for data preprocessing and advocates governance practices for data engineering in explainability. Overall, it highlights a critical vulnerability in widely used post-hoc explanations and outlines directions to improve transparency and auditability in AI systems.
Abstract
Local feature-based explanations are a key component of the XAI toolkit. These explanations compute feature importance values relative to an ``interpretable'' feature representation. In tabular data, feature values themselves are often considered interpretable. This paper examines the impact of data engineering choices on local feature-based explanations. We demonstrate that simple, common data engineering techniques, such as representing age with a histogram or encoding race in a specific way, can manipulate feature importance as determined by popular methods like SHAP. Notably, the sensitivity of explanations to feature representation can be exploited by adversaries to obscure issues like discrimination. While the intuition behind these results is straightforward, their systematic exploration has been lacking. Previous work has focused on adversarial attacks on feature-based explainers by biasing data or manipulating models. To the best of our knowledge, this is the first study demonstrating that explainers can be misled by standard, seemingly innocuous data engineering techniques.
