Feature Inference Attack on Shapley Values

Xinjian Luo, Yangfan Jiang, Xiaokui Xiao

TL;DR

This paper reveals a significant privacy vulnerability in Shapley value-based model interpretability methods, commonly used by MLaaS providers. The authors demonstrate that it's possible to reconstruct private model inputs using only their Shapley value explanations, posing a threat to user privacy.

What Problem Does This Paper Address?

Machine learning models, especially in high-stakes domains like finance, are often "black boxes." To build trust and enable understanding, interpretability methods are crucial. Shapley values are a popular choice for explaining individual predictions, offering theoretically sound insights. However, while interpretability is gaining traction, its privacy implications, particularly for Shapley values, have been largely overlooked. This paper addresses this gap by investigating whether the explanations generated by Shapley values can inadvertently leak sensitive information about the original private data used to train or query the model.

Methods

The paper introduces two distinct "feature inference" attack strategies:

  • Adversary 1: Attack with Auxiliary Dataset: This adversary has access to a dataset similar to the target data (an "auxiliary dataset") and can query the MLaaS platform for predictions and Shapley value explanations. They train a separate "attack model" (a multi-layer perceptron) to learn the mapping from Shapley values back to the original input features. This is akin to learning an inverse function.
  • Adversary 2: Attack with Data Independence: This is a more challenging scenario where the adversary has no auxiliary dataset and only black-box access to the MLaaS platform. They exploit the observation that important features, which have a strong influence on model predictions, also tend to have a strong correlation with their corresponding Shapley values. The attack approximates the black-box model using a Generalized Additive Model (GAM) and then uses linear interpolation on randomly generated data to reconstruct important features. Theoretical bounds are provided using Chebyshev's and Hoeffding's inequalities to estimate the reconstruction error.

Datasets

The experiments utilize a variety of datasets:

  • Real-world datasets: Adult, Bank Marketing, Credit Card Clients, Diabetes 130-US Hospitals, IDA 2016 Challenge, and Insurance Company Benchmark. These datasets cover diverse prediction tasks.
  • Synthetic datasets: Three synthetic datasets were generated to specifically evaluate the impact of feature correlations on attack performance.

The datasets were split into training, testing (used as auxiliary data for Adversary 1), and validation sets.

Key Insights and Ideas

  • Shapley values are not inherently private: Despite their theoretical appeal, Shapley values can leak information about the original inputs, contradicting the assumption that explanations are purely for understanding model behavior.
  • Two distinct attack models capture different threat scenarios: The paper effectively models both an attacker with some prior knowledge (auxiliary data) and a more constrained attacker with no prior knowledge, demonstrating the broad applicability of the threat.
  • Feature importance is directly linked to privacy risk: Features that are more influential to the model's prediction are also more vulnerable to reconstruction, as their Shapley values contain more discernible information.
  • Existing defenses are insufficient: Standard privacy-preserving techniques like differential privacy are not directly applicable to this problem because they often aim to protect training data, not inference-time explanations.

Key Results

  • Successful reconstruction: Both attack strategies demonstrated the ability to reconstruct private features.
  • Adversary 1 could reconstruct private features with an average deviation of around 10% from the ground truth.
  • Adversary 2 could reconstruct at least 30% of features with an average deviation of around 14%.
  • Platform vulnerability: The attacks were effective across leading MLaaS platforms, including Google Cloud, Microsoft Azure, and IBM aix360.
  • Model dependency: Neural Networks (NNs) were found to be the most vulnerable to these attacks, followed by SVMs, while ensemble models (RF, GBDT) showed slightly more resilience. This is attributed to the smoother decision boundaries of NNs and the complexity of ensemble models.
  • Query efficiency: The attacks achieved significant reconstruction accuracy with a relatively small number of queries (e.g., 100), making them practical for real-world adversaries.
  • Robustness to sampling errors: The attacks remained effective even when Shapley values were computed with sampling errors, highlighting their practical applicability.

Limitations and Future Work

  • Limitations:
    • Adversary 2's attack is more effective on "important" features, meaning less influential features are harder to reconstruct.
  • The effectiveness of attacks on ensemble models is lower compared to NNs and SVMs due to their complex decision boundaries.
  • Quantization of Shapley values, a potential defense, can harm model utility by making different inputs produce the same explanation.
  • Dropout in NNs, surprisingly, improved attack accuracies in some cases by smoothing decision boundaries, making them more predictable for the attacker.
  • Future Work:
    • The authors emphasize the necessity of developing privacy-preserving model interpretability methods.
  • Future research should focus on achieving a better trade-off between utility and privacy for Shapley value explanations.
  • Exploring defenses that specifically target the information leakage from Shapley values, rather than general model privacy, is crucial.

Summary updated

BibTeX
@inproceedings{luo2022feature,
  author = {Xinjian Luo and Yangfan Jiang and Xiaokui Xiao},
  title = {{Feature Inference Attack on Shapley Values}},
  booktitle = {CCS},
  year = {2022},
  doi = {10.1145/3548606.3560573},
}
Figure