Towards Efficient Data Valuation Based on the Shapley Value

Ruoxi Jia, David Dao, Boxin Wang, Frances Ann Hubis, Nick Hynes, Nezihe Merve Gürel, Bo Li, Ce Zhang, Dawn Song, Costas J. Spanos

Abstract

This paper addresses the "how much is my data worth?" problem by adapting the Shapley Value—a gold-standard fairness metric from game theory—to machine learning. The authors introduce a suite of algorithms, including group testing and compressive sensing approaches, that reduce the computational cost of data valuation from exponential or high-degree polynomial time to near-linear complexity.

Introduction: The Challenge of Data Valuation

In the era of "data as the new oil," we lack a principled way to price individual data contributions. Whether it's a hospital sharing patient records for a diagnostic AI or a user contributing to a social media recommendation engine, we need a fair way to distribute profits or compensate for data usage.

The Shapley Value (SV) is the ideal candidate because it is the only method that satisfies key fairness properties, such as ensuring that identical contributors receive equal pay. However, calculating the exact SV for $N$ data points requires evaluating a model on every possible subset of data—an $O(2^N)$ nightmare. Even previous approximations required $O(N^2 \log N)$ evaluations, which is still too slow for modern datasets with millions of points.

The data valuation and profit allocation framework in a machine learning ecosystem.

Proposed Methods for Efficiency

The authors propose four distinct paths to achieve near-linear efficiency:

  1. Group Testing-Based Approach: Inspired by medical screening, this method tests "pools" of data points together. By smartly designing these pools, they can estimate the differences in value between pairs of users, reducing complexity to $O(N(\log N)^2)$.
  2. Compressive Permutation Sampling: The authors observed that in many datasets, only a few "hero" data points drive model performance (sparsity). They apply compressive sensing to recover the SV using even fewer samples—down to $O(N \log \log N)$ for incrementally trainable models.
  3. Stable Learning Algorithms: They prove that if a learning algorithm is "stable" (removing one point doesn't change the model much), data values tend to be uniform, allowing for a simple uniform division of profit.
  4. Influence Functions: For large-scale models where retraining is impossible, they use a gradient-based heuristic to estimate how much the loss would change if a point were removed, bypassing the need to retrain the model entirely.

Experimental Results and Key Insights

The researchers evaluated their methods across standard benchmarks including MNIST and a "Dog-vs-Fish" ImageNet subset.

Comparison of runtime across different data valuation methods as a function of dataset size.

Key Results

  • Massive Speedups: As shown in the runtime analysis, the group testing method outperformed baseline permutation sampling by several orders of magnitude on larger datasets.
  • Sample Efficiency: On MNIST, the compressive sampling method reached low approximation error with significantly fewer permutations than the baseline.
  • Fairness vs. Heuristics: While the "Largest-S" influence function heuristic is the fastest, it cannot satisfy the "Group Rationality" and "Additivity" properties of the true Shapley Value, highlighting a trade-off between speed and theoretical fairness.

Key Insights

  • Data Value is Sparse: A crucial empirical observation is that most data points have a Shapley Value near the average, while only a tiny fraction are highly influential. This sparsity makes compressive sensing highly effective.
  • Privacy vs. Value: The paper highlights a "privacy-value tradeoff," where adding noise for differential privacy decreases data utility, directly reflected in a lower Shapley Value.
  • Adversarial Value: Interestingly, adversarial examples become more valuable to a model as the testing environment becomes more adversarial, as they are essential for robust training.

Limitations and Future Work

While this work significantly reduces the complexity of data valuation, challenges remain. Proving stability for complex models like Deep Neural Networks (DNNs) is difficult, and the influence function approach lacks the provable error bounds of the group testing methods. Scaling to billions of points remains a goal for future optimization.

Summary updated

BibTeX
@inproceedings{jia2019towards,
  author = {Ruoxi Jia and David Dao and Boxin Wang and Frances Ann Hubis and Nick Hynes and Nezihe Merve Gürel and Bo Li and Ce Zhang and Dawn Song and Costas J. Spanos},
  title = {{Towards Efficient Data Valuation Based on the Shapley Value}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure