Preserve training-data provenance across model versions
A shipping terminal changes its vessel-arrival forecast on a Tuesday. The prediction service still runs, and the operations team reports that the new model performs better than the old one. But the harbor manager notices a problem. Two ships that usually reach the same berth at similar times now receive very different estimates. The vendor says the system was retrained with fresher records. The manager asks a more useful question: which records were used, and what changed between the version that worked last month and the one operating today?
This is a fictional port, but the difficulty is common to organizations that retrain machine-learning models. A training dataset is not a generic bucket of examples. It is a particular selection of information, with a particular history, processed under particular rules at a particular time. If that history has been lost, the organization may know that a model changed without knowing why. The underlying problem is training-data provenance: the ability to establish where information came from, how it was transformed, which version was used, and what evidence supports trusting that history.
The port's prediction service takes information from scheduled vessel calls, harbor sensors, past berth assignments, weather observations, and actual arrival records. Those sources do not arrive in one neat package. A shipping agent can revise a planned arrival. A sensor may report late. A contractor may correct the time at which a vessel cleared a channel. Some records describe the planned event; others describe what eventually happened. Mixing them carelessly could teach the model that it knew the future before anyone at the port did.
For a deeper review after listening, Bare Metal Cyber's study guide for this certification can help connect training-data lineage with the larger audit question of model accountability. Use it to distinguish evidence about where data originated from evidence that a particular model release really used that data. Those are related claims, but they require different proof.
Begin with the dispute rather than the model's overall score. The terminal needs to identify the exact model currently serving predictions and the exact training dataset from which that model was built. A model identifier without a dataset reference answers only half the question. A dataset filename that is reused every week is hardly better. The evidence must identify an actual, fixed collection of examples and the transformations that produced it. If the organization cannot answer those questions, it cannot confidently compare the old model with the new one.
A useful dataset version represents a reproducible state. Suppose the port assembled its training information at the end of September. It included all eligible vessel calls recorded by a defined cutoff, excluded canceled visits, converted local timestamps consistently, and paired predictions with observed arrival times only after the trip ended. An authorized team should be able to identify that September dataset later, even if a source database has since changed. The version may be kept as a protected snapshot or reconstructed from a fully controlled chain of source versions and transformations. The important point is that the reconstruction is actually possible and produces the same relevant content.
A version number alone does not make the process trustworthy. Imagine a register that says dataset seven was approved, but the underlying table was edited after approval. The name remains unchanged while the evidence has moved underneath it. Controls can include protected storage, restricted write access, recorded approvals, integrity checks, and a release process that prevents a training job from quietly substituting new inputs. A checksum or hash can help reveal whether a stored artifact has changed. It does not establish that the artifact was accurate, authorized, or suitable in the first place. Integrity is one question. Provenance and quality are others.
Now consider the source of a corrected arrival time. A port contractor finds that a set of earlier records used the moment a ship entered a waiting area rather than the moment it reached its berth. Correcting those records may improve future training. It may also change how the organization compares this model with the previous one. The audit trail should show the original source, who supplied the correction, the reason for the change, the affected time period, and the dataset versions that include it. Otherwise a performance improvement could simply reflect a changed definition of success rather than a more useful model.
There is a distinction between a correction made to data and a correction made to the business process. If a ship's actual arrival was recorded incorrectly, fixing the record repairs evidence. If the port changes what counts as an arrival because its operating contract changes, the organization has changed the target. Both may lead to different training labels, but only the second changes the meaning of the prediction the customer receives. An auditor needs enough context to notice that difference. Treating every revision as a technical cleaning exercise would hide a business decision inside a data pipeline.
Source ownership is another practical constraint. The weather service may retain its own revisions. A shipping agent may supply commercial information under a limited-use agreement. Harbor sensors may be managed by a maintenance contractor. The port does not automatically gain unlimited rights to preserve, copy, or reuse every record simply because those records help a forecast. The data owner and the model owner need to establish permitted use, retention, access, and who may authorize a new purpose. A reproducible model is not a defense for using data that the organization was never authorized to use.
Move from one dataset to the relationship between datasets and models. The port might have trained four candidates during the week. Two used the approved September snapshot. Another included a late batch of corrected arrivals. The fourth used a changed weather-transformation rule. If the team reports only the winning accuracy score, the model-selection process becomes impossible to reconstruct. Each candidate needs a link to its data version, preparation rules, relevant configuration, evaluation evidence, and eventual decision to release or reject it. This is a chain of custody for a technical decision, not a demand to preserve every temporary experiment forever.
For a closer look at release records, the AI model artifact audit trail article in Bare Metal Cyber's Cyber Wiki connects a trained model with its supporting evidence. It explains how model packages, data references, evaluation results, and approvals connect. After this lesson, tracing one imaginary release backward from deployment to its training records is a useful way to practice that relationship without needing a computer during playback.
Consider the evaluation sample. If the contractor corrected past arrival times, the training team might accidentally apply those corrections to its test data after it already examined the test results. The evaluation could stop being independent of the decisions made during development. There is also a temporal problem: the port should not validate an arrival forecast using facts that would not have been available at the moment a real forecast was requested. Keeping evaluation data separate does not mean that a particular numerical split is universally correct. The separation must reflect how information becomes available and how the system will be used.
The audit question becomes sharper if the port changes its sources. The vendor substitutes a new vessel-tracking feed because the old one is expensive. The replacement reports location updates at a different frequency and covers smaller vessels less consistently. Even if the fields have familiar names, the information is no longer equivalent. A dataset register should capture the feed change, the coverage difference, the point when it took effect, and the evaluation performed before the next model release. Without that history, someone investigating a future error may incorrectly blame a model-training choice when the original cause was a source substitution.
It is tempting to ask for a complete copy of every raw record ever collected. That is rarely the right risk decision. Some inputs contain personal or commercially sensitive information. Retention limits and contractual restrictions may apply. A better design preserves the evidence actually needed to explain a training decision while honoring authorized retention and access boundaries. That could involve controlled snapshots, documented aggregates, transformation logs, reference identifiers, and protected change records. The form varies. The standard of evidence is whether an authorized reviewer can reconstruct relevant facts without creating an uncontrolled archive of sensitive material.
Suppose an auditor asks the vendor to reproduce the older model. The vendor returns an almost identical forecast, but not exactly the same one. That does not automatically prove deception or weak governance. Some training processes can vary because of randomized initialization, processing order, hardware behavior, or other nondeterministic conditions. The team should explain what degree of reproduction is expected and which records control that variability. For some decisions, a documented equivalent outcome with known limits may be acceptable. In a high-consequence setting, the organization may require stronger reproducibility. What is unacceptable is claiming exact reproduction when there is no evidence of the underlying data or process.
A subtle complication is the difference between a training dataset and the operational data serving today's prediction. The September snapshot might be fully controlled while the live feed has started delivering timestamps in a new format. The auditor who examines only training provenance could miss the current source of error. That is why the model release record should point to the expected production inputs and monitoring assumptions as well as the historic dataset. Provenance lets you reconstruct what was learned. Operations evidence helps determine whether today's conditions still fit what the model learned.
Return to the two ships with inconsistent arrival estimates. An investigation finds that one model version learned from corrected berth times, while the other comparison report still used the older arrival definition. The vendor also introduced a new tracking feed for smaller vessels. Neither fact by itself proves which model is superior. Together they explain why the original comparison was misleading. Management can now request a fair evaluation using a single agreed definition of arrival, an appropriate time-based sample, and records showing which vessel groups each feed covers. The port can pause or narrow deployment while that evidence is gathered if the operational consequences justify doing so.
What would constitute a defensible audit finding? Not simply that data versioning is missing. The more informative finding would identify which decision can no longer be supported. Perhaps the port cannot establish whether the deployed model was trained on approved inputs, cannot replicate the claimed performance comparison, or cannot identify which predictions were affected by a disputed correction. The report should explain the consequence, the evidence gap, the accountable owner, and a proportionate remedy. Management can then prioritize the repair based on operational risk rather than the existence of untidy technical files.
One reasonable corrective action is to require every released model to reference an approved data snapshot and recorded transformation version, with independent confirmation that evaluation inputs were separated appropriately. Another is to make source substitutions subject to a material-change review. These controls need to be tested as they operate, not merely described in a policy. An auditor could select a released model, follow its linked data records backward, inspect a correction's authorization, and verify that a later training run used the intended version. A successful demonstration would show the process can be repeated, not that one carefully prepared example happened to look convincing.
The larger lesson is about preserving the meaning of an AI result through change. Models are updated because organizations learn new things and the world does not stand still. Data corrections and new sources can make a prediction genuinely better. They can also make past test scores incomparable or introduce weaknesses no one intended. A trustworthy training process does not freeze the organization in time. It leaves enough evidence that, when a result changes, people can tell whether the change came from the world, the source data, the preparation rules, the evaluation, or the model itself. That is how a port manager moves from a vendor's reassurance to an answer worth acting on.