Diagnose a Model That Scores Well Offline but Fails in Production

Last updated: November 29, 2026

Quick Overview

An underwriting model had 0.82 AUC on a held-out set, but two weeks after launch its approvals look nearly random and default rates are rising. Walk through how you would find the cause and prevent it next time.

Chalk
Machine Learning
Machine Learning Engineer
Chalk
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


An underwriting model had 0.82 AUC on a held-out set, but two weeks after launch its approvals look nearly random and default rates are rising. Walk through how you would find the cause and prevent it next time.

Training-serving skew is the problem Chalk exists to remove, and its engineers debug it with customers regularly. The interviewer wants a systematic process: compare served feature values to training values, check for leakage, then consider real drift, rather than jumping to retraining.

What the Interviewer Expects
  • Starts by comparing logged online feature values with offline values for the same entities and times
  • Checks for label leakage in the training pipeline
  • Distinguishes skew (pipeline bug) from drift (world changed) from evaluation flaws
  • Uses per-feature diagnostics such as null rates, distributions and PSI
  • Proposes structural fixes: shared definitions, logging, shadow mode
Key Topics to Cover
training-serving skew
label leakage
data drift
PSI
model debugging
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How do you compute PSI and what threshold would make you act?
  • If logs were not kept, how would you reconstruct what the model saw?
  • How could a time-based split still leak?
  • How would you decide between rolling back and retraining?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Is 'nearly random' measured on matured labels, or on early default signals? When did the model go live and did anything else ship that week? Do we log the feature vector for each served decision? Whic...

Approach

Three hypotheses, cheapest to check first:

  1. Skew: the online path computes some features differently (unit change, timezone, missing join, default value for nulls).
  2. Leakage: offline featu...

Submit Your Answer
Markdown supported

Related Questions