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 361–390 of 572 results

  • OpenAIHardSoftware Engineer
    Debug a failing ML classifier

    This question evaluates a candidate's ability to diagnose a poorly generalizing ML classifier, testing practical knowledge of data leakage, feature drift, and model calibration. It assesses applied machine learning debugging skills — including cross-validation design and error analysis — commonly tested in senior engineering and ML roles.

    Machine LearningTechnical Screen
  • OpenAIHardMachine Learning Engineer
    Debug a transformer training pipeline

    An OpenAI ML engineer technical-screen debugging question: given a PyTorch Transformer training pipeline whose loss diverges and validation accuracy stays near chance (plus mask IndexErrors, AMP crashes, and nondeterminism), identify the distinct bugs and fix them. It tests Transformer internals - attention/causal masking, teacher-forcing label shift, positional encodings, ignore_index loss, optimizer and GradScaler order, determinism, and DDP - along with writing unit tests and a structured debugging plan.

    Machine LearningTechnical Screen
  • OpenAIHardMachine Learning Engineer
    Debug transformer and train classifier

    This question evaluates debugging and practical implementation skills for transformer-based text classification, covering model correctness, training loop integrity, data preprocessing, and evaluation metrics within the Machine Learning / Natural Language Processing domain.

    Machine LearningTechnical Screen
  • OpenAIMediumMachine Learning Engineer
    Defend a Research Direction and Experiment Design

    This question evaluates a candidate's ability to synthesize the state of the art in Machine Learning, defend a research direction, and design rigorous experiments, measuring competencies in literature analysis, methodological justification, experimental design, and technical communication.

    Machine LearningOnsite
  • OpenAIHardMachine Learning Engineer
    Derive Backpropagation for Matrix-Product Layers

    This question evaluates understanding of backpropagation through linear blocks, matrix calculus, and the computation of gradients with respect to individual weight matrices in a product of trainable matrices, including reasoning about tensor shapes and matrix differentials.

    Machine LearningTechnical Screen
  • OpenAIMediumMachine Learning Engineer
    Derive Sharded Matrix Multiplication and Backpropagation

    Derive forward and backward computation for column-sharded matrix multiplication across multiple devices. Track every local tensor shape, identify the collective needed for replicated input gradients, and propose tests for shard ordering, scaling, and numerical errors.

    Machine LearningOnsite
  • OpenAIMediumSoftware Engineer
    Design Restart Strategy for Oracle Solver

    This question tests the ability to optimize restart intervals for a randomized algorithm with heavy-tailed runtime distributions, balancing the trade-off between progress and computation waste.

    Machine LearningHR ScreenProbabilistic ModelingAlgorithmsOptimization
  • OpenAIHardMachine Learning Engineer
    Diagnose Transformer training and inference bugs

    This question evaluates practical debugging skills for Transformer-based sequence models, targeting machine learning engineers who must diagnose intermittent shape/dtype errors and convergence failures simultaneously. It tests deep familiarity with the full training stack — data pipelines, attention masking, positional encoding, optimizer precision, and distributed setup — and the ability to reason about how a single root cause can manifest across multiple symptoms.

    Machine LearningTechnical Screen
  • OpenAIMediumMachine Learning Engineer
    Filter Bad Human Annotations

    Tests the ability to detect and filter low-quality human labels in large-scale dataset pipelines by modeling annotator reliability, distinguishing genuine ambiguity from noise, and evaluating downstream model performance.

    Machine LearningOnsitedata-centric-airlhflatent-variable-models
  • OpenAIHardMachine Learning Engineer
    Hand-Rolled Backprop: Running Product and Stable Cross-Entropy

    Derive and implement, without an autodiff library, the backward pass of a running (cumulative) product in linear time without division, then a numerically stable softmax cross-entropy and its gradient. Tests chain-rule fluency, prefix/suffix tricks, and gradient checking.

    Machine LearningOnsiteautodiffbackpropagationnumerical-stability
  • OpenAIHardMachine Learning Engineer
    Hand-Written Gradients: Prefix-Product Backward Pass and Stable Cross-Entropy

    Write gradients by hand: the forward and backward pass of the prefix-product operation, in linear time and without division so inputs may contain zeros, and a numerically stable softmax cross-entropy loss with its gradient in NumPy. It tests the chain rule, prefix and suffix products, and gradient checking.

    Machine LearningOnsite
  • OpenAIMediumMachine Learning Engineer
    Implement 1NN with NumPy

    Tests your ability to implement a fast, vectorized 1-Nearest Neighbor (1NN) classifier using NumPy, focusing on memory-efficient distance computations and tie-breaking.

    Machine LearningTechnical Screennumpyvectorizationmachine-learning
  • OpenAIMediumMachine Learning Engineer
    Implement Masked Cross-Entropy with Label Smoothing

    Implement a numerically stable, masked cross-entropy loss function with label smoothing and temperature scaling in NumPy, returning both the loss and analytical gradients.

    Machine LearningTechnical Screenmachine-learningnumpydeep-learning
  • OpenAIMediumData Scientist
    Implement NumPy neural-network layers

    This question tests your ability to implement fundamental neural network components using NumPy, focusing on matrix operations, broadcasting, and numerical stability.

    Machine LearningOnsiteNumPyNeural NetworksDeep Learning
  • OpenAIMediumMachine Learning Engineer
    Implement Prefix Products and Their Backward Pass

    Work through inclusive prefix products in separate-output, in-place, reverse-gradient, and parallel variants. Explain zeros, overflow, mutation and aliasing, constant temporary workspace, synchronization, floating-point effects, and the work/depth trade-offs of each part.

    Machine LearningOnsite
  • OpenAIHardMachine Learning Engineer
    Implement a 1-Nearest-Neighbor Classifier with a Manhattan-Distance Follow-Up

    Implement a 1-nearest-neighbor classifier that labels each query point with the label of its closest training point under Euclidean distance, then extend it to Manhattan distance. Tests vectorized distance computation under memory limits, tie handling and how the choice of metric changes predictions.

    Machine LearningTechnical Screen
  • OpenAIHardSoftware Engineer
    Implement a minimal reverse-mode autograd engine on PyTorch tensors

    Implement the core of a PyTorch-style autograd system: a tensor wrapper that records addition, multiplication, matrix multiplication, ReLU and sum, plus a backward method that fills in gradients for every input. Tests reverse-mode differentiation, correct ordering of the backward pass, gradient accumulation for tensors used more than once, and verification against PyTorch.

    Machine LearningTechnical Screen
  • OpenAIMediumSoftware Engineer
    Implement and Debug Backprop in NumPy

    This question evaluates understanding of backpropagation and the chain rule, proficiency in vectorized NumPy implementation, numerical stability of softmax/cross-entropy, and competency in gradient checking and debugging of model gradients.

    Machine LearningTechnical Screen
  • OpenAIHardMachine Learning Engineer
    Improve Training With Noisy Annotators

    This question evaluates a candidate's ability to handle label noise by estimating annotator reliability and applying data-cleaning, relabeling, or reweighting methods while measuring model performance and understanding classification metrics.

    Machine LearningOnsite
  • OpenAIHardMachine Learning Engineer
    Improve classifier with noisy multi-annotator labels

    This question evaluates a candidate's ability to analyze noisy multi-annotator labels, design label-aggregation and dataset-splitting strategies, and choose modeling and evaluation approaches for binary text classification.

    Machine LearningTechnical Screen
  • OpenAIHardMachine Learning Engineer
    Repair a Broken Tiny Language Model, Then Make Decoding Incremental

    Find four planted bugs in a compact PyTorch decoder-only language model (some produce NaNs, some silently ruin learning), then add key/value caching so generation processes one new token per step.

    Machine LearningOnsitepytorchtransformersdebugging
  • OpenAIHardMachine Learning Engineer
    Train a classifier and analyze dataset

    This question evaluates proficiency in end-to-end supervised machine learning workflows—covering data validation, exploratory data analysis, preprocessing, model training and selection, evaluation metrics and calibration, fairness assessments, and reproducibility—and tests competencies in applied machine learning engineering, statistical reasoning, and model governance within the Machine Learning domain. It is commonly asked in technical interviews because it verifies practical implementation skills and judgment for deploying reliable classifiers, aligning metrics to business goals and diagnosing performance and fairness across slices, with emphasis on practical application informed by conceptual understanding.

    Machine LearningTechnical Screen
  • OpenAIMediumMachine Learning Engineer
    Vectorize One-Nearest-Neighbor and Express It as a Neural Forward Pass

    Tests vectorized distance computation in array libraries and the mathematical equivalence between nearest-prototype classification and an affine neural network layer.

    Machine LearningTechnical Screenvectorizationnearest-neighborslinear-algebra
  • OptiverMediumData Scientist
    Expected Wait for a Bus That Runs Late Half the Time

    This question evaluates a candidate's understanding of probabilistic modeling and expectation calculations for stochastic arrival processes, touching on renewal-theory concepts and length-biased sampling phenomena relevant to timing and queuing problems.

    Machine LearningTechnical Screen
  • OptiverEasyQuantitative Researcher
    Fermi Estimation with Confidence Intervals: How Many Houses Does One Year of US Netflix Spending Buy?

    This question evaluates a candidate's quantitative estimation and uncertainty-quantification skills, focusing on decomposition into estimable factors, clear articulation of assumptions, calibrated confidence intervals, and updating estimates when new aggregate data are provided.

    Machine LearningTechnical Screen
  • OptiverHardData Scientist
    How to rank statements by likelihood

    This problem tests your ability to translate statistical distributions and categorical data into ranked probabilistic likelihoods, accounting for uncertainty and sample size variance.

    Machine LearningOnline AssessmentProbabilityStatisticsBayesian Inference
  • OptiverHardData Scientist
    Market-Making Estimation Game: Optimal Confidence-Interval Strategy Over 5 Rounds

    This question evaluates probabilistic reasoning, decision-theoretic optimization of confidence intervals, and sequential risk–reward trade-offs by requiring interval estimation under a nonstandard scoring rule, relevant to a Data Scientist and categorized in Machine Learning/statistical decision theory.

    Machine LearningTechnical Screen
  • OptiverMediumQuantitative Trader
    Quant Trading Game: Expected-Value Betting and Market Making on Coins, Dice, and Cards

    This question evaluates probabilistic reasoning, expected-value calculation, risk management, and market-making intuition under time pressure within a simulated trading game.

    Machine LearningTechnical Screen
  • OptiverEasyQuantitative Researcher
    Trading Game: Expected-Value Betting, Kelly Sizing, and Arbitrage Under Time Pressure

    This question evaluates quantitative probability reasoning, expected-value computation, risk-sizing (including Kelly-style sizing), arbitrage recognition, and market-making intuition within a live trading simulation.

    Machine LearningTechnical Screen
  • OracleMediumData Scientist
    Explain Medical AI Data and Evaluation

    This question tests the ability to design an end-to-end evaluation and data pipeline for a clinical conversational agent, emphasizing safety, bias mitigation, and rigorous validation in a high-stakes environment.

    Machine LearningTechnical ScreenLLMRAGHealthcare AI