TL;DR
This paper demonstrates that SHAP (Shapley Additive Explanations), a gold-standard tool for AI explainability, is highly sensitive to seemingly innocuous data engineering choices like feature bucketization and categorical encoding. The authors show that an adversary can exploit this sensitivity to intentionally "hide" the importance of protected features (like age or race) in a model's decision-making process without changing the model itself, posing a significant risk to algorithmic fairness auditing.
What Problem Does This Paper Address?
As AI systems are increasingly deployed in high-stakes domains like lending and healthcare, explainable AI (XAI) tools have become essential for justifying model behavior and surfacing potential discrimination. SHAP is widely used by practitioners and auditors to quantify how much each feature contributes to a specific prediction.
However, most research on "fooling" XAI has focused on manipulating the model or biasing the training data. This paper identifies a critical, overlooked vulnerability: feature representation. In a typical machine learning pipeline, data engineering happens upstream of the model. The authors ask: Can standard preprocessing steps—like grouping ages into bins or merging race categories—drastically change the resulting SHAP explanation? If so, a vendor could potentially "clean up" a biased model's explanation simply by changing how the data is represented to the auditor, a tactic the authors term a data engineering attack.
Methods
The authors investigate this sensitivity through two lenses:
- Sensitivity Analysis: They systematically vary the number and type of buckets (equi-width vs. equi-depth) for continuous features (age) and different merging strategies for categorical features (race). In these experiments, they retrain the model on the new representations to see how SHAP values respond.
- Adversarial Attack: They design a "feature engineering attack" where the model remains fixed, but the representation of the input to the SHAP explainer is manipulated. They use Bayesian Optimization (BO) to find optimal bucket boundaries that minimize the SHAP rank of a protected feature while maintaining high fidelity (ensuring the explanation still accurately reconstructs the model's original prediction).
Datasets
The study utilizes two real-world benchmark datasets from the folktables package, which provides modern alternatives to the classic UCI Adult dataset:
- ACS Income (Virginia, 2018): Used to predict whether an individual's income exceeds $50,000.
- ACS Public Coverage (Virginia, 2018): Used to predict whether an individual is covered by public health insurance.
Key Insights and Ideas
- Representation is Part of the Explanation: SHAP explains the model in the context of its input features. If you change the features' resolution (e.g., by binning), you change the "game" the Shapley values are playing, which can dilute a feature's perceived importance.
- The "Demotion" Effect: Bucketization often acts as a mask. For example, a specific age like "22" might be a strong signal for a model, but when placed in a broad "18-30" bucket, its unique contribution is smoothed out across the group, lowering its SHAP value.
- Strategic Merging: For categorical features like race, merging a high-influence category (e.g., White) with others can effectively "water down" the feature's total importance rank to near zero.
- Vulnerability of Fairness Audits: Because SHAP is used to detect "disparate treatment," the ability to manipulate these rankings means a model could be using a protected attribute heavily, yet the explanation could show that attribute as being unimportant.
Key Results
- Rank Volatility: In the ACS Income dataset, bucketizing age caused its importance rank to shift by as many as 20 positions for some individuals. Even when age was the most important feature (#1 rank), bucketization frequently demoted it to the 3rd or 5th rank.
- Attack Effectiveness: The Bayesian Optimization attack (Figure 8) consistently outperformed standard equi-width bucketization, successfully hiding the importance of age while maintaining over 88% fidelity.
- Race Manipulation: By using a "One-vs-Rest" or combinatorial merging approach for race categories, the authors reduced the average SHAP value of race significantly, demonstrating that how we group identities directly impacts our ability to audit for bias.
Limitations and Future Work
The authors acknowledge several limitations:
- Manual Groupings: The attack on categorical features currently relies on predefined, semantically meaningful groupings. Future work could automate the search through the massive combinatorial space of possible category merges.
- Feature Isolation: The study looked at age and race separately. In reality, features interact (intersectionality), and a more sophisticated attack might manipulate multiple features simultaneously.
- Defense Mechanisms: This paper focuses on exposing the vulnerability. The next step for the research community is to develop robust explanation frameworks or auditing guidelines that account for these upstream data engineering choices.
The core takeaway for practitioners and auditors is clear: Don't just audit the model; audit the entire data pipeline. Seemingly "standard" preprocessing can be the difference between a transparent model and a cleverly obscured one.
Summary updated