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 301–330 of 572 results

  • MetaMediumData Scientist
    What features and feature selection would you use?

    This question evaluates feature engineering, feature selection, and production-aware machine learning system design skills for ranking shop ads, within the Machine Learning domain for a Data Scientist role.

    Machine LearningTechnical Screen
  • MetaMediumData Scientist
    Which clustering algorithm would you use and why

    A Meta Data Scientist machine learning screen on choosing a clustering algorithm for social-product users. It contrasts traditional feature-vector clustering (k-means, GMM, hierarchical, DBSCAN/HDBSCAN) with social-graph community detection (Louvain/Leiden, spectral, SBM, node embeddings), and covers preprocessing, choosing the number of clusters, evaluation, directed/weighted graphs, and scaling to millions of users.

    Machine LearningTechnical Screen
  • MicrosoftMediumData Scientist
    Build and Defend a Baseline Model from a CSV

    Tests end-to-end applied machine learning design on tabular data: framing the prediction target, eliminating data leakage, establishing a leakage-free validation strategy, selecting baselines and evaluation metrics, and planning deployment monitoring and rollback.

    Machine LearningOnsiteModel EvaluationData LeakageMLOps
  • MicrosoftMediumMachine Learning Engineer
    Clean OCR data and build an LLM dataset

    This problem tests the ability to design an automated pipeline for cleaning noisy OCR text output and preparing it for supervised fine-tuning of an LLM.

    Machine LearningOnsiteData EngineeringOCRLLM Fine-tuning
  • MicrosoftHardData Scientist
    Compare CNN/RNN/LSTM and implement K-means

    This question evaluates understanding of deep learning architectures (CNN, RNN, LSTM) and unsupervised clustering implementation (K-means), covering inductive biases, parameter sharing and receptive fields, LSTM gating and vanishing-gradient behavior, tensor shape reasoning, algorithmic complexity, initialization, and cluster handling.

    Machine LearningOnsite
  • MicrosoftMediumMachine Learning Engineer
    Compare preference alignment methods for LLMs

    This question tests your conceptual understanding of alignment techniques, your ability to evaluate trade-offs between stability and performance, and your approach to measuring model safety and utility.

    Machine LearningOnsiteRLHFDPOAlignment
  • MicrosoftEasyData Scientist
    Compute and plot a precision–recall curve

    This question evaluates understanding of binary classification evaluation metrics—precision, recall, precision–recall curves, and related summaries like Average Precision/AUPRC—within the Machine Learning domain and is relevant for Data Scientist roles.

    Machine LearningTechnical Screen
  • MicrosoftHardData Scientist
    Design a model for imbalanced conversions

    This question evaluates a data scientist's ability to design and validate end-to-end predictive models for imbalanced binary outcomes, encompassing feature engineering, class imbalance handling, probability calibration, thresholding for budgeted targeting, validation, monitoring, and interpretability.

    Machine LearningTechnical Screen
  • MicrosoftMediumData Scientist
    Explain Deep Learning to a 5-Year-Old Child

    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 Explain Deep Learning to a 5-Year-Old Child states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    Machine LearningTechnical Screen
  • MicrosoftEasyData Scientist
    Explain KNN and PCA and key tradeoffs

    Evaluates understanding of K-Nearest Neighbors (instance-based classification/regression) and Principal Component Analysis (linear dimensionality reduction), highlighting tradeoffs such as distance metric and preprocessing effects, computational and high-dimensional limitations, PCA’s optimization/computation approaches, and the impact of dimensionality reduction on downstream nonparametric methods. Common in the Machine Learning domain for Data Scientist internships at a fundamentals-to-intermediate abstraction level because it probes both theoretical foundations and practical considerations for applying non-parametric algorithms and linear feature extraction to real datasets.

    Machine LearningTechnical Screen
  • MicrosoftEasyData Scientist
    Explain KNN and how to tune it

    This question evaluates understanding of the K-Nearest Neighbors algorithm and related competencies such as hyperparameter selection (K, distance metric, weighting), data preprocessing impacts, failure modes in high-dimensional or imbalanced settings, and model evaluation strategies.

    Machine LearningTechnical Screen
  • MicrosoftEasyData Scientist
    Explain SHAP and build an ML project

    This question tests your conceptual understanding of SHAP values for model interpretability and your ability to design a robust, end-to-end machine learning pipeline for a real-world business problem.

    Machine LearningTechnical ScreenSHAPInterpretabilityMLOps
  • MicrosoftMediumData Scientist
    Explain SHAP in an ML System

    This question evaluates a data scientist's competence in designing and operationalizing end-to-end machine learning systems in the Machine Learning domain, covering problem framing, label and feature design, model selection, evaluation, deployment, monitoring, and model interpretability using SHAP.

    Machine LearningTechnical Screen
  • MicrosoftMediumMachine Learning Engineer
    Explain metrics, regularization, and ablation studies

    This question evaluates understanding of classification evaluation metrics, regularization methods, and experimental design for component-level analysis in NLP and broader Machine Learning systems, testing competencies in performance measurement, regularization trade-offs, and causal attribution of model components.

    Machine LearningTechnical Screen
  • MicrosoftMediumSoftware Engineer
    Greedy and Top-k Beam Search Decoding That Returns the Sentence Probability

    A coding question on decoding a sequence from a next-token probability distribution: implement greedy decoding, extend it to beam search that keeps the top k partial sequences, and return the chosen sequence with its overall probability. It also probes why long sequences tend to receive low probability and how decoding should account for that.

    Machine LearningTechnical Screen
  • MicrosoftMediumData Scientist
    How would you build and evaluate a classifier?

    This problem tests your ability to design a binary classification pipeline from metric selection to production monitoring, with a focus on aligning technical decisions with business objectives.

    Machine LearningTechnical ScreenClassificationModel EvaluationImbalanced Data
  • MicrosoftMediumMachine Learning Engineer
    Measure LLM Quality and Detect Hallucinations, Then Implement an Evaluation Component

    A hands-on LLM evaluation exercise on measuring model quality, comparing prompt or model versions, and detecting hallucinations against supplied context. It also asks for a small Python groundedness scorer that flags unsupported sentences and aggregates a hallucination rate, testing evaluation judgment and clean, well-tested code.

    Machine LearningOnsite
  • MillenniumMediumSoftware Engineer
    How would you model stock price prediction?

    This problem tests the candidate's ability to design an end-to-end machine learning pipeline for financial time-series forecasting, specifically focusing on the nuances of feature engineering and evaluation in a non-stationary environment.

    Machine LearningTechnical ScreenTime-SeriesFeature EngineeringFinancial Engineering
  • Mistral AIMediumMachine Learning Engineer
    Answer an LLM Systems Quick-Fire Interview

    This question tests your breadth of knowledge across the LLM stack, specifically focusing on inference optimization, evaluation strategies, and operational trade-offs.

    Machine LearningOnsiteLLMInferenceOptimization
  • Mistral AIMediumSoftware Engineer
    Compare RMSNorm and LayerNorm in Transformer Blocks

    Compare LayerNorm and RMSNorm equations, centering, shift behavior, hidden-feature axes, numerical precision, and the tradeoffs behind simpler normalization.

    Machine LearningTechnical Screen
  • Mistral AIMediumSoftware Engineer
    Compare Reward-Model RLHF and Direct Preference Optimization

    Compare reward-model RLHF and DPO through preference data, policy objectives, reference regularization, training stages, and evaluation under distribution shift.

    Machine LearningTechnical Screen
  • Mistral AIMediumSoftware Engineer
    Compare Tensor Parallelism and Pipeline Parallelism

    Compare transformer tensor and pipeline parallelism through parameter partitioning, collectives, activation transfers, microbatch bubbles, memory, and inference latency.

    Machine LearningTechnical Screen
  • Mistral AIMediumSoftware Engineer
    Explain Adam, AdamW, and Decoupled Weight Decay

    Understand Adam moment estimates and bias correction, then compare gradient-based L2 regularization with AdamW’s decoupled weight decay and learning-rate interaction.

    Machine LearningTechnical Screen
  • Mistral AIMediumSoftware Engineer
    Explain Mixture of Experts and Expert Parallelism

    Explain sparse mixture-of-experts routing and expert parallelism, including token dispatch, weighted combination, load balancing, overflow policies, and communication costs.

    Machine LearningTechnical Screen
  • Mistral AIHardMachine Learning Engineer
    Explain Transformer Internals and Implement Top-p Decoding

    Assess understanding of causal transformer decoding mechanics, including attention and KV caching, paired with an implementation of nucleus (top-p) sampling with temperature scaling.

    Machine LearningTechnical ScreenTransformersSampling AlgorithmsLLM Inference
  • Mistral AIMediumSoftware Engineer
    Explain the Forward and Reverse Processes of Diffusion Models

    Explain Gaussian diffusion corruption, timestep-conditioned denoising, noise-prediction training, iterative reverse sampling, latent representations, and guidance tradeoffs.

    Machine LearningTechnical Screen
  • Mistral AIMediumMachine Learning Engineer
    Optimize Nearest-Center Assignment Without Materializing NxKxD Distances

    This problem tests the ability to optimize memory usage in distance computations by leveraging algebraic expansion to avoid creating an intermediate (N, K, D) tensor.

    Machine LearningOnsiteNumPyVectorizationLinear Algebra
  • MixpanelMediumData Scientist
    Validate Features That Predict User Retention

    Learn to evaluate retention features with leakage-safe time windows, cohort validation, baselines, ablations, and calibrated predictions.

    Machine LearningTechnical Screen
  • Morgan StanleyMediumData Scientist
    Answer basic probability and statistics questions

    This problem tests your conceptual understanding of probability distributions, statistical bias in data collection, and the relationship between covariance and linear correlation.

    Machine LearningOnline AssessmentStatisticsProbabilityBias
  • NVIDIAMediumSoftware Engineer
    Compare deep learning framework trends

    Compare deep learning framework trends evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    Machine LearningTechnical Screen