Topic
Machine Learning interview problems
Modeling, evaluation, ML systems and LLM engineering. 511 original problems, each with a worked model answer.
27 easy274 medium210 hard
Showing 391–420 of 511 results
Design a feature set and validation strategy to predict whether users will remain active, avoiding temporal leakage and quantifying predictive lift.
Model answerretentiontemporal-leakagefeature-engineeringDesign the retrieval stage of a marketplace search system that surfaces relevant listings from tens of millions of items within a tight latency budget.
Model answerretrievalembeddingssearchANNDesign a machine learning system that delivers personalized advertisements to users at scale, covering infrastructure, modeling, and evaluation.
Model answerrecommendation-systemsrankingadsreal-time-mlDesign a system to detect, classify, and quantify duplicate records in a payment transaction dataset, handling both exact matches and fuzzy near-duplicates.
Model answerrecord-linkagedata-qualityentity-resolutiondeduplicationDesign a complete ML ranking system including data collection, feature engineering, model architecture, evaluation metrics, and production deployment.
Model answermachine-learningrankingproduction-mlsystem-designDesign an end-to-end ML system that detects policy-violating item-for-sale posts by combining text, image, and behavioral signals at platform scale.
Model answermultimodalcontent-moderationclassificationsystem-designDescribe regularization methods that prevent overfitting, comparing weight penalties with dropout and explaining their train/test differences.
Model answerregularizationoverfittingdropoutweight-decayDesign preprocessing and training for an audio ML system, comparing feature representations, normalization, augmentation, and explaining a complete training workflow.
Model answeraudio-mlfeature-engineeringmodel-trainingdata-pipelineBuild features from RFQ trading data, fit a logistic win-probability model, and quantify your pricing signal edge relative to competitors.
Model answerfeature-engineeringlogistic-regressioncensored-datatradingDesign an end-to-end system that answers user questions by retrieving relevant passages from a large corpus and generating responses with citations.
Model answerraginformation-retrievalllmproduction-mlExplain how learning rate magnitude affects training stability and why gradient attenuation disproportionately impacts early layers in deep networks.
Model answeroptimizationgradientsdeep-learningDesign detection systems and training safeguards to prevent language models from gaming reward functions during reinforcement learning optimization.
Model answerreinforcement-learningrlhfreward-modelingpolicy-optimizationExplain generational advances in LLM families, how vision-language models integrate images, and why transformers use layer norm with pre-norm placement.
Model answerllmtransformersmultimodalnormalizationCode mean squared error from scratch, then build a linear regression class with fit and predict methods using gradient descent.
Model answergradient-descentloss-functionsfrom-scratchnumerical-optimizationBuild mini-batch gradient descent from scratch using NumPy to train a linear regression model with MSE loss.
Model answeroptimizationgradient-descentnumpylinear-regressionDesign a scalable retrieval and ranking pipeline for querying 10M documents under 2s latency at 500 QPS with permission enforcement.
Model answerretrievalrankingragembeddingsDesign an ML system that delivers personalized content feeds combining user interests with global trends while maintaining low latency and diversity.
Model answerrecommendation-systemsml-system-designpersonalizationretrievalExplain how bagging, boosting, and random forests reduce prediction error through their effects on bias and variance.
Model answerensemble-learningbias-variancerandom-forestboostingDesign the end-to-end architecture for a production retrieval-augmented generation system serving internal knowledge search at scale.
Model answerragsearchml-systemsarchitectureDesign a framework to select between two equity risk models by testing forecast accuracy, structural validity, and practical usability in live portfolio decisions.
Model answerrisk-modelingmodel-evaluationportfolio-managementDesign a full LLM evaluation system covering metrics, A/B comparison, hallucination detection, and a Python groundedness scorer that flags unsupported sentences.
Model answerllmevaluationhallucination-detectionragDesign and debug a user retention model: fix temporal leakage, implement proper validation, calibrate for business decisions, and establish monitoring.
Model answersupervised-learningdata-leakagemodel-evaluationcalibrationDemonstrate understanding of foundational machine learning and statistics concepts through definitions, examples, and practical considerations.
Model answermachine-learningstatisticsdecision-treesneural-networksBuild a production-ready system that answers questions from local documents using an LLM API, vector search, and streaming responses.
Model answerragllmvector-searchapi-designImplement Lloyd's algorithm with k-means++ seeding, handle edge cases, then explain how Gaussian Mixture Models and EM extend the core idea.
Model answerclusteringk-meansGMMEM algorithmDesign an end-to-end system that forecasts ad inventory and prices, dynamically paces campaign spend, and enforces hard budget caps across hundreds of thousands of concurrent campaigns.
Model answerml-system-designadsforecastingpacingDesign a production pipeline to detect harmful video content at scale, handling extreme imbalance, adversarial evasion, and human review workflows.
Model answerml-systemsclassificationimbalanced-datamultimodalDesign an end-to-end ML system that automatically produces text summaries for audio content as new episodes are released.
Model answerml-system-designnlpaudio-processingproduction-mlDesign an end-to-end ML system to predict food delivery duration, covering features, leakage, modeling, calibration, cost-sensitive decisions, fairness, and production deployment.
Model answereta-predictionquantile-regressionfeature-engineeringcalibrationArchitect a production RAG system that lets employees query a large internal document corpus and get cited, access-controlled answers within two seconds.
Model answerRAGLLMvector-searchsystem-design