How would you diagnose whether degraded production performance is caused by overfitting versus distribution shift?

Quick Overview

Asks how to tell whether a model's drop in production performance comes from overfitting or from distribution shift. Tests offline evaluation checks, covariate and concept shift detection with PSI and adversarial validation, training-serving skew and choosing the right fix.

How would you diagnose whether degraded production performance is caused by overfitting versus distribution shift?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How would you diagnose whether degraded production performance is caused by overfitting versus distribution shift? ```hint When it broke Compare the offline numbers with the first days in production, then look at how the metric moved over time. ``` ```hint Inputs versus labels Sort your checks into those that need fresh production labels and those that only need the production inputs. ``` ### Clarifying Questions to Ask - Are ground-truth labels available from production, and with what delay? - Was the model weak from launch, or did performance decline some time after it? - How was the validation set built: a random split, a time-based split, or grouped by user or entity? - Did anything change upstream around the drop, such as a data source, the feature pipeline, the product or a policy? ### What a Strong Answer Covers - Re-checking the offline evaluation: the train and validation gap, leakage, how the split was made, and a fresh holdout - Detecting covariate shift with distribution comparisons and adversarial validation - Detecting concept or label shift, and what that requires - Using the time pattern of the decline and ruling out training-serving skew - How the remedy differs depending on the diagnosis ### Follow-up Questions - Labels arrive only 60 days after each prediction. How would you detect a problem sooner? - Adversarial validation separates training and production rows with an AUC of 0.97, yet production accuracy has not changed. What do you conclude? - How would you tell label shift (the class priors changed) apart from concept shift (the relationship between inputs and labels changed)? - What would you put in place so the next degradation is caught automatically?

Overview: Asks how to tell whether a model's drop in production performance comes from overfitting or from distribution shift. Tests offline evaluation checks, covariate and concept shift detection with PSI and adversarial validation, training-serving skew and choosing the right fix.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How would you diagnose whether degraded production performance is caused by overfitting versus distribution shift?

Clarifying Questions to Ask Guidance

  • Are ground-truth labels available from production, and with what delay?
  • Was the model weak from launch, or did performance decline some time after it?
  • How was the validation set built: a random split, a time-based split, or grouped by user or entity?
  • Did anything change upstream around the drop, such as a data source, the feature pipeline, the product or a policy?

What a Strong Answer Covers Guidance

  • Re-checking the offline evaluation: the train and validation gap, leakage, how the split was made, and a fresh holdout
  • Detecting covariate shift with distribution comparisons and adversarial validation
  • Detecting concept or label shift, and what that requires
  • Using the time pattern of the decline and ruling out training-serving skew
  • How the remedy differs depending on the diagnosis

Follow-up Questions Guidance

  • Labels arrive only 60 days after each prediction. How would you detect a problem sooner?
  • Adversarial validation separates training and production rows with an AUC of 0.97, yet production accuracy has not changed. What do you conclude?
  • How would you tell label shift (the class priors changed) apart from concept shift (the relationship between inputs and labels changed)?
  • What would you put in place so the next degradation is caught automatically?