Which training examples are responsible for what a model does? Data attribution asks this counterfactual question, and the most direct answer is to remove an example, retrain and see what changes.
We will remove, retrain and compare, find the blind spot of redundancy, and finish with cost and noise.
Step 1: Remove, retrain, compare
The leave-one-out (LOO) effect of a training example is the change in a model's prediction, or loss, when the model is retrained without it. Take a model that predicts the mean of its n training targets. Removing a target z changes the mean from m to (nm − z) ÷ (n − 1), a change of
An example far from the mean has a large effect, and one equal to the mean has none. For targets (2, 4, 9) with mean 5, removing 9 lowers the prediction by 4 ÷ 2 = 2.
Step 2: Redundancy
LOO asks what changes if one example disappears, and that can miss examples that matter. If two training documents both teach a model the same fact, removing either one leaves the other, so the model still knows the fact and each document gets almost no credit, even though together they are the whole reason the model knows it. LOO cannot split credit among redundant examples; the next lesson's Shapley values are designed to.
Step 3: Cost and noise
Exact LOO needs one full retraining per training example: billions of retrainings for a large language model, which is impossible. Training randomness adds a second problem: retraining with a different random seed or data order changes the model even with nothing removed, so a small LOO effect can be swamped by run-to-run noise. Still, the question LOO asks is the right one for safety: which data produced an unwanted behavior, so it can be found and filtered.