Machine Learning Operations (MLOps) · lesson 21/25
Retraining Triggers
A model is a snapshot of a relationship that keeps moving, so someone has to decide when to spend compute refreshing it. A retraining trigger is that decision, and the practical answer is usually both kinds at once: a schedule that guarantees a floor and signals that accelerate it. The subtle part is not detecting change but deciding how much history to train on and who is allowed to promote the result.
The idea
- Scheduled retraining runs daily, weekly, or monthly. It is predictable, easy to cost, and needs no monitoring dependency. Its weakness is that it cannot respond to a sudden change, and it wastes compute when nothing has moved.
- Signal-based triggers fire on evidence:
- outcome metric below its guardrail on recent labels, - drift beyond threshold on the most important features, - a minimum volume of new labeled data available, - a business metric regression in the units the model serves, - an upstream change such as a schema change, a new data source, or a policy shift.
- Window choice matters. Full history stabilizes but adapts slowly. A short rolling window adapts fast but can overfit a blip. A common middle ground weights recent data more heavily while keeping older data for stability.
- Automate the training run, gate the promotion. Retraining should be a pipeline anyone can trigger; promoting the result should require an evaluation against the incumbent on the same held-out period, then a canary rollout.
- Rate-limit and log. One retrain per week at most unless a human overrides, and every run records which trigger fired and on what evidence.
Worked example
An online retailer trains a demand model nightly and adds two triggers. The first fires when the rolling 14-day forecast error on recent labels exceeds the rollout guardrail. The second fires when drift persists on avg_order_value for three consecutive days.
Each trigger also requires at least seven days of new labeled data. That guard matters: without it, a Monday trigger would find nothing new since Sunday's run and would produce a model that is essentially the incumbent at full cost. When a trigger fires, the pipeline retrains, scores the candidate against the incumbent on the same holdout window, and only opens a canary if the candidate is not worse. The nightly schedule keeps the floor, and the triggers mean a genuine regime change is not stuck waiting for the next monthly slot.
Check yourself
- Why should retraining be automatic while promotion stays gated?
- What goes wrong when a trigger can fire every hour?
- Why is an upstream schema change a retraining trigger even when accuracy looks fine?
Key takeaways
- A schedule sets the floor; evidence-based signals accelerate it.
- Every trigger should state its data window and a minimum of new labeled data.
- Retraining is safe to automate; promotion is a review decision followed by a canary.