InterviewStack.io LogoInterviewStack.io

Model Evaluation and Validation Questions

Measuring whether a model is good enough to trust and ship. Covers metric selection for classification, regression, and ranking (precision/recall, ROC-AUC, calibration, RMSE), offline validation design, evaluation-metric-to-business-objective alignment, and production safety guardrails. Emphasizes choosing metrics that reflect real objectives and avoiding misleading evaluations.

HardTechnical
93 practiced

Your offline evaluation shows Model A clearly beating Model B, but the online A/B test shows no meaningful difference. Propose an investigation plan to identify the cause, and recommend concrete changes to your offline evaluation process to improve alignment going forward.

HardSystem Design
86 practiced

Design a comprehensive evaluation framework for a large-scale search or recommendation product serving tens of millions of users monthly. Cover offline metrics (NDCG@k, recall@k, MAP), how you would correct for position and exposure bias, the online metrics you would track (CTR, revenue, retention), the logging schema needed for counterfactual evaluation, and how offline evaluation, online A/B tests, and champion-challenger deployment fit together.

EasyTechnical
94 practiced

Compare ROC-AUC and PR-AUC (precision-recall AUC) for a binary classifier. For a task where positives are rare (for instance 0.5% prevalence), which curve is more informative and why? Sketch or describe a scenario where ROC-AUC looks strong but PR-AUC reveals the model is actually poor, and explain the intuition for why that happens.

HardTechnical
77 practiced

Propose a comprehensive adversarial-testing strategy for an NLP text classifier: black-box and white-box tests, character-level perturbations, synonym substitution and paraphrase attacks, and prompt-injection or data-poisoning scenarios. Explain what metrics you would use to report robustness, and how you would integrate continuous adversarial testing into CI/CD.

MediumSystem Design
76 practiced

Design an online A/B test to compare a new model (for example a ranking or recommendation model) against the current production model. Specify your primary metric and guardrail metrics (revenue, latency, error rate), the bucketing strategy and unit of randomization, how you would compute the required sample size to detect a given relative lift with adequate power, and how you would handle sequential monitoring, early stopping, and novelty effects during the rollout.

Unlock Full Question Bank

Get access to hundreds of Model Evaluation and Validation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.