← Back to AI Infrastructure Mind Map
🖥️ AI InfrastructureID: dataset-management

Dataset Management & Lineage

数据集管理与血缘
🎯Core Definition
Dataset management systematically governs the versioning, lineage, storage, compliance and lifecycle of training data. The core tool is DVC (Data Version Control): data files stay out of Git while the version store keeps only metadata (file hashes, dependencies), and data is stored by content-addressable storage (the hash is the address), giving versioning, branching and rollback equivalent to code. Lineage records the full chain from raw data → cleaned features → training set → model. Compliance and quality cover training-data deduplication (exact hashing or MinHash/LSH approximate), PII redaction, license/copyright review and cross-border rules; by the birthday paradox, the hash-collision probability for exact dedup is P≈n22m+1P \approx \frac{n^2}{2^{m+1}}, where mm is the hash width in bits and nn the number of samples.
💡Use Cases
TB-to-PB training sets with millions of files make Git-based management impractical; reproducing experiments demands aligned versions of code, data and model; audits require traceable data provenance; interviews ask about the DVC/Git division of labor, dedup methods and data copyright boundaries.
⚡Key Problems Solved
versus copying and backing up whole datasets, content addressing plus dedup drastically cut storage (identical files stored once, only diffs between versions) and make rollback instant; lineage lets any model output be traced back to its data and code versions for reproducibility and audit; dedup and compliance checks keep duplicated or infringing samples out of training, reducing memorization bias and legal risk.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Dataset Management & Lineage.
Use Cases
In production engineering, what are the primary use cases for Dataset Management & Lineage and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
How does DVC version large datasets? Why keep data files out of Git, and how are metadata and data separated?
2
Why does data lineage matter? How do you record and trace the data-to-feature-to-model chain?
3
When to use exact-hash vs MinHash/LSH dedup? What is the hash-collision probability formula?
4
What does training-data compliance cover? How to implement PII redaction, licensing and cross-border rules?
5
Data lifecycle: how to design retention, archive and deletion policies, and how do they tie to model versions?
📖 In-depth Guide:📄 mlops-and-testing →
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Dataset Management & Lineage"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
Next Card →Model Weight & Checkpoint Storage

🔗 More AI Infrastructure Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/AI_Infra/card/dataset-management
中文速览与面试要点

数据集管理与血缘 (Dataset Management & Lineage)

定义: 数据集管理是对训练数据的版本、血缘、存储、合规与生命周期进行系统化治理, 核心工具是 DVC (Data Version Control): 数据文件本体不入 Git, 版本库只存元数据(文件哈希、依赖关系), 数据以内容寻址存储 (Content-Addressed Storage, 哈希即地址) 保存, 从而获得与代码一致的版本、分支与回滚能力。血缘 (Lineage) 记录「原始数据 → 清洗特征 → 训练集 → 模型」的完整上下游链路。合规与质量: 训练数据去重(精确哈希或 MinHash/LSH 近似去重)、PII 脱敏、许可/版权审查、数据出境合规; 精确去重的哈希碰撞概率按生日悖论估算 P n^22^m+1, 其中 m 为哈希位数、n 为样本数。 使用场景: 大模型训练集达 TB~PB 级、文件数量百万级, Git 直接管理不现实; 复现实验要求「代码 + 数据 + 模型」版本对齐; 监管与审计需要训练数据来源可追溯; 面试常问 DVC 与 Git 的分工、数据去重怎么做、训练数据版权与合规边界。 解决的问题: 相比整份数据复制备份: 内容寻址 + 去重让存储占用大幅下降(相同文件只存一份, 版本间只存差异), 回滚秒级完成; 血缘让任何模型产出都能追溯到数据与代码版本, 可复现、可审计; 去重与合规检查避免重复/侵权样本进入训练集, 降低模型记忆偏差与法律风险。

核心要点

  • DVC 如何实现大数据集版本管理? 为什么数据文件不入 Git, 元数据与数据如何分离?
  • 数据血缘 (Lineage) 的价值是什么? 如何记录与追溯「数据 → 特征 → 模型」链路?
  • 训练数据去重的两类方法(精确哈希 vs MinHash/LSH 近似)各适合什么场景? 哈希碰撞概率公式是什么?
  • 训练数据合规包含哪些要点? PII 脱敏、版权许可、数据出境如何落地?
  • 数据生命周期管理: 保留、归档与删除策略如何设计? 数据版本与模型版本如何关联?