· Xiaojing Yang · Explainability and Responsible AI · 4 min read

中文

What Is Training Data Attribution?

A first research-oriented explanation of training-data attribution for NLP and LLMs: what it explains, how it differs from feature attribution, and why it matters for evaluation and data-centric research.

Core idea

Training-data attribution does not explain which input words caused one output. It asks which training data sources, groups, documents, or examples shaped a model behaviour before inference even happened.

This note is part of my series Training Data Attribution for NLP and LLM Research. The series is written as both a research notebook and an interview preparation path: each article should help me explain the idea clearly, connect it to my thesis, and identify what would become future PhD work.

Guiding question: Which parts of the training data are responsible for a model behaviour?

Training data attribution map

Intuition

In ordinary interpretability, we often look inside one prediction: which input tokens mattered for this answer? Training-data attribution moves the lens backward. It treats the trained model as the result of a data-generating and training process, then asks which training records would receive credit or blame if we could carefully compare alternative training sets.

In NLP and LLM research, this matters because model behaviour is deeply shaped by data mixture. A model may be fluent because of broad web text, domain-accurate because of specialised documents, safer because of curated instruction data, or biased because of repeated patterns in a subset of the corpus. Training-data attribution gives us language for asking these questions systematically instead of only saying “the data matters”.

Formal lens

A minimal formal view is to define a utility function u(D) that measures a behaviour of a model trained on dataset D. Attribution then assigns a score phi_i to a unit i, such as a source, group, document, or example, based on how u changes when that unit is included, removed, reweighted, or otherwise intervened on.

The important discipline is to define the attribution setup before interpreting the score:

Design choiceQuestion to answer
Attribution unitWhat receives credit: source, group, document, example, or token?
Utility functionWhich behaviour is being explained: quality, terminology, style, factuality, or safety?
InterventionAre we adding, deleting, reweighting, correcting, or retraining?
EstimatorIs the score exact, sampled, gradient-based, surrogate-based, or heuristic?
UncertaintyHow stable is the score across seeds, samples, metrics, and evaluation sets?

NLP / LLM example

For English—Norwegian domain MT, a behaviour could be COMET on petroleum test sentences, terminology F1 for terms such as reservoir pressure, or a tendency to produce Bokmål-like output. The attribution unit could be an NPD source, a written-standard group, or a document family. A good attribution statement must say all of these choices explicitly.

This is why I do not want to treat attribution as a generic interpretability topic. For my profile, the natural connection is multilingual and domain-specific NLP: low-resource settings, technical terminology, written-standard variation, and evaluation beyond one headline metric.

Connection to my thesis

In my thesis narrative, training-data attribution is useful because it turns a vague data question into an experimental design:

  1. define interpretable data units;
  2. define the model behaviour to explain;
  3. compare controlled data coalitions or interventions;
  4. estimate contribution;
  5. report uncertainty and limitations;
  6. decide what evidence is strong enough to support a causal-style claim.

That structure helps me avoid overclaiming. A score is not automatically a causal explanation. It is a measurement produced by a specific setup.

What I have done, understand, and would extend

LevelStatus
Already completed / thesis-readyGroup-level attribution, coalition thinking, metric-based utilities, cautious interpretation, random baselines, bootstrap-style reliability checks.
I understand but may not fully implement yetInstance-level gradient attribution, influence functions, TracIn, Monte Carlo Shapley, surrogate/datamodel approximations.
Strong PhD extensionHierarchical attribution, intervention-based validation, factuality/style-specific utilities, scalable attribution for LLM data mixtures.

Interview answer

Training-data attribution asks how training data contributes to model behaviour. In my project, I focus on group-level attribution for domain MT: I define interpretable data groups, train or evaluate models under controlled data coalitions, and measure how quality, terminology, and style change. I treat attribution as evidence about data influence, not as automatic causal proof unless it is validated by intervention.

References and reading path

  • Lloyd Shapley, A Value for n-Person Games.
  • Ghorbani and Zou, Data Shapley: Equitable Valuation of Data for Machine Learning.
  • Koh and Liang, Understanding Black-box Predictions via Influence Functions.
  • Pruthi et al., Estimating Training Data Influence by Tracing Gradient Descent.
  • Ilyas et al., Datamodels: Predicting Predictions from Training Data.
  • Rei et al., COMET: A Neural Framework for MT Evaluation.
Share:
Back to Blog

Related Posts

View All Posts »
Research & ApplicationsExplainability and Responsible AIEN

Coalitions, Marginal Contributions, and Shapley Values

The basic Shapley framework for data attribution: coalition value, marginal contribution, averaging over contexts, and why the result is more stable than one ablation.