TL;DR
Training Data Attribution (TDA) methods—tools meant to tell us which training samples "caused" a specific prediction—are often more noise than signal. By treating TDA through a Bayesian lens, this paper reveals that model initialization and training randomness frequently drown out actual data influence, suggesting we should only trust these explanations when the "signal-to-noise" ratio is high.
What Problem Does This Paper Address?
In the quest for "Explainable AI," Training Data Attribution (TDA) is a holy grail. If a model misclassifies a medical image, TDA should point to the specific training images that led to that error. The gold standard for this is "Leave-One-Out" (LOO) retraining: train the model with and without a specific sample and see how the loss changes.
However, LOO is computationally impossible for deep learning. Instead, researchers use approximations like Influence Functions or Grad-Dot. The problem? These methods are notoriously "fragile"—they give different answers if you just change the random seed of the model. The authors tackle a fundamental question: Is the "influence" of a single data point a stable property of the data, or is it just a byproduct of the chaotic way deep models are trained?
Methods: A Bayesian Perspective
The authors introduce a Bayesian perspective on TDA. Instead of looking at a single trained model, they treat the learned model as a sample from a posterior distribution $p(\theta|\mathcal{D})$. This transforms TDA from a single deterministic number into a 1-D random variable.
To "sample" from this distribution and observe how TDA scores fluctuate, they use two standard techniques to approximate the posterior:
- Deep Ensembles (DE): Training the same architecture multiple times with different random initializations to capture variance across the parameter space.
- Stochastic Weight Averaging (SWA): Collecting checkpoints from the final stages of a single training run to capture local posterior variance.
By calculating TDA across these samples, they can perform a Student t-test to see if the attribution of a sample is statistically significant or if it's just "noise" stemming from the stochastic nature of SGD and initialization.
Datasets
Because calculating ground-truth LOO is incredibly expensive, the authors used subsampled versions of classic benchmarks:
- MNIST3: A subset of MNIST limited to three classes (150 training samples, 900 test samples).
- CIFAR-10: Subsampled to 500 training and 500 test samples.
They tested these on Convolutional Neural Networks (CNNs) of varying depths and a Vision Transformer (ViT) using LoRA (Low-Rank Adaptation) for efficient tuning.
Key Insights and Ideas
- The Noise Floor is High: For many training-test pairs, the "influence" is statistically indistinguishable from zero. In many experiments, the p-values were high (e.g., 0.69 for CIFAR-10), meaning the randomness of the training process (initialization and batching) mattered more than the specific training point being removed.
- Local vs. Global Mismatch: There is a fundamental gap between estimation and ground truth. Most TDA methods (like Influence Functions) measure "local" changes—how a tiny gradient step affects the model. LOO retraining is a "global" change—it alters the entire optimization trajectory. The paper finds these two views rarely agree.
- Complexity Breeds Instability: As models get larger and more complex (moving from a 2-layer CNN to a ViT), TDA becomes significantly noisier. Larger parameter spaces provide more "room" for randomness to overshadow the influence of individual data points.
- The "Trustworthy" Minority: While most TDA pairs are noisy, "low-noise" pairs do exist. These are cases where a training sample consistently influences a test sample regardless of the random seed. The authors argue we should only use TDA in these specific, high-confidence scenarios.
Key Results
- Stability Scores: In MNIST3 experiments, the ground-truth LOO had an average p-value of 0.331, indicating high instability. CIFAR-10 was even worse at 0.692.
- Method Correlation: The authors found that popular TDA methods like Grad-Dot and Influence Functions correlate well with each other (because they all look at local gradients), but they correlate poorly with the ground-truth LOO retraining.
- Mislabel Identification: When using TDA to find mislabeled data, treating TDA as a distribution (Bayesian) rather than a point estimate led to much more reliable results. Deterministic TDA often "got lucky" or "unlucky" depending on the specific model seed.
Limitations and Future Work
The primary limitation is scale. Because the study requires thousands of full model retrainings to establish "ground truth" LOO, the authors were forced to use very small datasets and simple tasks. Whether these insights hold for "foundation models" trained on billions of tokens remains an open question, though the trend suggests that larger models might be even more unstable.
The authors encourage the community to move away from point-estimate TDA and toward distribution-based TDA. Future work should focus on closing the gap between the "local" view of gradient-based methods and the "global" view of retraining.
Code Availability: The authors have provided their implementation at https://github.com/ElisaNguyen/bayesian-tda.
Summary updated