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 121–150 of 511 results
Analyze sycophancy and emotional over-dependence in conversational LLMs, detailing root causes, evaluation metrics, algorithmic mitigations, and agency-preserving product controls.
Model answermachine-learningai safetyrlhfllm alignmentDesign an end-to-end ML and inventory system to predict demand distributions and output cost-optimal daily stocking levels under asymmetric waste and stockout penalties.
Model answermachine-learningdemand-forecastingprobabilistic-modelingnewsvendor-problemBuild a reproducible stratified-split pipeline with a gradient-boosted classifier for repeat-purchase prediction, report held-out AUC, and propose two ways to improve generalization.
Model answergradient-boostingscikit-learncross-validationaucArchitect an end-to-end recommendation backend and ML pipeline for a large platform offering user-created interactive experiences, emphasizing cold-start strategies and multi-task learning.
Model answerrecommendation-systemsmachine-learningsystem-designmulti-task-learningExplain which regularization mechanisms in gradient-boosted trees limit overfitting compared with a fully grown tree, and when boosting can still overfit.
Model answerxgboostgradient-boostingoverfittingregularizationWalk through how you would investigate and fix a classifier whose live quality fell sharply right after a release, covering metrics, tooling, root-cause isolation and prevention.
Model answermlopsmodel-monitoringdata-driftdebuggingDesign a fault-tolerant parser for noisy text records, hunt down three hidden bugs in a training codebase, and plan how to verify everything within a one-hour budget.
Model answerdebuggingdata-parsingdata-leakagepythonUse OLS with an intercept on daily temperature data to summarize variability, fit per-town slopes, and select the best one, two, or five predictor towns by in-sample MSE.
Model answerlinear-regressionolsfeature-selectionpandasEvaluate how Batch Normalization, adaptive optimizers, and L1/L2 penalties impact neural network training stability, optimization dynamics, and weight sparsity.
Model answerdeep-learningoptimizationregularizationbatch-normArchitect an end-to-end machine learning pipeline to forecast hourly bike-sharing demand, covering censoring adjustments, spatial-temporal features, model selection, and backtesting.
Model answermachine-learningtime-seriesdemand-forecastingfeature-engineeringAnalyze generative model trade-offs, low-rank adaptation, and alignment techniques for domain-specific medical text summarization.
Model answergenerative-aillmfine-tuningpeftDesign an internal question-answering assistant that retrieves enterprise documents to ground an LLM, then explain how you would measure, guard, and debug it.
Model answerragretrievalllmevaluationA logistic regression flagger for rare harmful uploads shows high accuracy but no detections, sparse ID features, and uneven regional quality. Lay out a plan to diagnose and repair it.
Model answerimbalanced-datalogistic-regressioncategorical-encodingfairnessDetailed breakdown of transformer mechanisms, computational complexity, stability strategies, structural variants, and domain-specific adaptations.
Model answertransformersattention-mechanismdeep-learningllmJudge whether a new ad-ranking model is ready to replace production: pre-launch checks, resolving a CTR vs revenue conflict, experiment design, and an executive-ready readout.
Model answerab-testingads-rankingmodel-evaluationguardrail-metricsDerive and implement the forward and backward passes for scaled dot-product multi-head attention without autograd, alongside causal masking and numerical stability considerations.
Model answertransformersattentionbackpropagationdeep-learningDefine a comprehensive strategy to transform a raw text-to-video ML model into a viable, scalable commercial product.
Model answerGenerative AIProduct StrategyMLOpsModel DeploymentAnalyze why a shallow network underfits and a very deep sigmoid network fails to train, using the bias-variance decomposition, the backprop chain rule, ReLU and residual connections.
Model answerbias-variancevanishing-gradientsbackpropagationdouble-descentWalk through a virtual-environment shell script, then review an outlier-clipping transformer and three imputers for design, style and testability, and write a key unit test.
Model answershell-scriptingsklearn-transformersdata-leakageoutlier-handlingArchitect an ML prediction pipeline to capture explicit and implicit user dissatisfaction on a social feed, handling extreme label skew, multi-task ranking, and real-time inference.
Model answermachine-learningsystem-designrecommendation-systemsrankingAnswer a broad set of statistics and ML fundamentals questions, from moment generating functions to attention, then sketch a system that finds relevant users.
Model answerstatisticsdeep-learninghypothesis-testingtree-ensemblesDesign and implement an end-to-end binary classification workflow in Python, covering time-aware splits, imbalance, tuning, calibration, error analysis, explainability and production safeguards.
Model answerclassificationtime-aware-validationclass-imbalancecalibrationDetailed comparison of RNNs, LSTMs, Transformers, and Model Predictive Control, including mathematical formulations, structural trade-offs, and hybrid learning-control frameworks.
Model answerdeep-learningtransformersmpcroboticsDesign a machine learning system that predicts driver pickup time and trip duration, covering labels, features, models, metrics, bias, noise, serving, monitoring, and post-launch experiments.
Model answereta-predictionspatiotemporalmodel-designcalibrationPlan an end-to-end email targeting system for a new title release, covering cold start, causal uplift modeling, offline metrics, and online A/B testing.
Model answeruplift-modelingrecommendation-systemsab-testingsystem-designDesign a scalable text-to-video and video-to-video retrieval architecture handling billions of clips, detailing modeling choices, vector indexing, serving pipelines, and evaluation strategy.
Model answersystem-designinformation-retrievalvector-searchdeep-learningPropose an AI feature strategy for an online grocery service: choose a shopper segment, find high-value pain points, prioritize a first release, and define success metrics and guardrails.
Model answerproduct-senseai-productrecommendationsprioritizationArchitect an end-to-end binary classification pipeline for readmissions with missing data, extreme class imbalance, metrics choice, and feature-engineered logistic regression.
Model answermissing-dataclass-imbalancelogistic-regressionevaluation-metricsAnalyze why setting all weights to zero causes hidden unit symmetry in deep networks while remaining functional for single-layer models.
Model answerdeep-learningneural-networksgradient-descentmodel-architectureBreak down bias-variance decomposition, diagnose deep learning overfitting with remedies, and derive vanishing gradient mechanics alongside modern structural solutions.
Model answerbias-varianceoverfittingvanishing-gradientsdeep-learning