TL;DR
While the popular TRAK algorithm for data attribution is highly effective in practice, this paper reveals that its core approximations introduce massive absolute errors. However, TRAK succeeds because it preserves the relative ranking of data points, reliably distinguishing highly influential training samples from irrelevant noise due to a large natural separation in true influence magnitudes.
What Problem Does This Paper Address?
Data attribution answers a fundamental question in machine learning: Which training data points caused my model to make this specific prediction? Knowing this helps researchers detect mislabeled data, understand model biases, and improve data efficiency.
The gold standard for data attribution is Leave-One-Out (LOO) cross-validation, which requires retraining a model completely after removing a specific training point. For modern deep learning models with billions of parameters, this is computationally impossible. To solve this, researchers use approximation algorithms like TRAK (TRAining Data Attribution to K-&-Features). While TRAK works exceptionally well empirically, we haven't historically understood why or when its approximations hold up theoretically. This paper provides the first systematic theoretical analysis of TRAK to uncover the math behind its practical success.
Methods
The authors analyze TRAK under a high-dimensional regime where the sample size ($n$), feature dimension ($p$), and parameter count ($d$) are all large. They break down TRAK into its three constituent approximation steps and mathematically analyze the error introduced by each:
- Linearization: Approximating the nonlinear neural network with a linear surrogate (Taylor expansion) around the empirical risk minimizer.
- Random Projection: Reducing the dimensionality of the gradients from $d$ to a much smaller subspace $k$ using a random matrix to save memory and compute.
- Approximate Leave-One-Out (ALO): Using an analytical formula to estimate the effect of removing a data point without actually retraining the model.
The authors prove theoretical upper and lower bounds for the errors at each step and validate their theory using both synthetic simulations (multi-class classification) and real-world data.
Datasets
The paper evaluates its theoretical claims using:
- Simulated Data: Synthetic datasets generated for binary classification, Poisson regression, and multi-class classification tasks.
- CIFAR-10: A standard image dataset. To make computing the true ground-truth influence computationally tractable for comparison, the authors downsampled the images to $8 \times 8 \times 3$ pixels and trained a multinomial logistic regression model. They also evaluated a binary subset (CIFAR-2).
Key Insights and Ideas
- The "Imperfect" Absolute Error: Both the linearization and random projection steps introduce substantial absolute quantitative errors. If you look at the raw influence values computed by TRAK, they are far from the true values.
- The "Preserved" Rankings: Despite getting the absolute numbers wrong, TRAK gets the relative order right. If training point A is significantly more influential than training point B in reality, TRAK will almost always show that A is more influential than B.
- The Magnitude Separation Gap: Why are rankings preserved despite huge errors? The authors show that there is a massive natural gap in magnitude between the true influence of related data points versus unrelated data points. This large separation acts as a buffer, preventing approximation errors from scrambling the top rankings.
- ALO is Innocent: The Approximate Leave-One-Out step introduces negligible error. The vast majority of TRAK's errors stem from linearization and random projection.
- The Projection Bottleneck: Random projection compresses the signal. If the number of projections $k$ is too small, the distinction between influential and non-influential data points vanishes. The authors establish a strict lower bound for $k$ to ensure tracking success: $k \gg d / \|\beta^*\|^2$.
Key Results
In multi-class classification simulations, the authors demonstrated a remarkably high correlation ($\rho > 0.95$) between the linearized influence and true influence, even though the values deviated significantly from the perfect $y=x$ line.
When testing rank alignment on the CIFAR-10 dataset, the authors looked at the Overlap Ratio—how many of the top-$k$ truly influential points were correctly identified by the approximations. As shown in the paper's empirical results, while finding an exact ordered match becomes rare as $k$ grows, the overlap ratio consistently remains above 70% across all settings. This confirms that TRAK reliably isolates the correct neighborhood of influential examples.
Limitations and Future Work
The primary limitation of this work is that the theoretical framework assumes a simplified data-generation process (sub-Gaussian designs) and regular loss functions. Furthermore, to compute the exact ground-truth influence for comparison, the empirical validation had to rely on simpler models (like logistic regression) rather than deep, multi-layer neural networks.
Future work includes extending this theoretical analysis to non-convex optimization landscapes and deep architectures where neural tangent kernels (NTK) or feature learning dynamics might introduce more complex error behaviors.
Summary updated