Topic
Machine Learning interview problems
Modeling, evaluation, ML systems and LLM engineering. 510 original problems, each with a worked model answer.
27 easy273 medium210 hard
Showing 481–510 of 510 results
Design a complete gradient boosting pipeline for rare-event classification: explain the regularized objective, tune hyperparameters, and build a leakage-free validation strategy.
Model answergradient-boostingregularizationimbalanced-classificationmodel-validationDesign an ML system to forecast user purchase likelihood while handling temporal constraints, severe class imbalance, and business-driven precision requirements.
Model answertime-seriesimbalanced-datafeature-engineeringmodel-evaluationAnalyze cost-sensitive threshold selection, compare ensemble methods for production systems, and explain how regularization penalties shape model weights.
Model answermodel-evaluationensemble-methodsregularizationcost-sensitive-learningDesign an anomaly-based fraud detection system, select appropriate techniques, and define evaluation metrics when ground-truth labels are limited or biased.
Model answeranomaly-detectionfraudevaluation-metricsunsupervised-learningDesign a recommendation platform that serves both an on-demand content feed and selective push notifications, balancing relevance with user attention costs.
Model answerrecommendation-systemsrankingpersonalizationml-infrastructureDesign a search system that answers questions from internal documents with citations while enforcing access permissions and preventing security exploits.
Model answerretrievalsecurityragnlpBuild an online inference system that groups compatible GPU requests into batches to maximize throughput while meeting latency SLAs.
Model answerml-systemsbatchingdistributed-systemsgpuExplain attention in modern neural architectures, contrast autoregressive and bidirectional pretraining approaches, and discuss precision-recall tradeoffs.
Model answerdeep-learningnlpevaluation-metricsArchitect a production system that uses language models to solve mathematical problems by orchestrating symbolic computation, code execution, and tool integration.
Model answerllmtool-useevaluationproduction-mlDesign an end-to-end RAG system that answers questions from product documentation and queries user-specific metadata with secure, tenant-isolated access.
Model answerretrieval-augmented generationllmsystem architectureauthorizationDescribe a machine learning system you built from problem definition through deployment, covering architecture, modeling choices, evaluation, and production concerns.
Model answerml-system-designproduction-mlarchitectureexperimentationDesign and optimize a constrained multimodal serving system, build fast video retrieval, and explain dropout, normalization, overfitting, and RL-based LLM alignment.
Model answermultimodalretrievalnormalizationdropoutBuild a ranking system for e-commerce ads that optimizes user engagement, advertiser outcomes, and platform revenue while handling cold-start and fairness.
Model answerrankingmulti-task-learningadse-commerceDesign and evaluate a simple item-to-item collaborative filtering system for an e-commerce platform recommending related products on a product detail page.
Model answermachine learningrecommendation systemscollaborative filteringevaluationDesign a system to compute matrix multiplication distributed across two GPUs, handling partitioning, communication, compute overlap, and aggregation.
Model answerdistributed-systemsgpu-computingparallel-algorithmsml-infrastructureDerive and implement batch gradient descent to minimize squared error for linear models, covering convergence criteria, step size selection, and regularization.
Model answeroptimizationgradient-descentlinear-regressionregularizationDerive the bias-variance-noise decomposition of MSE, and explain how polynomial degree, dataset size, and L2 regularization shift each term.
Model answerbias-variance tradeoffregularizationoverfittingDesign and evaluate a simple content-based filtering system that recommends movies to a new user who has rated only a handful of films.
Model answermachine learningrecommendation systemscontent-based filteringfeature engineeringImplement KNN without using a pre-built classifier, tune k via cross-validation, and generate predictions for an unlabeled dataset.
Model answerknnclassificationhyperparameter-tuningDecide whether to randomize by user, session, or request for a new ML-powered feature, and explain the consequences of each choice.
Model answermachine learningonline experimentsA/B testingstatisticsDesign an A/B test to evaluate a new learned second-stage ranker, covering metric choice, experiment validity, novelty effects, and post-experiment rollout decisions.
Model answermachine learningonline experimentsrankingA/B testingDesign a complete ML pipeline to predict a real-valued interaction score for pairs of molecules, covering data quality, featurization, splitting, modeling, evaluation, and deployment.
Model answerml-system-designcheminformaticsregressiongraph-neural-networksDesign and defend an end-to-end ML system for fraud detection where genuine fraud accounts for less than 0.1% of transactions.
Model answermachine learningclass imbalancefraud detectionevaluationIdentify subtle forms of target leakage in a credit risk pipeline and explain how to fix each without destroying predictive signal.
Model answermachine learningfeature leakagecredit riskdata preprocessingPlan and analyze an A/B test for a new learning-to-rank model replacing a heuristic ranker in a content feed, handling interference, novelty effects, and metric trade-offs.
Model answermachine learningexperimentationrankingA/B testingDesign a rigorous experiment to identify, quantify, and correct for novelty and primacy effects when A/B testing a new ML-driven content ranking model.
Model answermachine learningonline experimentsA/B testingnovelty effectDecide which evaluation metrics best capture a fraud detection model's real-world performance when only 0.3% of transactions are fraudulent.
Model answermachine learningevaluation metricsimbalanced classificationfraud detectionImplement conv2d from scratch in NumPy, correctly handling padding, stride, multi-channel inputs, and optional bias.
Model answerconvolutionnumpydeep-learning-fundamentalsDesign and evaluate a strategy to recommend newly added items before any user interaction data exists.
Model answermachine learningrecommendation systemscold startfeature engineeringIdentify subtle data leakage in a customer churn prediction pipeline and explain how to fix it without sacrificing model utility.
Model answermachine learningfeature engineeringdata leakageclassification