InterviewStack.io LogoInterviewStack.io

Model Evaluation and Quality Assessment Questions

Covers evaluation methods, metrics, and quality assessment approaches for machine learning models including both predictive models and generative models. Topics include selecting appropriate metrics such as accuracy, precision, recall, F one score, area under curve for ranking, root mean square error and mean absolute percentage error for regression, and the rationale for using multiple metrics and baselines. For generative and large language models, covers automatic metrics such as BLEU, ROUGE, METEOR, semantic similarity scores, LLM based evaluation techniques, human evaluation frameworks, factuality and hallucination checking, adversarial and stress testing, error analysis, and designing scalable, cost effective evaluation pipelines and quality assurance processes.

EasyTechnical
78 practiced
Implement precision, recall, and F1 in Python without external libraries. Signature: def precision_recall_f1(y_true, y_pred): -> (precision, recall, f1). Both inputs are iterables of 0/1. The implementation should run in O(n) time and handle edge cases like zero positive predictions.
HardTechnical
67 practiced
Describe how metric gaming (Goodhart's law) happens when teams optimize proxies instead of true business objectives. Propose an evaluation regime to detect and mitigate gaming including adversarial holdout sets, randomized audits, long-term business metrics, cross-team guardrails, and continuous monitoring for suspicious improvements that don't correlate with business outcomes.
EasyTechnical
94 practiced
Describe the BLEU metric for machine translation: how n-gram precision and the brevity penalty are combined. Explain major limitations of BLEU when evaluating open-ended LLM outputs such as summarization or dialog, and suggest alternative or complementary automatic metrics and why human evaluation is still required.
MediumTechnical
66 practiced
List and compare automated approaches to detect hallucinations in LLM outputs: QA-based factuality checks, NLI entailment-based detectors, knowledge-base grounding and citation matching, LLM-as-evaluator scoring, and retrieval-augmented verification. For each approach describe strengths, weaknesses, and how you would validate and calibrate it with human labels.
EasyTechnical
118 practiced
Explain precision, recall, and F1 score for binary classification. Provide mathematical definitions and formulas using true positives (TP), false positives (FP), false negatives (FN), and true negatives (TN). Give a short numeric example using a confusion matrix and explain in what scenarios F1 is preferred over accuracy, including brief notes on macro and micro F1 for multiclass.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.