Dataset Lineage and Provenance › Lineage Queries
Language AI HandbookAll chapters Backward lineage here is the set of artifacts with a recorded derivation path of at least one edge into artifact :
where:
- : the artifact whose history we are tracing
- : a candidate ancestor artifact
- : the direct derivation relation, where means was derived from
- : reachability along one or more recorded derivation edges
The forward lineage, or impact set, is the set of descendants:
The equivalent forward query follows paths of at least one edge away from the starting artifact.
These two queries cover many practical tasks:
- Input investigation. Which recorded training inputs are associated with this checkpoint? Walk backward from the checkpoint through the training run and its shards to the documents and sources.
- Impact analysis: Which models were trained on a dataset that we now know was mislabeled? Walk forward from dataset to checkpoints and releases.
- Deletion requests: Which shards, checkpoints, and evaluation reports are affected by a document that must be removed? Walk forward. Then ask whether removal from the log is enough, since a log edit leaves the checkpoint bytes unchanged.
- Contamination checks: Which evaluation examples overlap with training documents? Query the intersection of evaluation n-grams and training document n-grams.
- License propagation. Which releases depend on training inputs carrying a particular license or consent signal? Walk forward from the source record that carries the signal.
Lineage queries are only as good as the graph. A position-to-document query needs a retained span map or a reproducible reconstruction. A consumed-input query needs the input order or a verified replay. Compare benchmark runs with the exact prompts used for each run. The graph is not a nice-to-have visualization; it is the data structure that determines which questions are answerable at all.
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!