You join as lead of a six-person ML team where three of the last five models looked strong offline, for example AUC 0.91, and then dropped to about 0.78 in production. How do you raise the team's level so this stops happening?
Machine learning basics · Pro 2
Short answer
I would treat it as a team practice problem, not individual mistakes. Together we would trace each failed model to its cause, usually leakage or a wrong split, then agree standards: time-based splits, features computed as of prediction time, and a shadow period before launch. I would teach through design reviews and pairing, not by redoing their work.
Deeper answer
A fall from 0.91 to 0.78 three times is a pattern. Common causes are features that include information from after the prediction moment, random splits on data that has time or user structure, and training data that differs from live traffic. The technical fixes are known. The lead's job is to make the team find and own them.
I would run blameless reviews of the three models, with the authors presenting. Then we write a short validation standard and add a design review before training starts, where the split and each risky feature are questioned. I would pair senior and junior engineers and rotate who reviews. For example, a churn model that used the number of support calls in the last 30 days may have counted calls made after the churn date. Interviewers listen for diagnosis before rules, shared standards, teaching by review, and a measure such as the offline to online gap per model.
What a strong answer covers
- Diagnoses the past failures with the team, without blame
- Names likely causes: leakage, wrong split, train and live mismatch
- Sets shared standards: time-based split, point-in-time features
- Adds a shadow or staged launch before trusting offline numbers
- Mentors through design reviews and pairing, and tracks the gap
Answer it out loud in the mock interview about 3 min
Follow-ups to expect
- How would you check one feature for leakage?
- A senior engineer says the new reviews slow the team down. What do you answer?
- How would you know in six months that the team has improved?
Common mistakes
- Rewriting the models yourself instead of teaching the team
- Blaming the engineers who built the failed models
- Adding rules without first finding the real causes
Learn it
- How would you tell whether a new model really performs better in an A/B test?
- Explain the bias-variance trade-off.
- What is the difference between a random forest and gradient boosting?
- How does k-means work, and how do you choose k?
- What is data leakage, and how do you prevent it?
- Give an example of feature engineering that made a model better.
- How do you know whether you have enough training data?
- How do you handle a heavily imbalanced classification problem, such as fraud detection?
- What is the difference between linear and logistic regression?
- How do you deal with missing values in a dataset?
- Walk me through an ML project you did, end to end.
- What is overfitting, and how do you spot it?
- Explain precision and recall with an example.
- What do L1 and L2 regularisation do?
- Your team retrains all 40 production models every night, which costs about ₹18 lakh a month in compute, and nobody remembers why. How would you decide which models really need it?
- What is the difference between supervised and unsupervised learning?
- Why do we split data into training, validation and test sets?
- What is the difference between training and inference?