practice a little every day, paws crossed ♡
Machine Learning Engineer 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 1–30 of 127 results
- AppleMediumMachine Learning EngineerCompare DCN v1 vs v2 and A/B test
This question tests your understanding of architectural improvements in Deep & Cross Networks (DCN) and your ability to design a rigorous A/B testing strategy for model deployment in a high-stakes production environment.
Machine LearningTechnical ScreenDeep LearningCTR PredictionRecommendation Systems - AppleMediumMachine Learning EngineerCompare audio preprocessing and training
This question evaluates understanding of audio data preprocessing and end-to-end model training, assessing competencies in feature representation choices, normalization, segmentation, augmentation, and pipeline orchestration within machine learning for audio.
Machine LearningTechnical Screen - AppleMediumMachine Learning EngineerExplain Vision Encoders and LLM Bottlenecks
This question evaluates understanding of vision encoders and their role in computer vision and multimodal models, familiarity with typical training approaches for encoders, and the ability to identify inference bottlenecks in large language models as well as knowledge of memory and latency optimization considerations.
Machine LearningTechnical Screen - AppleHardMachine Learning EngineerExplain annotation agreement and LLM vs human judges
This question tests a machine learning engineer's understanding of annotation reliability metrics and the trade-offs between human and LLM-based evaluation. It assesses conceptual and applied knowledge of inter-annotator agreement, metric selection across label types, and the validity of automated judges in model evaluation workflows.
Machine LearningTechnical Screen - AppleEasyMachine Learning EngineerImplement Masked Multi-Head Self-Attention
This question tests the ability to implement the core mechanics of a Transformer's multi-head attention mechanism, specifically focusing on linear projections, attention weight scaling, and causal masking.
Machine LearningTechnical ScreenTransformersDeep LearningAttention - Applied IntuitionMediumMachine Learning EngineerImplement and explain positional encoding
This question evaluates knowledge of positional encoding mechanisms for Transformer language models, covering embedding mathematics, tensor shapes and broadcasting, PyTorch implementation details, expected training and inference symptoms when positional information is omitted, and methods for empirical verification and ablation.
Machine LearningTechnical Screen - AutodeskMediumMachine Learning EngineerExplain 3D geometry data
Explain 3D geometry data 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 - ByteDanceMediumMachine Learning EngineerCompute Sentence Similarity
This question evaluates understanding of sentence-level and token-level embedding techniques, text preprocessing, similarity metrics, edge-case handling for empty or unknown tokens, and trade-offs between pretrained sentence encoders and averaged word embeddings.
Machine LearningTechnical Screen - ByteDanceMediumMachine Learning EngineerExplain LLM generational improvements, multimodal LLMs, and normalization in LLMs
Three conceptual LLM questions: the main improvements across generations of a model family as described in technical reports, how multimodal image-and-text models are built and trained, and why modern LLMs use layer normalization or RMSNorm with pre-norm placement instead of batch normalization.
Machine LearningTechnical Screen - ByteDanceMediumMachine Learning EngineerExplain XGBoost's Overfitting Resistance
This question evaluates understanding of ensemble learning and model generalization, focusing on why gradient-boosted tree ensembles are often less prone to overfitting than single decision trees.
Machine LearningTechnical Screen - ByteDanceHardMachine Learning EngineerImplement a Transformer Decoder from Scratch Without Starter Code
Implement a transformer decoder from scratch with no starter code in about 30 minutes, including embeddings, masked multi-head self-attention, feed-forward layers, residual connections and layer normalization. Tests tensor-shape fluency, causal masking and hands-on deep learning coding for a machine learning engineer interview.
Machine LearningTechnical Screen - CadenceMediumMachine Learning EngineerExplain Transformer Positional Encoding
This question tests your conceptual and technical understanding of why Transformers require positional encodings and the mathematical mechanics of different encoding strategies.
Machine LearningTechnical ScreenTransformerAttentionNLP - CitadelHardMachine Learning EngineerMake a hard MoE router differentiable
Make a hard MoE router differentiable 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 - DatadogHardMachine Learning EngineerImplement Focal Loss for Class-Imbalanced Classification
Tests the ability to implement binary focal loss with raw logits from first principles, emphasizing numerical stability, custom weighting, and tensor reduction strategies.
Machine LearningTechnical Screenmachine-learningdeep-learningpytorch - DatadogHardMachine Learning EngineerImplement Grouped-Query Attention (GQA)
Implement the Grouped-Query Attention (GQA) mechanism commonly used in modern LLMs to balance serving memory bandwidth with generation quality. You will handle tensor reshaping/expansion across query head groups, scaled dot-product attention, and causal masking.
Machine LearningTechnical Screendeep-learningtransformerspytorch - DisneyMediumMachine Learning EngineerBuild Naive Bayes spam classifier with F1
This question evaluates understanding of probabilistic text classification with Naive Bayes, text preprocessing and feature extraction, and use of the F1 score for performance measurement in a binary spam detection task.
Machine LearningTechnical Screen - ExaHardMachine Learning EngineerDebug a PyTorch Contrastive Loss
Repair a PyTorch contrastive loss whose matrix multiplication contracts incompatible dimensions instead of producing pairwise scores. Validate aligned rank-two tensors and temperature, create the correct batch-by-batch logits, preserve gradients, and handle low-precision numerical stability.
Machine LearningTechnical Screen - FigmaMediumMachine Learning EngineerClarify a BERT Keyphrase Span-Extraction Task
Implement and clarify the post-processing decoder for a BERT-based span-extraction model that maps token-level start and end logits back to non-overlapping character-level keyphrases.
Machine LearningTechnical Screennlpbertspan-extraction - GoogleHardMachine Learning EngineerCompare Language-Model Post-Training Methods
This question tests your conceptual depth in LLM alignment by asking you to differentiate between supervised fine-tuning (SFT), reinforcement learning from human feedback (RLHF), direct preference optimization (DPO), and group-relative optimization (e.g., GRPO) based on their mathematical objectives and operational characteristics.
Machine LearningTechnical ScreenLLMAlignmentRLHF - GoogleHardMachine Learning EngineerDetect and Prevent Reward Hacking
Assess the candidate's understanding of reward hacking (specification gaming) in reinforcement learning from human feedback (RLHF), focusing on diagnosing exploitation patterns, designing detection metrics, applying conservative policy updates, and implementing recovery safeguards.
Machine LearningTechnical ScreenRLHFReward ModelingLLM Alignment - GoogleMediumMachine Learning EngineerExplain GRPO-style training for diffusion models
This question tests your conceptual understanding of applying Group Relative Policy Optimization (GRPO) to diffusion models, focusing on how reinforcement learning can be used to steer image generation toward specific objective functions without explicit gradient feedback from the decoder.
Machine LearningTechnical ScreenDiffusion ModelsReinforcement LearningGRPO - GoogleHardMachine Learning EngineerExplain Importance Sampling in LLM Training
Tests understanding of importance sampling in modern LLM fine-tuning, focusing on sequence-level likelihood ratios, exponential variance growth, support conditions, and practical mitigations like clipping and diagnostics.
Machine LearningTechnical Screenreinforcement-learningllm-trainingimportance-sampling - GoogleHardMachine Learning EngineerExplain KL Divergence in Language Models
Review KL divergence from its probability definition through directionality, support mismatch, sample estimates, and LLM regularization.
Machine LearningTechnical Screen - GoogleMediumMachine Learning EngineerExplain LLM lifecycle and trade-offs
This question evaluates a candidate's understanding of the end-to-end lifecycle of large language models, covering training data collection and filtering, pretraining objectives, transformer architecture, post-training methods like supervised fine-tuning and preference optimization, and common model or training variants.
Machine LearningTechnical Screen - GoogleHardMachine Learning EngineerExplain VAEs, ELBO, KL, and Reparameterization
Derive and explain the theoretical foundations of Variational Autoencoders (VAEs), linking the Evidence Lower Bound (ELBO) to network architecture, gradient estimation via the reparameterization trick, and posterior collapse.
Machine LearningTechnical ScreenVariational AutoencodersGenerative ModelsDeep Learning - GoogleMediumMachine Learning EngineerExplain modeling challenges and fixes
This question evaluates end-to-end ML ownership and operational troubleshooting skills, including detection of data and modeling issues, trade-off analysis, and evidence-based impact measurement within the Machine Learning/MLOps domain.
Machine LearningTechnical Screen - GoogleMediumMachine Learning EngineerExplain ranking cold-start strategies
This question tests your ability to design strategies for surfacing new items and serving new users in a large-scale recommendation system while maintaining relevance and diversity.
Machine LearningTechnical ScreenRecommender SystemsCold StartEmbeddings - GoogleHardMachine Learning EngineerExplain transformer architecture and variants
This question evaluates a candidate's mastery of transformer architecture and related competencies such as attention mechanisms, positional encodings, encoder/decoder variants, computational complexity and scaling, stability and initialization practices, and adaptation of sequence models to molecular representations.
Machine LearningTechnical Screen - GoogleHardMachine Learning EngineerInterpret Language-Model Perplexity
Learn the exact likelihood basis of perplexity, correct evaluation details, tokenizer caveats, and limits as an LLM quality metric.
Machine LearningTechnical Screen - GoogleHardMachine Learning EngineerList regularization methods and trade-offs
This question evaluates competency in machine learning regularization and model generalization, covering familiarity with methods such as L1/L2, dropout, early stopping, data augmentation, label smoothing, mixup, normalization, Bayesian priors, and ensembling.
Machine LearningTechnical Screen