Make a training trigger an evidence decision
Monitoring can reveal that a deployed model has deteriorated. It does not identify a safe replacement. New training data can be incomplete, the next model can forget an older case, and the evaluation sample can reflect decisions made by the current model. A retraining system must therefore produce evidence for a release, as well as produce weights.
This note follows a fictional service that checks whether a document preview needs human correction. Its numerical cases are newly specified teaching examples, evaluated with Python's standard library. They are not measurements of a production service or neural network. The same distinctions apply to larger systems: the age of a model, the age of its labels and the age of its evidence are different clocks.
Baseline: train once, deploy forever
Suppose a classifier was accepted on yesterday's document templates. A new template moves a watermark into the text region. The software still returns a well-formed response, but the decision boundary may now be wrong. Restarting the server cannot supply examples of the new layout; retraining on an unchanged snapshot cannot supply them either.
Start an investigation by separating three cases. A broken parser requires a software fix. A changed mixture of otherwise familiar templates may require reweighting the evaluation sample. A genuinely new relationship between input and required correction may require new labels and a different model. Automatically treating all three as “retrain” can hide the cause and ship a regression.
A useful baseline retains the deployed artifact, its data cutoff and its acceptance evidence. This gives the next candidate something specific to beat. Deleting the baseline after every training run loses both the comparison and the rollback target.
The retraining loop
The loop has a data boundary and a release boundary. At the data boundary, select immutable input partitions, join only labels available at the declared cutoff, validate the schema and save the configuration. At the release boundary, compare the resulting artifact with the serving baseline on the same evaluation cases. Training success by itself crosses neither boundary.
Represent one run with a manifest: data and label snapshot identifiers, feature code, initialization artifact if any, optimizer settings, evaluation version and resulting model hash. A failed evaluation leaves that manifest and the candidate intact for diagnosis. It must not move the serving alias. The registry note explains why an alias is a release decision, not a training output.
TFX's Evaluator illustrates this separation: configured metrics and slices can produce a validation result that a Pusher consumes (TensorFlow contributors). This is an example of an interface between stages, not a guarantee that a chosen metric or dataset is sufficient. A missing critical slice must not silently become a successful check.
When to retrain
A schedule makes resource use predictable. A trigger makes the response conditional on evidence. A manual request handles a known event such as a changed scanner format. They can use the same reproducible pipeline; the trigger should select a run, not secretly change its acceptance criteria.
For a trigger, record the measurement window, minimum label count and action. An input-distribution alarm can start inspection or data collection without proving that the model needs replacement. A performance alarm based on ten early labels can be less reliable than a slightly older, mature cohort. If several signals fire together, deduplicate the request instead of starting concurrent training jobs against different moving snapshots.
Add a cooldown and a recovery rule. Without them, a noisy metric can start repeated runs, consume the budget and repeatedly reuse the same evaluation sample. The system should distinguish “candidate rejected,” “insufficient labels” and “training infrastructure failed”; each calls for a different next action. Freshness requirements and checks before export are also emphasized by Zinkevich (Rules 8–9).