Researchers from Zhejiang University presented a novel approach to data valuation at a 2023 conference, addressing a fundamental limitation in how we quantify the worth of training data in machine learning. Their method, Probabilistic Shapley (P-Shapley), moves beyond simple binary accuracy to consider the confidence and reliability of model predictions.
The Problem: Coarseness in Data Valuation
In the emerging "data-as-labor" economy, identifying the most valuable training points is crucial for fair compensation and model debugging. The Shapley Value is widely regarded as the gold standard for this task because it provides a mathematically "fair" distribution of a model's total utility among its training samples.
However, traditional Shapley-based methods typically define "utility" as simple prediction accuracy on a validation set. This approach suffers from two major flaws:
- Coarseness: Accuracy-based metrics treat a correct prediction with 90% confidence the same as one with 60% confidence.
- Heterogeneity of Improvement: Increasing a model's confidence from 90% to 100% is often more difficult and valuable than moving from 60% to 70%. Standard metrics fail to reward this "high-level" improvement.
Methodology: P-Shapley and Confidence Calibration
P-Shapley addresses these issues by shifting the utility function from discrete accuracy to continuous probability. Instead of a binary 0 or 1, the utility function sums the actual predicted probabilities for the correct classes.
To account for the varying value of confidence gains, the authors incorporate non-linear activation functions ($AF$) into the utility calculation. They evaluated four specific functions: ReLU, Square ($x^2$), Mish, and Swish.
To handle the computational complexity of Shapley values (which is NP-hard), the authors employ a Truncated Monte Carlo (TMC) approximation. This method stops evaluating a data permutation once the marginal utility gain falls below a specific threshold, significantly reducing compute time.
Experimental Evaluation
The researchers tested P-Shapley on four diverse datasets: Diabetes and Wind (tabular), and Fashion-MNIST and CIFAR-10 (image-based). For the image datasets, features were extracted using a pre-trained ResNet-18 and reduced via Principal Component Analysis (PCA).
The primary evaluation metric was the "High-value Data Removal" test. In this setup, the most "valuable" data points (as identified by each method) are removed first. A superior valuation method should cause the model's performance to drop more rapidly.
Key Results and Insights
As shown in the results below, P-Shapley variants (particularly those using Square, Mish, or Swish) consistently outperformed standard TMC-Shapley and Beta Shapley across all tested datasets.
Key takeaways from the experiments include:
- Confidence as a Proxy for Trust: By valuing data that increases confidence, P-Shapley identifies samples that make a model more reliable, not just more accurate.
- The Power of Non-Linearity: Non-linear functions like Square or Swish act as a "difficulty filter," assigning higher value to data points that help the model achieve high-certainty predictions.
- Smoothness and Stability: The authors found that Swish often performed best due to its "soft clipping" nature, which produces a smoother utility function and more stable data values compared to ReLU.
Conclusion and Future Work
P-Shapley represents a significant step toward more nuanced data valuation. By leveraging probabilistic outputs, it provides a more granular and calibrated assessment of data quality. While the current study focused on binary classification with logistic regression, the framework is theoretically applicable to any probabilistic classifier. Future research may extend this to multi-class problems, regression tasks, and larger-scale deep learning models where the computational cost of Shapley estimation remains a challenge.
Summary updated