SHAP-based Explanations are Sensitive to Feature Representation

Hyunseung Hwang, Andrew Bell, Joao Fonseca, Venetia Pliatsika, Julia Stoyanovich +1 more
5/13/2025
cs.LGcs.AI

No official code found. Best implementation: Aguno/Shap-Attack (2 stars, last commit 2025-12-09).

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.

View on arXivView PDF

Code Implementations(1)

Aguno/Shap-AttackCommunity100%
22Jupyter NotebookApr 28, 202510 months ago

Similar Papers

Cite this paper

@article{hwang2025shapbased,
  title  = {SHAP-based Explanations are Sensitive to Feature Representation},
  author = {Hyunseung Hwang and Andrew Bell and Joao Fonseca and Venetia Pliatsika and Julia Stoyanovich and Steven Euijong Whang},
  year   = {2025},
  eprint = {2505.08345},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.08345v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.08345.svg)](https://codeofpaper.com/paper/2505.08345)

Discussion