Scalable Estimation of Training Data Influence

96 concepts84 papers3 proposals

To understand why a machine learning model makes a specific prediction, we often want to ask a counterfactual question: How would this prediction change if a specific data point had been omitted from the training set?

This question is central to Training Data Attribution (TDA). If removing a specific image of a golden retriever causes a vision model's confidence in identifying another golden retriever to plummet, that training image has high causal influence. The most mathematically rigorous way to measure this is leave-one-out (LOO) evaluation:

  1. Train a model $\theta$ on the full dataset $D$.
  2. Remove a single training instance $z$, forming a subset $D \setminus \{z\}$.
  3. Retrain a completely new model $\theta_{-z}$ from scratch on $D \setminus \{z\}$.
  4. Compare the predictions of $\theta$ and $\theta_{-z}$ on a test point $x$.

As noted by Junwei Deng et al. in Computational Copyright: Towards A Royalty Model for AI Music Generation Platforms, this brute-force approach provides the ground-truth causal influence of data. However, it introduces an insurmountable computational bottleneck. If a dataset contains $N$ samples, calculating the influence of every single sample requires retraining the model $N$ times. For modern deep neural networks with billions of parameters and datasets spanning millions or billions of tokens, this leave-one-out approach is completely impossible (Yizi Zhang et al. in TimeInf: Time Series Data Contribution via Influence Functions; Sang Keun Choe et al. in What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functions). The core challenge of this research direction is finding ways to accurately approximate this counterfactual retraining cost without actually doing the retraining.

Differentiating Through Training with Influence Functions

The breakthrough that made data attribution practical for neural networks was the adaptation of a classic statistical tool: influence functions. Popularized in deep learning by Pang Wei Koh et al. in Understanding Black-box Predictions via Influence Functions, the core intuition is to avoid retraining by calculating how the model's parameters would shift if a training point $z$ were upweighted by an infinitesimally small amount $\epsilon$.

Instead of removing a point entirely, we imagine changing its weight in the loss function from $1$ to $1 + \epsilon$. By applying a first-order Taylor expansion around the optimal parameters $\theta^*$, we can compute the derivative of the parameters with respect to $\epsilon$. This derivative is given by:

$$\frac{d\theta^*}{d\epsilon} = -H_{\theta^*}^{-1} \nabla_\theta L(z, \theta^*)$$

where $H_{\theta^*}$ is the Hessian matrix of the loss function across the entire dataset. To find how this parameter shift affects a specific test prediction $x$, we apply the chain rule:

$$\text{Influence}(z, x) = -\nabla_\theta L(x, \theta^*)^T H_{\theta^*}^{-1} \nabla_\theta L(z, \theta^*)$$

This formulation is incredibly powerful because it allows us to "differentiate through the training process" using only the final model parameters. Instead of retraining the model $N$ times, we only need to compute the gradients of the training point and the test point, and multiply them by the inverse Hessian.

However, computing the inverse Hessian matrix ($H^{-1}$) for a model with millions or billions of parameters is itself a massive computational challenge. Researchers have developed efficient numerical linear algebra techniques, such as stochastic estimation or Hessian-vector products, to approximate this term without explicitly materializing the massive matrix.

Alternative Paradigms for Scalable Attribution

While influence functions offer an elegant mathematical shortcut, they can be fragile when applied to the highly non-convex loss landscapes of deep learning, as demonstrated by Samyadeep Basu et al. in Influence Functions in Deep Learning Are Fragile. To overcome these limitations and scale to large language models and generative architectures, researchers have pioneered several alternative approximation paradigms.

Machine Unlearning and Gradient Ascent

Instead of evaluating what happens when a model is trained without a data point from scratch, what if we take an existing trained model and force it to forget that data point? Methods like UnTrac, developed by Masaru Isonuma et al. in Unlearning Traces the Influential Training Data of Language Models, use localized gradient ascent to simulate the unlearning of specific datasets or samples. Similarly, the GRACE framework proposed by Yang Zhao et al. in Deciphering the Impact of Pretraining Data on Large Language Models through Machine Unlearning measures how performance degrades after targeted unlearning, providing a highly scalable proxy for leave-one-out retraining in large language models.

Gradient Rollback and Checkpoint Tracking

Another approach tracks the actual trajectory of training rather than just looking at the final static model. In Explaining Neural Matrix Factorization with Gradient Rollback, Carolin Lawrence et al. introduce a method that records parameter updates during training and "rolls them back" at test time to isolate a sample's impact. To avoid storing extensive training histories, Narine Kokhlikyan et al. developed Z0-Inf in Z0-Inf: Zeroth Order Approximation for Data Influence, which estimates influence using only the loss values from intermediate checkpoints, bypassing both Hessian computations and explicit gradient tracking.

Sub-network Masking

Rather than modifying gradients after the fact, we can bake data isolation directly into the training process. In Efficient Estimation of Influence of a Training Instance, Sosuke Kobayashi et al. introduce turn-over dropout. By assigning a unique, deterministic dropout mask to each training instance, they ensure that specific sub-networks either always see or never see a given sample. This allows the influence of a point to be estimated with just two forward passes at test time.

Why It Works: Applications and Implications

Developing scalable data attribution methods is not just an academic exercise in optimization; it unlocks critical capabilities across AI safety, legal compliance, and model diagnostics.

By replacing the impossible cost of leave-one-out retraining with scalable mathematical approximations, researchers are turning deep learning models from opaque black boxes into traceable, accountable systems.

Key Foundational Work

Understanding classifier errors by examining influential neighbors (2015) — contributed 1 concept elements to this direction.
Active and Continuous Exploration with Deep Neural Networks and Expected Model Output Changes (2016) — contributed 1 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 83 papers
  2. Version 1 · 2026-10-04 · 197 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_leave_one_out_retraining_cost_3e04aadd,
  title = {leave-one-out retraining cost},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/leave-one-out-retraining-cost/rdr_3e04aaddf8314799bf91a350818e06f9},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 2, frozen text):

@misc{lacuna_leave_one_out_retraining_cost_3e04aadd_v2,
  title = {leave-one-out retraining cost},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/leave-one-out-retraining-cost/rdr_3e04aaddf8314799bf91a350818e06f9/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake