TL;DR
CS-Shapley introduces a class-aware value function for data valuation, moving beyond traditional methods that rely on global accuracy. By distinguishing between how a data point contributes to its own class versus others, it more effectively identifies high-quality and noisy data. Furthermore, these valuations can be computed on simple models and successfully transferred to complex neural networks, saving significant computational resources.
What Problem Does This Paper Address?
In the growing field of "Data-Centric AI," practitioners frequently ask: Which training examples are actually helping my model? To answer this, researchers often use Shapley values—a concept from cooperative game theory that assigns a "fair" value to each player (data point) based on its marginal contribution to the team (the dataset).
The standard approach defines a data point's "contribution" as the change in the model's overall predictive accuracy. However, the authors of CS-Shapley point out a major flaw in this logic: global accuracy is a blunt instrument.
A data point might be "harmful" to its own class (perhaps it's mislabeled or an outlier) but still result in the same global accuracy as a "helpful" point because of how it shifts the decision boundary for other classes. Standard data valuation methods treat these two points as identical, failing to catch noisy data that subtly degrades class-specific performance.
The CS-Shapley Method
The core innovation of this paper is the Class-wise Value Function. Instead of looking at total accuracy, CS-Shapley evaluates a data point $i$ (belonging to class $y_i$) using a function that balances two distinct components:
- In-class Accuracy: How much does this point improve the model's performance on its own class?
- Out-of-class Accuracy: How does it affect all other classes?
The proposed value function takes the form:
$$v_{y_i}(S) = \text{accuracy}_{\text{in-class}} \cdot e^{\text{accuracy}_{\text{out-of-class}}}$$
Here, in-class accuracy is the primary driver of value, while out-of-class accuracy acts as a "discounting factor." If a point helps its own class but destroys performance on others, its overall value is penalized.
Theoretical Justification: The authors mathematically prove that this specific functional form is essentially the unique choice that satisfies two intuitive properties:
- Priority of In-class Accuracy: Positive in-class performance is always prioritized over perfect out-of-class performance if the in-class performance is zero.
- In-class Value Additivity: The value should be additive across subsets of the target class.
To make this computationally feasible—since exact Shapley values require $2^n$ model retrains—the authors utilize a truncated Monte Carlo sampling algorithm.
Key Insights and Results
The authors evaluated CS-Shapley across nine diverse benchmark datasets (including CIFAR10, MNIST, Click, and Covertype) and four primary classifiers (Logistic Regression, SVM, KNN, and Gradient Boosting).
1. High-Value Data Removal
If a valuation method correctly identifies the "best" data points, removing those points should cause model performance to crater. CS-Shapley consistently caused a steeper drop in accuracy than competitors like TMC-Shapley or Beta Shapley. For example, on the Phoneme dataset using Logistic Regression, removing top data points identified by CS-Shapley achieved a weighted accuracy drop of 0.154, dwarfing TMC-Shapley’s 0.009.
2. Noisy Label Detection
When 20% of labels were intentionally flipped, CS-Shapley was significantly better at identifying these "harmful" points. In terms of Area Under the Curve (AUC) for noisy label detection, CS-Shapley outperformed baselines in nearly every dataset/classifier combination. On the Click dataset, for instance, it hit an 0.816 AUC versus TMC’s 0.689.
3. The Power of Transferability
One of the biggest hurdles for Shapley-based valuation is the computational cost for large models like Deep Neural Networks. The authors found that data values calculated using a "cheap" model (like Logistic Regression) are highly correlated with those of a Multi-Layer Perceptron (MLP). This suggests practitioners can value data for expensive models using lightweight proxies.
Limitations and Future Work
While highly effective, CS-Shapley has a few limitations:
- Classification Only: The current framework is strictly designed for classification tasks where class labels provide the necessary structure for the value function. Extending this "class-wise" logic to continuous targets in regression remains an open challenge.
- Sampling Sensitivity: In complex multi-class settings (like MNIST-10), the performance gap between CS-Shapley and baselines was narrower. This suggests that the method might require more sophisticated sampling of the "out-of-class environment" to maintain its edge as the number of classes grows.
Summary updated