Katkat

Explain bias-variance, calibration, and model drift

NVIDIAMachine Learning Engineer · Technical Screen

Last updated

This question tests your conceptual understanding of model performance degradation over time, the significance of calibrated outputs for decision-making, and the fundamental trade-off between bias and variance.

The ML Fundamentals Challenge

You are interviewing for an MLE role at a company deploying predictive models in high-stakes environments. The interviewer has asked you to explain three core ML concepts and how they relate to the production lifecycle:

  1. The Bias-Variance Trade-off: Explain what happens when a model is underfitted versus overfitted, and how increasing model complexity influences both bias and variance components of the expected test error.

  2. Probability Calibration: Suppose your classifier outputs a score of 0.8 for a positive class. What does it mean for this output to be 'well-calibrated'? Why would a model be highly accurate (e.g., high AUC-ROC) but poorly calibrated, and how can you fix this?

  3. Model Drift: Differentiate between 'Concept Drift' and 'Data Drift' (covariate shift). Provide a practical example of each, and suggest a strategy for detecting these shifts in a production system.

Your response should bridge the gap between abstract mathematical theory and operational considerations (e.g., when to trigger a model retrain).

Hints

Hint 1

For bias-variance, think about the sources of error: bias stems from simplifying assumptions, while variance stems from sensitivity to specific training data fluctuations.

Hint 2

For calibration, consider a reliability diagram where you plot the predicted probability against the observed frequency of positive outcomes.

Hint 3

For model drift, remember that data drift relates to changes in input distribution P(X), whereas concept drift relates to changes in the relationship between input and target P(Y|X).

Follow-up questions

  • If you notice a model's calibration error increasing over time, how would you determine if it is due to data drift or a fundamental change in the target variable's behavior?
  • How does the choice of a loss function impact the calibration of a neural network?
  • Can you describe a scenario where you would intentionally choose a model with higher bias to reduce total system error?