Accelerated Shapley Value Approximation for Data Evaluation

Lauren Watson, Zeno Kujawa, Rayna Andreeva, Hao-Tsung Yang, Tariq Elahi, Rik SarkararXiv 2023

Abstract

Data valuation has found various applications in machine learning, such as data filtering, efficient learning and incentives for data sharing. The most popular current approach to data valuation is the Shapley value. While popular for its various applications, Shapley value is computationally expensive even to approximate, as it requires repeated iterations of training models on different subsets of data. In this paper we show that the Shapley value of data points can be approximated more efficiently by leveraging the structural properties of machine learning problems. We derive convergence guarantees on the accuracy of the approximate Shapley value for different learning settings including Stochastic Gradient Descent with convex and non-convex loss functions. Our analysis suggests that in fact models trained on small subsets are more important in the context of data valuation. Based on this idea, we describe $\delta$-Shapley -- a strategy of only using small subsets for the approximation. Experiments show that this approach preserves approximate value and rank of data, while achieving speedup of up to 9.9x. In pre-trained networks the approach is found to bring more efficiency in terms of accurate evaluation using small subsets.

Introduction

In modern machine learning, not all data points contribute equally to a model's performance. Some are high-quality "teachers," while others may be outliers or even malicious. Data valuation aims to quantify the utility of each point, with the Shapley value serving as the gold standard due to its mathematical fairness. However, its computation is notoriously slow, requiring models to be trained on an exponential number of data subsets. Even standard Monte Carlo approximations remain expensive because they frequently sample large, computationally intensive subsets. This paper introduces $\delta$-Shapley, an accelerated method that leverages the stability of machine learning models to ignore redundant large subsets, achieving up to a 9.9x speedup.

Methodology: $\delta$-Shapley and Algorithmic Stability

The proposed $\delta$-Shapley method is rooted in the concept of Algorithmic Stability. The authors demonstrate that for stable algorithms like SGD, the marginal contribution of a single data point vanishes as the training set size increases.

  1. Stability-Based Sampling: The informativeness of a data point is highest when added to smaller subsets. As the dataset grows, adding one more point has a negligible impact on the final model.
  2. The "Goldilocks Zone": $\delta$-Shapley focuses on medium-sized coalitions. It ignores very large coalitions where marginal gains are near zero and avoids very small coalitions (e.g., size < 10) where SGD results are dominated by random initialization noise rather than data signals.
  3. Theoretical Guarantees: Using Bernstein inequalities, the authors derive bounds on the number of samples needed at different subset "layers" to reach target confidence levels, ensuring the approximation remains robust even under the stochasticity of modern training.

Experimental Results

The method was evaluated on standard benchmarks including Adult (census income), Digits, and Binary-FashionMNIST (BFM).

High Fidelity and Speed

$\delta$-Shapley maintains high correlation with true Shapley values while significantly reducing compute time. As shown in Figure 1, Spearman correlation coefficients ($\rho$) typically range between 0.84 and 0.98 across various datasets. For instance, on the Adult dataset, the computation time was reduced from 1072s to 148s while maintaining a correlation of 0.88.

Correlation and runtime comparison between $\delta$-Shapley and Monte Carlo SVs across different datasets.

Effective Data Filtering

A key application of data valuation is identifying and removing high-value data to observe the impact on model performance. In these "data removal" experiments, $\delta$-Shapley successfully identified critical points. Removing top-ranked points identified by the method caused a much sharper drop in test accuracy compared to random removal, demonstrating that the approximation preserves the ranking utility of the original Shapley value.

Data removal experiment on Binary-FashionMNIST (BFM) showing test accuracy drop as high-value data is removed.

Conclusion and Future Work

$\delta$-Shapley offers a practical path toward scalable data valuation by focusing on the most informative subset sizes. While the method is highly effective, particularly in fine-tuning scenarios with pre-trained models, challenges remain in automatically determining the optimal bounds for the "Goldilocks zone" for arbitrary models. Future research may also explore the privacy implications of how SGD randomness affects these valuations.

Summary updated

BibTeX
@misc{watson2023accelerated,
  author = {Lauren Watson and Zeno Kujawa and Rayna Andreeva and Hao-Tsung Yang and Tariq Elahi and Rik Sarkar},
  title = {{Accelerated Shapley Value Approximation for Data Evaluation}},
  year = {2023},
  eprint = {2311.05346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.05346},
}
Figure