Machine Learning Fundamentals interview question · Most asked

Your model scored well offline but performs badly in production. What do you check?

Scenario Asked in Machine Learning Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Compare what the model sees in production with what it saw in training. The usual causes are training-serving skew (features computed differently), data drift (the input distribution changed), concept drift (the relationship changed), leakage that inflated offline scores, or a pipeline bug such as wrong feature order or units.

Longer Answer

  1. Log production inputs and predictions and compare feature distributions with training data (PSI, KS tests, summary statistics per feature).
  2. Recompute features offline for production requests and diff against the online values: skew shows up as mismatches.
  3. Check leakage in the offline evaluation (features unavailable at decision time).
  4. Look at segments: new markets, devices or customer types underrepresented in training.
  5. Label delay: production metrics may be computed on partial labels.
  6. Fix: shared feature code or a feature store, retraining on recent data, monitoring and alerts on drift, and shadow or A/B deployment before full rollout next time.

Key Points

  • Training-serving skew is the most common cause.
  • Monitor feature and prediction distributions.
  • Re-check for leakage.
  • Segment analysis; shadow deploys and retraining.

Explanation

What interviewers look for

A methodical comparison of training and serving, and production ML practices to prevent recurrence.

More Machine Learning Fundamentals questions

← All Machine Learning Fundamentals questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake