Dataset Lineage and Provenance

Michael BrenndoerferNovember 26, 20263 min read
Language AI HandbookAll chapters
Part 21 of 67Data Governance, Provenance, and Synthetic Ecosystems
Chapter 149Dataset Lineage and Provenance
Reading section 1 of 17 · Dataset Lineage and Provenance · 3 minSection 1 of 17 · 3 min

Section 1 of 17 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

When a training-data problem surfaces, the final checkpoint leaves open which sources entered its training corpus and how the pipeline processed them.

  • A model can produce a perfect answer for the wrong reason.
  • A benchmark score can rise because the benchmark leaked into training.
  • A safety filter can fail because a document that should have been removed survived a pipeline branch.
  • A license dispute can prompt a request for the source records behind a particular checkpoint.

Dataset lineage and provenance are the practices that let you answer these questions after the fact.

Each failure raises a question the final model cannot answer on its own.

  • Did the training corpus contain the benchmark examples?
  • Which pipeline branch processed the document, and what did its filter record?
  • Which source and license records can the team recover for this release?

A provenance record gives investigators evidence to answer these questions. It can also expose gaps before release.

Provenance is the record of where something came from and what happened to it. Lineage is the graph of derivation relationships among artifacts: this raw crawl produced these extracted documents, these documents were filtered into that corpus, that corpus was mixed into these training shards, those shards trained this checkpoint, and that checkpoint was evaluated on these examples. The two concepts are complementary, and neither is sufficient alone. Provenance without lineage is a pile of metadata: you know facts about individual artifacts, but you cannot follow a path from one to another. Lineage without provenance is a graph with no verifiable content: you know that edges exist, but you cannot check what flowed along them or whether the claims are true.

A simple way to keep the distinction straight is to imagine a laboratory notebook and a citation graph. The notebook records, entry by entry, what was done, when, by whom, and with what materials. That is provenance. The citation graph records which papers build on which other papers. That is lineage. A research field needs both: the notebook to audit a specific experiment, and the citation graph to understand how ideas propagate. Data pipelines are no different.

In this chapter we build a working provenance system for a miniature language-model pipeline. We will trace documents through collection, normalization, filtering, deduplication, PII redaction, mixing, tokenization, sequence packing, training, evaluation, and release. The toy separates the records you would also need to plan for a larger corpus. Along the way we will separate document identity from content identity, event logs from lineage graphs, and tamper evidence from reproducibility. Each distinction sounds academic until you try to answer a real audit question, at which point the missing distinction becomes the reason the question cannot be answered.

The chapter sits at the start of Part XXI: Data Governance, Provenance, and Synthetic Ecosystems. It builds directly on the curation pipeline from Part XX: Data Curation. We will not re-explain deduplication, quality filtering, or PII detection here. Instead, we ask a different question: once those operations have run, how do we prove what happened?

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy