Katkat

practice a little every day, paws crossed ♡

Machine Learning Interview Questions

Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.

9403
Questions
546
Companies
11
Topics
8
Languages

Showing 421–450 of 572 results

  • Quantbot TechnologiesHardData Scientist
    Implement GLM Training and Prediction from an Explicit Family and Link

    Explain a from-scratch generalized linear model through family and link selection, consistent loss and gradients, numerical stability, and prediction semantics.

    Machine LearningOnline Assessment
  • Qube Research & TechnologiesHardSoftware Engineer
    Compare bagging, boosting, random forests, and bias-variance

    This question tests the theoretical understanding of ensemble learning mechanisms and their impact on the bias-variance decomposition of prediction error.

    Machine LearningTechnical ScreenEnsemble LearningBias-VarianceRandom Forest
  • Qube Research & TechnologiesHardData Scientist
    Implement and Tune KNN Classifier

    This question evaluates a candidate's competency in implementing and tuning the K-nearest neighbors algorithm, covering data preprocessing, distance-based classification, model evaluation, and hyperparameter selection.

    Machine LearningOnline Assessment
  • RedditMediumMachine Learning Engineer
    Analyze CTR Data and Train Model

    This problem tests the end-to-end workflow of building a CTR prediction model, focusing on feature engineering for high-cardinality categorical data and handling temporal leakage.

    Machine LearningOnsiteFeature EngineeringCTR PredictionData Leakage
  • RedditMediumMachine Learning Engineer
    Build and evaluate click prediction models

    This question evaluates skills in supervised probabilistic modeling for click-through rate prediction, including model selection, calibration, evaluation metric choice, cross-validation, hyperparameter tuning, and production concerns like serving and monitoring.

    Machine LearningTechnical Screen
  • RedditHardMachine Learning Engineer
    Explain and Reduce Position Bias in Ranking

    Assess understanding of position bias in click-based ranking systems, including formalizing the examination hypothesis, estimating observation propensities, training with Inverse Propensity Scoring (IPS), and designing counterfactual evaluation metrics.

    Machine LearningTechnical ScreenRankingRecommendationPosition Bias
  • RedditMediumMachine Learning Engineer
    Model y from x and interpret distributions

    This question evaluates modeling judgment in machine learning, covering problem framing (regression versus classification), baseline model and metric selection, interpretation of feature or class distribution differences, and cold-start strategies for users, items, and regions.

    Machine LearningOnsite
  • ReutersEasySoftware Engineer
    Discuss overfitting, contrastive learning, transformers

    This question evaluates understanding of supervised learning generalization (overfitting and underfitting), contrastive representation learning and contrastive loss functions, and transformer architectures, assessing core competencies in model evaluation, representation learning, and neural architecture concepts within the Machine Learning domain.

    Machine LearningTechnical Screen
  • RipplingMediumSoftware Engineer
    Find minimum of unknown convex function

    This question evaluates a candidate's understanding of convex optimization and zeroth-order (query-based) algorithm design, including reasoning about sample complexity, interval-reduction strategies, and robustness to noisy function evaluations.

    Machine LearningTechnical Screen
  • Ro.CoMediumMachine Learning Engineer
    Debug an inaccurate patient-message triage classifier service and write up fixes

    A one-hour take-home for a senior applied AI engineering role: debug a telehealth service that sorts patient messages into care categories with an urgency and a confidence score, decide when to call an LLM or send a message to manual review, and write up bugs, priorities and trade-offs. It tests debugging, safety judgment and ML evaluation.

    Machine LearningOnline Assessment
  • RobloxHardData Scientist
    Design leakage-free predictive maintenance pipeline

    This question evaluates a data scientist's competency in designing time-series predictive maintenance pipelines, focusing on temporal feature engineering, leakage prevention and point-in-time joins, handling late-arriving labels, class imbalance and cost-sensitive thresholding, probabilistic calibration, explainability, and operational drift monitoring. It is commonly asked in the Machine Learning domain to assess an applicant's ability to produce an end-to-end, production-ready workflow that balances practical implementation concerns with conceptual system-design reasoning, so the task is primarily practical application with important conceptual elements.

    Machine LearningOnline Assessment
  • RobloxHardData Scientist
    Fit logistic regression and return top features

    This question evaluates understanding of binary logistic regression, coefficient-based feature importance, and practical model-fitting considerations such as intercept inclusion and input shape handling.

    Machine LearningOnline Assessment
  • RokuMediumData Scientist
    Explain and quantify bias-variance tradeoff

    This question tests the conceptual understanding of the bias-variance decomposition of mean squared error and how specific modeling choices influence these components.

    Machine LearningTechnical ScreenBias-VarianceModel EvaluationSupervised Learning
  • RunwayHardMachine Learning Engineer
    Implement n-gram model and select n

    This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Implement n-gram model and select n states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    Machine LearningTechnical Screen
  • SalesforceMediumMachine Learning Engineer
    Explain ML and LLM fundamentals

    This question evaluates understanding of core machine learning and LLM competencies including evaluation metrics (F1 vs accuracy), differences between classification and regression, fair benchmarking, inference pipeline bottlenecks and optimization, productionization of AI services, and modern LLM concepts such as the Transformer architecture, context engineering, retrieval-augmented generation, grounding, and guardrails. It is commonly asked in Machine Learning interviews to assess both conceptual understanding and practical application, probing the candidate's ability to reason about evaluation trade-offs, system-level performance constraints, and deployment considerations rather than only algorithmic detail.

    Machine LearningOnsite
  • SalesforceMediumSoftware Engineer
    Present and Defend Recent Research on AI Agents

    This question assesses the candidate's ability to communicate complex research, isolate their specific technical contributions, and synthesize academic concepts with practical AI-agent architectural challenges.

    Machine LearningTechnical ScreenAI AgentsResearch CommunicationML Engineering
  • SamsaraMediumMachine Learning Engineer
    Explain LLM training and evaluation

    This question evaluates an engineer's competency in LLM engineering, including transformer pretraining and finetuning, alignment approaches like instruction tuning and RLHF, strategies for reducing hallucinations, evaluation and production monitoring practices, and inference optimizations.

    Machine LearningOnsite
  • Scale AIEasyMachine Learning Engineer
    Explain LLM post-training methods and tradeoffs

    This question assesses the candidate's understanding of the LLM post-training pipeline, specifically how to transition a foundation model into a helpful, safe assistant through various alignment techniques.

    Machine LearningOnsiteLLMAlignmentRLHF
  • Scale AIHardMachine Learning Engineer
    Explain Transformers, attention, decoding, RL, and evaluation

    This question evaluates understanding of transformer architectures, self- and cross-attention mechanisms, autoregressive decoding and sampling strategies, reinforcement learning–based fine-tuning (RLHF), evaluation methodologies, and training/inference optimization techniques.

    Machine LearningTechnical Screen
  • Scale AIMediumMachine Learning Engineer
    Implement universal adversarial attack on GPT-2

    Machine learning robustness prompt on safely evaluating universal adversarial prompts for GPT-2, covering threat modeling, differentiable optimization concepts, transferability, metrics, safety controls, and mitigation strategies without deployment-ready jailbreak details.

    Machine LearningTechnical Screen
  • SealthEasyMachine Learning Engineer
    Represent k-means as an MLP

    This question tests the conceptual mapping between the distance-based assignment step of k-means clustering and a single-layer neural network architecture.

    Machine LearningOnsiteK-MeansNeural NetworksLinear Algebra
  • ShopifyMediumMachine Learning Engineer
    Build a fraud detection model

    Design an end-to-end machine learning system for real-time transaction fraud detection, covering label formulation under delayed feedback, feature design, threshold selection, and continuous monitoring.

    Machine LearningTechnical Screenfraud-detectionmachine-learningsystem-design
  • ShopifyMediumMachine Learning Engineer
    Build model to predict package delivery time

    This question evaluates a candidate's competence in end-to-end machine learning system design for time-to-event forecasting, covering prediction target definition and timing, feature engineering and model selection, handling missing or delayed signals and data leakage, uncertainty quantification, and production monitoring and retraining.

    Machine LearningOnsite
  • ShopifyMediumMachine Learning Engineer
    Model Product Ranking

    This question evaluates understanding of end-to-end machine learning ranking systems, including label definition, feature engineering, model selection, training strategies, and offline/online evaluation.

    Machine LearningOnsite
  • SiemensMediumMachine Learning Engineer
    Compare GRPO and PPO and Explain Sparse Versus Dense Rewards

    This question evaluates your understanding of modern reinforcement learning post-training techniques for language models, focusing on GRPO versus standard PPO and the trade-offs between sparse outcome rewards and dense process supervision.

    Machine LearningTechnical ScreenReinforcement LearningLLM Post-TrainingPPO
  • SiemensMediumMachine Learning Engineer
    Explain SFT, DPO, PPO, and the Role of KL Regularization

    Compare SFT and preference optimization, explain the DPO log-ratio objective, and clarify its relationship to PPO and KL regularization.

    Machine LearningTechnical Screen
  • SnapchatHardMachine Learning Engineer
    Compare Batch Normalization and Layer Normalization

    Compare batch and layer normalization by their axes, learned parameters, running statistics, batch-size effects, and training-to-inference debugging.

    Machine LearningOnsite
  • SnapchatMediumMachine Learning Engineer
    Compare convolutions and transformers

    This question evaluates understanding of neural network architectures, focusing on inductive biases, data and compute trade-offs, mechanisms for handling long-range dependencies, domain-specific roles in vision and NLP, and modern hybrid approaches that address architecture limitations.

    Machine LearningTechnical Screen
  • SnapchatMediumMachine Learning Engineer
    Explain BatchNorm, optimizers, and L1/L2

    This question tests your conceptual understanding of how normalization, optimization strategies, and regularization techniques influence training stability, convergence, and model sparsity.

    Machine LearningOnsiteDeep LearningOptimizationRegularization
  • SnapchatMediumMachine Learning Engineer
    Explain CLIP, contrastive losses, and retrieval limits

    This question evaluates understanding of multi-modal representation learning and retrieval systems, covering CLIP-style joint image–text encoders, contrastive loss families, embedding-based retrieval limitations, alternative retrieval paradigms, and issues like popularity bias.

    Machine LearningTechnical Screen