Data Audits and Release Governance › Post-Release Traceability
Language AI HandbookAll chapters The moment a model is released, everything you knew about the data becomes a question someone will eventually ask. Traceability is the ability to answer, quickly and correctly:
- Was document in the training data for model version ?
- Which released models were trained on corpus version ?
- A specific document has been reported as containing illegal content. What is the blast radius?
- A third party has requested deletion. What must be retrained, and what can be patched?
The same lineage records can locate the sources, snapshots, and runs implicated in a request. Use that evidence to identify affected release versions. Assess the legal obligation and whether a proposed mitigation will work before deciding how to respond.
The chain
Traceability links versioned records to a final crawl record that includes the source URL, which may later serve different content.
Each arrow is a record. The model version points to a checkpoint hash. The checkpoint is produced by a run whose configuration pins a dataset root hash. The dataset root is a Merkle root over shard roots. Each shard root is a Merkle root over document hashes. The document record carries the URL, crawl timestamp, and extraction metadata.
Pay particular attention to the model-to-run join. If the checkpoint identifier exists only in a message or a spreadsheet, a later reviewer may be unable to connect the released model to its run configuration. Record each link when the corresponding artifact is created.
A hash tree in which each leaf is the hash of a data block and each internal node is the hash of its children's concatenated hashes. A specified tree format and root can commit to the leaf collection. In the example below, we sort the digests and bind their count, so the commitment captures multiplicity while allowing a different input order. An inclusion proof needs sibling hashes, plus the leaf position and count under this format.
This example first sorts the digests, which takes up to comparisons. Combining the sorted leaves takes hashes. Verification relies on the specified encoding and hash collision resistance. For selective disclosure, provide the exact document bytes that were hashed, the leaf position or path directions, the leaf count, and the sibling hashes. The fixture encodes stored text as UTF-8. If a production pipeline normalizes the text, apply the same frozen normalization and encoding used to compute the committed digest. The verifier rebuilds the path under the specified encoding and checks it against a previously authenticated expected root. This shows that the matching content appears in the committed shard. Document IDs and actual loader consumption require separate records.
What must be immutable
- The audit record itself. Append-only storage, with corrections recorded as new entries that reference the superseded one.
- The gate decisions, with the evidence pointers and the exact version of the policy that was evaluated.
- The dataset manifest, including both the source-document root and the tokenized-shard root. Verify each root against the expected commitment for its own artifact and record how the tokenization job links the two.
- The training run configuration, including the tokenizer version, the sequence length, and the mixture weights.
In this example, the system of record enforces append-only writes and links each entry to its predecessor by hash.
Corrections added as new entries leave the earlier decisions available for inspection. A reviewer can use a previously authenticated checkpoint to check whether the history up to that checkpoint changed. Keep checkpoint copies independently of the log so the reviewer has something to compare against if the stored history changes.
Answering "was this document in the training set?"
There are three honest answers and several dishonest ones.
The honest answers:
- Exact snapshot membership. Look up the document's normalized hash in the index for the committed snapshot. A sorted index supports binary search, while a hash table can provide expected constant-time lookup under suitable assumptions. Exact, given that you know the exact normalization applied to the document. (Normalization is where this gets hard: a document processed through Unicode normalization, whitespace collapsing, and boilerplate removal has a different hash than the raw crawl. You need the post-processing form, which means you need the pipeline version.)
- Probabilistic membership. A standard Bloom filter uses hash probes per lookup and can return false positives. With a fixed bit array and the same normalization and hash functions used to build it, an inserted key will not test negative. Under the usual uniform-hashing sizing approximation, keys at a target 1% false-positive rate need about ten bits per key, or roughly 125 GB for the bit array alone.
- Behavioral canary. Place a controlled marker where the audited pipeline can encounter it, then test for reproduction using prompts that omit the marker. Reproduction records model behavior. It can motivate a lineage check, since a marker may have reached the model through another source. A negative result leaves training membership unresolved.
Membership inference studies estimate how well an attack can distinguish members from nonmembers under stated conditions (Shokri et al., 2017; Carlini et al., 2022). Error rates depend on the data and the attack's operating point. Failure to infer membership for one document leaves its training status unresolved.
For exact membership, resolve the document to its post-processing form and check the shard index. In a correctly constructed Bloom filter for that index, a negative excludes the normalized key, while a positive needs confirmation because collisions can produce false positives. Record the normalization rules and the filter's error rate. Keep canary output as behavioral evidence. The run-to-manifest join identifies the intended snapshot. To verify which derived shards the run actually consumed, check the loader's consumption records and filtering, sampling, or truncation settings.
Incident response
The traceability chain exists so that an incident can be triaged fast. A workable procedure:
- Intake. A report arrives: a URL, a document, a generated output, or a rights complaint. Assign a case ID.
- Identification. Resolve the report to a document hash, if possible. If it is a generated output, resolve to the model version and reconstruct the likely prompt context.
- Blast radius. Query the chain: which shards contain the hash, which dataset roots contain those shards, which training runs used those roots, which released models used those checkpoints.
- Severity and obligation. Determine whether there is a legal reporting obligation (this is a counsel decision, not an engineering one), and whether downstream users must be notified.
- Mitigation. Options range from none (content was not in the corpus), through corpus-level removal for future training, to model patching or unlearning (see Part XLV: Knowledge, Memory, Editing, and Unlearning), to withdrawal of the model version.
- Disclosure and record. Write the outcome into the same append-only record. The incident log is part of the traceability substrate.
- Closure and control update. If the filter missed the incident, build a benign synthetic surrogate that exercises the failed behavior. Keep the canary outside training inputs and rerun the control test.
The single most valuable property here is speed of step 3. An organization that can answer "which models contain this document" in an hour can make good decisions. One that takes three weeks will make decisions based on what it can afford to investigate, which is usually nothing.
Route reports from support, public channels, publications, and internal teams through the same case-management process. Keep the evidence, decisions, and later revisions in the case record. An append-only history lets another reviewer reconstruct which information supported the decision at the time.
Retention and deletion
Plan separate retention schedules for raw documents and audit records. After a raw document is deleted, a retained manifest can still identify the recorded dataset snapshot. A hash on its own cannot reconstruct the document or the decisions made about it.
Record why each class of evidence is retained, who can access it, and when the retention decision will be reviewed. Where the GDPR applies to an audit entry, Article 5(1)(e) limits identifiable retention to what the processing purpose requires, subject to the longer-retention conditions specified there.
Keep enough linked evidence to answer questions about the models that used a snapshot. A digest can support checking a document supplied later against a recorded index. Treat linkable digests and provenance records according to what they can reveal in context.
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!