InterviewStack.io LogoInterviewStack.io

Model Diagnosis & Improvement Questions

Techniques for diagnosing underperforming machine learning models, including error analysis, feature importance assessment, data quality checks, model monitoring, drift detection, hyperparameter tuning, retraining strategies, and deployment considerations.

MediumTechnical
54 practiced
For a high-firehose streaming feature with thousands of updates per second, propose an efficient approach to detect covariate distribution change. Discuss use of PSI, KS test, Earth Mover's Distance, and streaming/approximate techniques such as quantile sketches and histograms. Explain choices for sampling, window size, thresholds, and how to make the approach compute- and memory-efficient.
EasyTechnical
87 practiced
Explain how learning curves can help you decide whether to gather more training data or to increase model capacity. Describe the typical learning curve patterns for underfitting and overfitting, how to interpret the gap between training and validation errors, and recommended actions in each scenario.
MediumTechnical
48 practiced
A model's average inference latency tripled after a new release. Describe a step-by-step debugging plan you would follow to isolate whether the regression is due to the model, serving infrastructure, preprocessing, or input distribution changes. Include telemetry to capture, profiling tools or metrics to run, isolation experiments, and quick mitigations to reduce latency while you investigate.
MediumTechnical
50 practiced
Implement in Python a function 'walk_forward_cv_split(dates, n_splits, min_train_period, test_period)' that yields train and test index pairs for time-series walk-forward validation. Ensure no leakage by disallowing future data in training windows and handle edge cases where data is sparse or dates are irregular.
HardTechnical
84 practiced
You lead ML engineering for a service that trains large models nightly and must reduce carbon footprint while maintaining SLAs. Propose optimizations across model architecture, training practices, infrastructure scheduling and ops such as lower-precision training, reducing unnecessary hyperparameter trials, spot instances, regional scheduling during low-carbon hours, dataset curation, and model selection trade-offs. Include measurement and targets.

Unlock Full Question Bank

Get access to hundreds of Model Diagnosis & Improvement interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.