Sub topic 1
Why Production Models Need Retraining
Prerequisites
This chapter assumes you understand the basic machine learning workflow: training a model, validating it, testing it, and deploying it to serve predictions. You should also know that a model learns patterns from historical data and that production data arrives later under different conditions.
A deployed model does not learn automatically from new requests. Its parameters stay fixed unless a new training run updates them. The world around the model can change, so patterns that were useful during training can become less accurate.
Why accuracy degrades
Suppose a fraud model was trained on transactions from one year. Customers, payment methods, attack techniques, and business rules may all change during the next year. The model still applies its old relationships to new cases.
Common sources of degradation include:
- The distribution of input values changes. For example, customers begin using mobile payments more often than card payments.
- The relationship between inputs and the target changes. For example, a behavior that once indicated fraud becomes common among legitimate customers.
- The target population changes. A model trained for one region may receive requests from another region.
- The data collection process changes. A renamed field, new default value, or broken sensor can alter features without changing the real-world process.
- Seasonal patterns appear. A demand model may perform differently during holidays than during ordinary weeks.
These changes can reduce prediction quality even when the serving software is healthy. Retraining gives the model new examples that represent current conditions.
A production feedback loop
A retraining system connects observed production behavior to a controlled training process:
Monitoring may detect a change in inputs before the true outcomes are available. When outcomes arrive later, the system can measure actual performance. A retraining decision should use both kinds of evidence where possible.
| Signal | What it tells you | Typical response |
|---|---|---|
| Input distribution changed | Recent requests differ from training data | Investigate drift and collect data |
| Error rate increased | Predictions are less useful | Evaluate a challenger model |
| New labeled examples accumulated | More current training evidence exists | Consider scheduled retraining |
> callout note > Retraining is a response to evidence, not a guarantee of improvement. New data can be biased, corrupted, or too small. Every retrained model needs validation before deployment.
Retraining also has costs. It consumes compute, requires data checks, and can introduce regressions. The goal is therefore not to retrain as often as possible. The goal is to refresh the model when current evidence justifies the risk and cost.
Exercise
Exercise
A model's input distributions have changed, but its measured accuracy has not yet changed because labels arrive after 30 days. Why might retraining still be premature?
Show answer
The distribution change may be harmless, and the available labels are not yet sufficient to prove that a new model would perform better. Investigate the data and wait for reliable outcomes or another well-defined trigger.