Privacy Risks of Explaining Machine Learning Models

Reza Shokri, Martin Strobel, Yair ZickarXiv 2019

Abstract

Explainable AI (XAI) is increasingly used to provide transparency in machine learning models, yet the privacy implications of these explanations remain under-explored. This paper demonstrates that model explanations can act as a side-channel for leaking sensitive training data. We evaluate gradient-based, perturbation-based, and example-based explanations, showing that an adversary can exploit these outputs to perform membership inference and training data reconstruction. Our results reveal that explanation variance is a highly effective signal for identifying training set members, particularly in high-dimensional settings. We conclude that a fundamental trade-off exists between model transparency and data privacy, necessitating the development of privacy-preserving explanation methods.

1. Introduction

The push for trustworthy AI has made model transparency a priority, often mandated by regulations such as the GDPR's "right to explanation." Explainable AI (XAI) techniques aim to provide insights into model decision-making by highlighting influential features or identifying representative training examples. However, since these explanations are derived from models trained on private data, they may inadvertently encode and disclose sensitive information. This research investigates whether providing explanations creates a vulnerability that adversaries can exploit to determine if a specific individual's data was used in training (Membership Inference) or to recover raw training records (Reconstruction).

2. Methodology

The study evaluates three primary categories of XAI techniques:

  • Gradient-based Explanations: Methods such as Saliency Maps, Integrated Gradients, and Layer-wise Relevance Propagation (LRP) that use internal model gradients to identify influential input features. The authors propose a threshold-based attack using the variance of these explanation vectors as a membership signal.
  • Perturbation-based Explanations: Techniques like LIME and SmoothGrad that probe the model's behavior by observing its response to noisy versions of the input.
  • Example-based Explanations: Methods based on influence functions that identify specific training points that most heavily influenced a given prediction.

To simulate realistic adversarial scenarios, the researchers employ Shadow Models. These are "copycat" models trained on data from similar distributions to the target model, used to find optimal attack thresholds or to train attack networks.

3. Privacy Vulnerabilities in Explanations

A core finding of this research is the Variance Signal. During the training process, loss minimization tends to stabilize the model around training points, leading to low explanation variance for members. In contrast, non-members are more likely to reside near decision boundaries where gradients are steeper and more volatile, resulting in higher variance.

Comparison of threshold-based and network-based membership inference attacks using gradient explanation variance.

As shown in Figure 1, both simple thresholding and more complex neural network-based attacks can exploit this signal. Furthermore, the Curse of Dimensionality exacerbates this leakage; in high-dimensional, sparse datasets, the correlation between explanation variance and membership becomes significantly stronger.

Additionally, the study identifies a Minority Vulnerability. Outliers and minority groups in the training data are at higher risk because the model must "memorize" these rare points to classify them correctly, leaving a larger footprint in the resulting explanations. Example-based explanations are particularly dangerous in this regard, as they often use training points to explain their own predictions, making membership inference trivial.

4. Experimental Evaluation

The researchers evaluated these attacks across a diverse range of benchmarks, including tabular datasets (Purchase, Texas Hospital, UCI Adult) and image datasets (CIFAR-10, CIFAR-100).

As illustrated in Figure 3, attacks using explanation variance ($Var(\nabla c(\vec{x}))$) frequently outperform random guessing and, in tabular datasets like Purchase and Texas, rival the effectiveness of attacks based on full prediction probabilities. While gradient-based attacks were less effective on image datasets like CIFAR—likely due to high inherent image variance masking the membership signal—the risk remains substantial for other data types.

In the case of example-based explanations, the authors developed an iterative algorithm capable of reconstructing nearly 100% of a high-dimensional dataset. While perturbation-based methods like LIME showed more resilience to membership inference, the authors suggest this may be due to their reliance on out-of-distribution samples, which can decrease the fidelity or truthfulness of the explanation itself.

5. Conclusion

This work highlights a fundamental tension between the transparency of machine learning models and the privacy of their underlying training data. The "right to explanation" may inadvertently conflict with data protection goals if implemented without privacy considerations. The findings suggest that there is a trade-off between the quality (fidelity) of an explanation and the privacy of the data. Future work must focus on developing privacy-preserving XAI techniques, perhaps by integrating Differential Privacy, to provide human-understandable insights without crossing the line into data disclosure.

Summary updated

BibTeX
@misc{shokri2019privacy,
  author = {Reza Shokri and Martin Strobel and Yair Zick},
  title = {{Privacy Risks of Explaining Machine Learning Models}},
  year = {2019},
  eprint = {1907.00164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.00164},
}
Figure