A retraining trigger opens an investigation; a replacement model still needs independent evaluation and controlled rollout.
Retraining decisions: require a reason and a challenger comparison
Name a trigger precisely
Triggers may include measured quality below a limit, a changed label taxonomy, or a feature contract revision. A drift alert alone is not proof that retraining fixes the problem. Repair source defects first. Record the observed window, sample size and label maturity rule behind the trigger. Monitoring should provide these facts, not just an alarm color.
Freeze the comparison
Train a challenger on a versioned dataset with explicit cutoff and holdout. Score challenger and incumbent on the same future population under the same feature availability and cost metric. Avoid testing many candidates on the final holdout until one wins. A new model can improve average accuracy while making an urgent minority class worse; set guardrails before fitting.
Keep deployment separate
A better offline score is necessary but not sufficient. Validate artifact completeness, schema parity, latency and safety checks, then use shadow or canary traffic. Keep the incumbent as an available rollback target. Promotion gates tie this evidence to the exact artifact.
Test no-change outcomes
Simulate a drift alert caused by a source parser bug. The correct response is source repair, not retraining on corrupt data. Also simulate a challenger that misses an urgent-class guardrail. It must remain a candidate even if its overall score improves. Document when retraining was considered and rejected.
Implementation
def challenger_is_eligible(candidate, incumbent, limits):
if candidate["evaluated_count"] < limits["minimum_cases"]:
return False
if candidate["urgent_recall"] < limits["urgent_recall"]:
return False
if candidate["cost_per_ticket"] >= incumbent["cost_per_ticket"]:
return False
return candidate["latency_p95_ms"] <= limits["latency_p95_ms"]Performance and operating cost
Training cost depends on model and dataset; evaluating two models doubles inference on the frozen comparison set. Retaining candidate artifacts and evidence is cheaper than recovering from an unreviewed release.
Common Mistakes
- Do not retrain automatically on corrupted inputs.
- Do not promote on one overall metric while a protected slice fails.
- Do not use final-test feedback for repeated candidate tuning.
Read next
- Model monitoring: separate input drift, data faults and delayed outcomes
- Model promotion: require evidence before changing the serving pointer
- Shadow and canary rollout: compare a candidate without losing a rollback
- Group and time validation: split by the failure you expect in production
Continue the workflow: Project: build a versioned receipt outcome feedback loop.
Continue the workflow: Training replay: freeze the cohort, split and runtime.
Continue the workflow: Project: investigate suspect receipt labels and rebuild safely.
Continue the workflow: Project: audit blind spots in receipt-risk feedback.
