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?
Machine learning basics · Pro 2
Short answer
I would measure instead of guessing. For each model, compare a model trained today with ones trained a week and a month ago on fresh data. If the old one is as good, nightly retraining is waste. Then I set cadence per model by decay rate and business value, add drift triggers, and keep the retraining pipeline tested.
Deeper answer
Retraining frequency should follow how fast the world changes for that model. A fraud model facing new attack patterns may lose value in days. A model that predicts delivery time from distance and city may be stable for months. A staleness test makes this visible: evaluate models of different ages on the newest labelled data and plot quality against age.
There are trade-offs in both directions. Retraining rarely saves money, but the pipeline then runs seldom and may be broken when you need it, so keep a scheduled dry run. Retraining often adds risk too: every new model is a release that can go wrong, and it needs automatic validation against the current one. A possible result: 5 models stay nightly, 20 go weekly, and 15 go monthly with drift alerts. Interviewers listen for evidence per model, a link between cost and value, triggers, and safe promotion.
What a strong answer covers
- Measures decay: compares models of different ages on fresh data
- Sets cadence per model by decay rate and business value
- Adds drift or performance triggers for early retraining
- Validates each new model against the current one before promotion
- Keeps the pipeline exercised so it works when needed
Answer it out loud in the mock interview about 3 min
Follow-ups to expect
- Labels for one model arrive 60 days late. How do you run the staleness test for it?
- What are the risks of retraining too often?
- Which drift signal would you use as a trigger, and why?
Common mistakes
- Keeping or cutting the nightly schedule with no measurement
- One retraining schedule for every model
- Promoting each retrained model without comparing it to the current one
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?
- 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?
- 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?