In-Run Data Shapley for Adam Optimizer
Meng Ding, Zeqing Zhang, Di Wang, Lijie Hu
TL;DR
This work demonstrates that data value is intrinsically tied to the optimizer used during training, showing that SGD-based In-Run Shapley proxies poorly reflect true contributions under Adam ($R \approx 0.058$, $\rho \approx 0.046$). It introduces Adam-aware In-Run Data Shapley with a closed-form estimator that accounts for Adam's stateful momentum and variance scaling, and a Linearized Ghost Approximation to enable scalable computation without materializing per-sample gradients. Experiments reveal near-perfect fidelity to ground-truth marginal contributions ($R > 0.99$) and maintain approximately 95% of standard training throughput, while SGD-based baselines underperform in data attribution downstream tasks like semantic source identification and SST-2 pruning. These results establish optimizer-aware data attribution as both theoretically necessary and practically feasible for large-scale adaptive optimization.
Abstract
Reliable data attribution is essential for mitigating bias and reducing computational waste in modern machine learning, with the Shapley value serving as the theoretical gold standard. While recent "In-Run" methods bypass the prohibitive cost of retraining by estimating contributions dynamically, they heavily rely on the linear structure of Stochastic Gradient Descent (SGD) and fail to capture the complex dynamics of adaptive optimizers like Adam. In this work, we demonstrate that data attribution is inherently optimizer-dependent: we show that SGD-based proxies diverge significantly from true contributions under Adam (Pearson $R \approx 0.11$), rendering them ineffective for modern training pipelines. To bridge this gap, we propose Adam-Aware In-Run Data Shapley. We derive a closed-form approximation that restores additivity by redefining utility under a fixed-state assumption and enable scalable computation via a novel Linearized Ghost Approximation. This technique linearizes the variance-dependent scaling term, allowing us to compute pairwise gradient dot-products without materializing per-sample gradients. Extensive experiments show that our method achieves near-perfect fidelity to ground-truth marginal contributions ($R > 0.99$) while retaining $\sim$95\% of standard training throughput. Furthermore, our Adam-aware attribution significantly outperforms SGD-based baselines in data attribution downstream tasks.
