Skip to content

Chapter 33: Data Licensing

You cannot honor terms you did not record. Every document in a training corpus came from somewhere, under some license or under none, and once those documents are mixed into shards the question “may we train on this and release what we trained?” can no longer be answered by looking. This chapter treats licensing for training data as a provenance problem: each byte of the corpus must trace back to a source, and each source must carry the terms under which it was obtained. Once provenance is data, compliance becomes a check that runs in CI.

Concepts from other sections (4)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

The chapter has a single section, Data licensing and the ledger. It explains why text carries a license at all, how licenses group into families, and how SPDX identifiers give each one a name a program can match. It then builds the two artifacts the rest of the system depends on: a prose licensing policy and a machine-readable allowlist that decides each common license per use, plus the ledger row that binds a reviewed license to the exact bytes fetched. This is engineering, not legal advice: the chapter teaches you to make provenance auditable, and a lawyer decides what a license permits.

Learning objectives

  • Explain why a dataset’s license is a property of every source in it, and why “no license” means “no”.
  • Classify licenses into families (public domain, permissive, attribution, ShareAlike, non-commercial, no derivatives) by what they permit and ask.
  • Write a licensing policy and an allowlist keyed by SPDX identifiers, with separate decisions for training and evaluation.
  • Describe the ledger row recorded at fetch time and how verification fails a build on a refused or unknown license.

The reading needs no prerequisites. The policy is applied to the corpus pipeline in Data Engineering: license capture happens in Async fetch with resume, checksums, and license capture, and every shard is verified against the allowlist in Licensing ledger verification and the datasheet. Before you start, try looking up the SPDX identifiers of five datasets you have used; the exercise shows quickly how often a dataset card’s license line is vague or wrong.

Later chapters build on this one. The datasheet in Model and Data Cards reports what the ledger records, and the policy structure (prose plus decisions a program checks) returns for personal data in Privacy and PII.