Dataset Lineage and Provenance › A Traceable Pipeline
Language AI HandbookAll chapters The stages in Table lineage-pipeline can run in different orders. For each stage, the table pairs an artifact with the provenance needed to investigate what would otherwise be missing.
| Stage | Typical artifact | Provenance to record | Failure if missing |
|---|---|---|---|
| Acquisition | Raw crawl or source file | URI, collector, timestamp, robots or license signal, HTTP status, raw hash | Missing evidence of where, when, and under which recorded signals the collector obtained the source |
| Extraction | Extracted document | Parser version, raw-to-text offsets, boilerplate rules, extraction hash | Cannot audit text loss |
| Normalization | Canonical text | Unicode form, whitespace rules, normalizer version | Hashes change silently across versions |
| Language ID | Language label | Model version, confidence, threshold, code-switching policy | Cannot explain language imbalance |
| Quality filtering | Quality score | Scorer version, features, threshold, decision | Cannot reproduce exclusions |
| Toxicity filtering | Toxicity score | Classifier version, threshold, human review | Cannot audit over-filtering |
| PII handling | Redacted text | Detector version, entity types, replacement policy | Cannot prove privacy handling |
| Deduplication | Cluster assignment | Algorithm, threshold, cluster ID, representative | Cannot explain duplicates or attribution |
| Mixing | Mixture manifest | Domain weights, sampling probabilities, epochs, seed | Cannot reproduce data composition |
| Tokenization | Token sequences | Tokenizer version, vocabulary hash, normalization, offsets | Cannot map tokens back to text |
| Packing | Training sequences | Sequence length, packing policy, document spans, attention mask | Cannot attribute tokens to documents |
| Training | Checkpoints | Code commit, config, seed, parallelism, data order, manifest root | Cannot connect model to data |
| Evaluation | Eval report | Benchmark version, split, prompt, decoding, scorer, contamination test | Cannot defend benchmark claims |
| Release | Model bundle | Model card, data card, manifest, license, known limitations | Cannot support audits or incident response |
The table is intentionally broad. A small project may record only a subset. For a regulated release, identify the applicable recordkeeping, signature, and retention requirements before deciding which fields to capture. The right level of detail depends on the questions you expect to be asked, and on the cost of being unable to answer them. A hobby project that ships a demo can reasonably record a fraction of this; a model that informs decisions about people needs the full chain and the ability to defend it.
Represent input and output artifacts separately from the activities that use and produce them. Forward queries find artifacts connected by recorded downstream paths. Backward queries find recorded inputs and transformations to inspect during an investigation. Establishing what caused a model outcome requires evidence beyond the graph.
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!