TL;DR
Calculating how much an individual data point contributes to a machine learning model’s success—its "Data Shapley" value—usually requires retraining your model thousands of times, taking hours or days for a single dataset. GenSHAP flips this script by turning data valuation into a transferable, zero-shot prediction task: by converting wildly different datasets into standardized relational graphs, a single pre-trained neural network can estimate the value of data points in a brand-new dataset in roughly one second.
What Problem Does This Paper Address?
Imagine running a kitchen and trying to figure out the exact value of a pinch of salt by cooking every possible combination of ingredients with and without it. That is essentially Data Shapley, a game-theoretic framework for scoring how helpful (or harmful) each training sample is to a machine learning model. Knowing these scores lets you weed out mislabeled data, curate better training sets, and fairly compensate data contributors.
The catch? Exact calculation scales exponentially ($\mathcal{O}(2^N)$) because you have to evaluate subsets and retrain models endlessly. Even Monte Carlo sampling approximations require thousands of model retrainings from scratch for every single new dataset. Prior attempts to train neural networks to predict these values directly relied on tabular features, failing to capture the intricate web of interactions between data points or generalize across completely different domains. The authors ask: can we train one universal model on historical datasets that instantly predicts Data Shapley values on unseen datasets, regardless of their feature dimensions or domain?
Methods
To build a universal predictor, the authors had to solve two puzzles: datasets have completely incompatible raw features (e.g., pixel intensities vs. medical records), and a data point’s value depends entirely on how it interacts with other points.
Here is how GenSHAP tackles both:
- Relation-based Dataset Representation (RDR): Instead of looking at raw features, RDR looks at geometry. It computes pairwise Euclidean distances between all samples in a dataset, turns them into multi-scale Gaussian-kernel similarity matrices, and extracts the top singular components via Singular Value Decomposition (SVD). By blending these geometric distances with a label-consistency matrix (do two points share a label?), every dataset—no matter how many raw features it originally had—is mapped into a unified, rotation-invariant graph of fixed-dimension node embeddings.
- Hybrid GIN-Transformer Architecture: Data valuation is framed as node-level regression on this dataset graph. Parallel branches of Graph Isomorphism Networks (GIN) capture local, neighborhood-level sample interactions, while Transformers use self-attention to capture global, dataset-wide dependencies. These are concatenated with auxiliary features (like gradient statistics and KNN label heterogeneity) and passed to an MLP to output the Shapley estimates.
- Scale-Invariant KDE Loss: Raw Shapley values vary wildly with dataset size. The authors normalize training targets so their average equals 1, and apply Kernel Density Estimation (KDE) weighting to the loss function so the network learns core valuation patterns rather than overfitting to noisy dataset-specific outliers.
- GenSHAP-S (Stochastic Fusion): For tasks needing extra precision, this variant injects a tiny budget of actual sampled marginal contributions (evaluating the base model on a few small subsets) directly into the final MLP alongside the graph embeddings.
Datasets
To train the universal model (specifically targeting Logistic Regression and RBF-kernel SVMs as base learners), the authors compiled a historical corpus of 100 classification tasks drawn from public repositories including scikit-learn, TensorFlow, OpenML, and UCI. Multi-class problems were sampled into 2-to-5-way classification tasks of roughly 800 to 1,000 samples each, labeled using high-budget Permutation Shapley (5,000 permutations) as reference values.
For zero-shot evaluation, they held out five completely source-disjoint datasets spanning tabular and image domains: Iris, Vehicle, Characters, STL10, and Volkert.
Key Insights and Ideas
- Geometry is a universal language for data: You don't need to understand what raw features "mean" to value a data point. How close a sample sits to its neighbors, and whether its label agrees with theirs, provides enough structural signal to transfer valuation knowledge from tabular data to images.
- Probing beats brute-force approximating: Classical sampling methods need massive budgets to converge on a sum. GenSHAP-S shows that a tiny budget of subset evaluations doesn't need to approximate the sum directly—it can act as a "probe" feature that tells the graph network how a point behaves in context, bridging pure amortised speed and high-budget accuracy.
Key Results
GenSHAP delivers dramatic speedups while staying faithful to reference Shapley estimates:
- Hours to Seconds: On STL10, classical TMC Shapley takes 9,895 seconds (~2.75 hours) and Owen Shapley takes 143,653 seconds (~40 hours). GenSHAP completes end-to-end valuation (including graph construction) in 1.45 seconds, with the GPU neural forward pass taking less than 0.03 seconds. GenSHAP-S finishes in 1,041 seconds—roughly 10x faster than TMC.
- Approximation Fidelity: GenSHAP beats the tabular learning baseline (MLPbV) in Mean Squared Error (MSE) on 4 out of 5 datasets, while GenSHAP-S beats MLPbV on all 5 (e.g., cutting MSE on STL10 from $8.77 \times 10^{-5}$ down to $3.3 \times 10^{-7}$).
- Downstream Utility: In data addition/removal benchmarks and noisy label detection (flipping 10% of STL10 labels), GenSHAP identifies ~75% of corrupted labels after inspecting 50% of the data, closely tracking computationally heavy baselines. GenSHAP-S even outperforms Owen Shapley at the 30% inspection mark.
Limitations and Future Work
While the authors note that dedicated discussions of limitations are deferred to Appendix F (which is not included in the main text), several scope boundaries are evident from the methodology and complexity analysis:
- Quadratic/Cubic Preprocessing Scaling: Constructing pairwise distance matrices, running full SVD ($\mathcal{O}(|\mathcal{C}|N^3)$), and computing all-to-all Transformer attention ($\mathcal{O}(N^2)$) works smoothly for ~1,000 samples, though scaling to massive datasets with millions of rows will require structural approximations.
- Algorithm-Specific Training: A universal predictor $f_\Theta$ is trained for a specific learning algorithm $\mathcal{A}$ (like Logistic Regression or SVM) on classification tasks, meaning evaluating a fundamentally different model class or regression task requires training a corresponding predictor.
Summary updated