3 min read

You can say what your AI model was trained on. Can you prove it?

When a compliance review asks what a model was trained on, the code and the model are not the answer; the training data is. Keeping it for as long as the model runs is a decision, and it is cheapest with your first model.
Close-up of a thick, uneven stack of receipts and printed slips, layered edge on edge, the paper trail an auditor asks to see when proof is needed.
Photo by Camilo Rueda López / Unsplash

I have seen a compliance audit ask a simple question about a model in production: did its training data contain any personal data it did not need? The team gave the best answer they could. What they could not show was the data itself. The snapshot had not been kept, and the data warehouse could not be rewound to the training date a few months earlier, so the answer went back with caveats instead of proof.

The code and the model are not the answer to "what was it trained on". The training data is. Keeping it is usually treated as ML tooling, something to add when the data science team matures. It is closer to a business record: the evidence for a decision the company has already made, about which data a model was allowed to learn from. And when someone asks for that evidence, they ask the business, not the model.

The data warehouse remembers today

A data warehouse is built to hold the current state. Rows get corrected, customer records get merged, late data gets backfilled into last month. That is what makes today's numbers right, and it is also what makes last March unrecoverable.

The query that built the training set is in version control; the data it returned is not. Modern warehouses can often rewind a table to an earlier point, a feature usually called time travel, but they keep that history for days or weeks to control storage cost. A model trained in March is still making decisions in November, long after the warehouse has forgotten what it saw.

In an earlier post I argued that data lineage already knows what will break when a data source changes. Lineage answers what depends on what today. The audit question needs something else: what was true on the day of training. That is provenance, and it has to be kept on purpose.

Reproducible in name

Teams version the code and store the trained model, often in a model registry (the catalogue where trained models live), and call the setup reproducible. The training data is "the March export" in someone's bucket, or it gets recomputed from today's tables when someone asks. Reproducibility gets checked for the model and assumed for its inputs.

The registry is doing its job. It records which model was trained, by which code, with which settings. It was never designed to hold the data, and nobody asked it to.

The snapshot nobody owns

The data team sees the training set as the ML team's artefact. The ML team sees the warehouse as the source of truth. Both are reasonable, and between them nobody owns the data as it was on the day the model was trained.

That gap stays invisible until the question arrives from outside: an auditor, a customer's security review, a regulator. None of them is satisfied by "we believe no personal data was in it", and none of them accepts a best reconstruction as proof.

The leadership mandate

This is a decision about evidence, not a tooling project, and it belongs with whoever answers for the model's decisions. Decide which models must be provable: those that decide about customers, money or compliance. For those, keeping the training data for as long as the model runs is part of shipping it, not an optional extra.

The cost is lowest now. With one or two models, keeping a snapshot is a small storage line and a habit. With twenty models and an auditor waiting, it becomes a reconstruction project with an uncertain result.

The path forward

For each model that must be provable, record five things at training time:

What to record Example
The query The versioned query that selected the training data
The time When the query ran
The snapshot A kept copy of the data it returned
The personal data Which personal fields were included, and why
The retention Kept until the model is retired

Then add one question to every model review: if someone asks in six months what this model saw, can we show it?

The team I described could say what their model was trained on. What they could not do was prove it, and proof is the one part of the answer that cannot be added after the fact.