Differentially Private Shapley Values for Data Evaluation

Lauren Watson, Rayna Andreeva, Hao-Tsung Yang, Rik SarkararXiv 2022

Abstract

The Shapley value has been proposed as a solution to many applications in machine learning, including for equitable valuation of data. Shapley values are computationally expensive and involve the entire dataset. The query for a point's Shapley value can also compromise the statistical privacy of other data points. We observe that in machine learning problems such as empirical risk minimization, and in many learning algorithms (such as those with uniform stability), a diminishing returns property holds, where marginal benefit per data point decreases rapidly with data sample size. Based on this property, we propose a new stratified approximation method called the Layered Shapley Algorithm. We prove that this method operates on small ($O(\text{polylog}(n))$) random samples of data and small sized ($O(\log n)$) coalitions to achieve the results with guaranteed probabilistic accuracy, and can be modified to incorporate differential privacy. Experimental results show that the algorithm correctly identifies high-value data points that improve validation accuracy, and that the differentially private evaluations preserve approximate ranking of data.

Introduction

In the burgeoning era of data marketplaces, determining the fair value of individual data contributions is a critical challenge. Game theory provides a "fair" answer through Shapley values, which account for a data point's contribution across all possible subsets (coalitions) of a dataset. However, calculating exact Shapley values is #P-complete, and standard approximations often require $O(n \log n)$ model evaluations, which is prohibitively expensive for large datasets. Furthermore, calculating these values can inadvertently leak sensitive information about the rest of the dataset.

The Layered Shapley Algorithm

The core insight of this research is the diminishing marginal gains property found in stable learning algorithms (like regularized logistic regression). A single data point typically has a high impact when added to a small group, but its marginal benefit vanishes as the dataset grows, decreasing at a rate of roughly $O(1/m)$ for a coalition of size $m$.

Leveraging this, the authors propose the Layered Shapley Algorithm, a stratified approach that:

  • Stratifies coalitions into "layers" based on their size.
  • Samples small coalitions heavily, where the most significant marginal changes occur.
  • Samples large coalitions sparsely, as their impact is guaranteed to be minimal.

This method operates on $O(\text{polylog}(n))$ random samples and coalitions of size $O(\log n)$, making it significantly faster than traditional Monte Carlo approximations.

Privacy-Preserving Valuation

To protect data privacy, the algorithm incorporates Differential Privacy (DP) via the Laplace Mechanism. Because the Layered Shapley Algorithm only needs to access a small fraction of the total data to achieve a high-quality estimate, it benefits from privacy amplification by sampling. This allows the system to provide formal $\epsilon$-differential privacy guarantees without requiring the high levels of artificial noise that typically degrade the utility of DP systems.

Experimental Evaluation

The researchers evaluated the algorithm on binary classification tasks using the Adult, Diabetes, and Synthetic datasets.

Experimental results across Adult, Diabetes, and Synthetic datasets. The top row (a-c) shows prediction accuracy when high-value points are removed; the bottom row (d-f) shows the effect of removing low-value points. Layered-Shapley and its private variant effectively identify high-value data, as evidenced by the sharp accuracy drops in the top row.

As shown in Figure 2, the Layered Shapley Algorithm (blue) and its private variant (orange) successfully identify high-value data points. In the "high-value removal" experiments (top row), removing points with high Shapley values caused a much sharper drop in model accuracy than removing points at random (red dotted).

Crucially, the differentially private evaluations preserved the approximate ranking of data. The Spearman Rank Correlation ($\rho$) between private and non-private values remained high, reaching 0.89 for the Diabetes dataset. This indicates that the algorithm remains effective for fair compensation even when privacy constraints are applied.

Conclusion and Future Work

The Layered Shapley Algorithm offers a scalable, private solution for data valuation in machine learning. While the theoretical bounds currently rely on the property of uniform stability—common in linear models but harder to guarantee for deep neural networks—the synergy between efficiency and privacy demonstrated here provides a robust foundation for future data marketplaces. Extending these formal guarantees to complex deep learning models remains an active area for future research.

Summary updated

BibTeX
@misc{watson2022differentially,
  author = {Lauren Watson and Rayna Andreeva and Hao-Tsung Yang and Rik Sarkar},
  title = {{Differentially Private Shapley Values for Data Evaluation}},
  year = {2022},
  eprint = {2206.00511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.00511},
}
Figure