How do you decide how often to retrain a production ML model, and what are degenerate feedback loops and how can you mitigate them?

ML system design, Deployment
Level L3 Intermediate. Length Medium. Nature Th Theoretical.

What's being asked

Whether you know how to measure temporal model decay empirically to set retraining frequency, and recognise how a model's own predictions corrupt future training data.

Key idea

Retraining cadence should be grounded in an empirical staleness curve (evaluating a fixed model across future time windows), balanced against compute cost, label delay and release risk. In interactive systems such as recommenders, a model also shapes which items users see and label, creating degenerate feedback loops that amplify bias unless countered with exploration, propensity logging or random traffic.

Steps

  1. Measure model decay empirically: train a model on data up to week t and evaluate it without retraining on held-out slices from weeks t+1,t+2,… to see how quickly offline metrics (such as log loss or AUC, the area under the receiver operating characteristic curve) degrade.
  2. Choose between scheduled and drift-triggered retraining: use a fixed cadence (daily, weekly or monthly) when decay is steady and predictable, and add drift- or performance-triggered retraining when shifts are sudden (avoiding unnecessary churn when data are stationary).
  3. Weigh cost, label latency and deployment risk: more frequent retraining cannot help faster than the label feedback delay (for example, 30-day loan default or 7-day attribution), and each retrain incurs compute cost plus the operational risk of pushing a bad model through evaluation and canary gates.
  4. Define degenerate feedback loops: when a model's predictions determine which items receive exposure (such as top-ranked products, feeds or fraud blocks), only exposed items generate fresh labels. Popular or initially favoured items receive more impressions and clicks, boosting their future training scores while unshown items starve in a self-reinforcing loop.
  5. Mitigate feedback loops in data collection and training: route a small fraction of traffic to controlled exploration (such as ε-greedy or Thompson sampling) or a fully randomised holdout policy, and log serving propensities so training and offline evaluation can reweight observations with IPW (inverse propensity weighting).

Common mistakes

How long your answer should be

About 3 minutes; decay experiment, scheduled vs triggered, label latency, then feedback loop mechanism and 3 mitigations.

Read this

Previous in ML system design: How do you design a CI/CD (continuous integration and continuous delivery) pipeline for a production ML system, and how does it differ from ordinary software CI/CD?
Next in ML system design: Clicks from a ranked list are biased by display position. Under the examination hypothesis P(click∣item,pos)=P(examined∣pos)×P(relevant∣item), with position propensities [1.0,0.6,0.3] for positions 1–3, how do you show that inverse propensity weighting (IPW) gives an unbiased estimate of relevance, and what are the naive click-through rate (CTR) and the IPW estimate for an item shown 100 times at position 1 (30 clicks), 100 times at position 2 (18 clicks), and 200 times at position 3 (18 clicks)?