Data lineage: knowing where your training data came from
ڈیٹا کا سلسلہ: آپ کا تربیتی ڈیٹا کہاں سے آیا
36 min read
Three ways to see it
Data lineage is the documented chain of custody from the original source of every training and fine-tuning datum to the model's weights and through to the model's outputs. It answers four questions for every dataset used. Where did it come from originally? Under what licence or consent was it collected? What transformations were applied between collection and training? Who currently has the right to delete it? If any link in the chain is missing, the lineage is broken, and a regulator, a court, or a journalist can cut through the entire system at that weak point.
For a Pakistani context the lineage question becomes sharper because of three overlapping concerns. PII (personally identifiable information): names, CNICs, phone numbers, addresses, and now biometric data are governed by the draft Personal Data Protection Bill and de facto by NADRA's CNIC handling regulations. Sovereignty: the National AI Policy 2025 explicitly favours data residency in Pakistan for systems serving Pakistani citizens. Religious and cultural sensitivity: scraped Pakistani text often includes content that is appropriate to its original context but not to a public sector chatbot. Lineage is what lets you reason about all three before deployment.
Practical lineage record format, one row per dataset. Dataset name, version, size in tokens or rows. Source URL or vendor and acquisition date. Original collector and purpose of original collection. Licence or consent basis. Languages and approximate language distribution. PII review status: none, redacted, or pseudonymised. Geographic origin breakdown. Sensitive categories present (medical, financial, religious, political). Date last reviewed and reviewer. Date of planned deletion or refresh. This is one spreadsheet, ten columns, one row per dataset. Most teams will have between 3 and 30 rows. The discipline of filling the row is itself the audit.
Quick check
Quick check: what makes modern AI different from a rule-based program?
The why-tree
Why-tree level one: why does provenance matter if the model 'just learns patterns'? Because patterns can be memorised verbatim, and the law does not care about the distinction. Copyright, privacy, and data protection law all attach to the data, not to the abstraction. If you cannot prove what data went in, you cannot defend what comes out.
Try this with Claude
Capstone challenge — three actions. (1) For one model your team uses or builds, attempt to fill the ten-column lineage row above; the gaps you find are your priority list. (2) For each dataset, identify which jurisdiction's law governs it and whether that creates conflict with Pakistani law. (3) Pick one dataset whose lineage is unclear and decide today whether to document, replace, or remove it within 30 days.
Sources
Sources and further reading. Personal Data Protection Bill of Pakistan, latest draft. NADRA Ordinance 2000 and CNIC data handling regulations. US CLOUD Act 2018. EU GDPR Article 30 on records of processing. Datasheet for Datasets, Gebru et al, 2021. Data Provenance Initiative (dataprovenance.org). Hugging Face Dataset Card guidelines. NIST AI RMF MEASURE 2.10 on data integrity and provenance. Pakistan National AI Policy 2025 data sovereignty clauses.