Explain How Dropout Behaves Differently at Training and Inference

Last updated: November 29, 2026

Quick Overview

Explain what dropout does during training, why activations are scaled, and what happens at inference time. Then describe a bug that arises if a model is accidentally served in training mode.

Amazon
Machine Learning
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
Phone Screen
Machine Learning
Easy

0

0

0 solved


Explain what dropout does during training, why activations are scaled, and what happens at inference time. Then describe a bug that arises if a model is accidentally served in training mode.

This is a short fundamentals question that appears in MLE phone screens, often tied to a real failure such as a recommendation model giving different scores for the same request. The interviewer checks the expectation argument for scaling and practical debugging sense.

What the Interviewer Expects
  • Describe random masking with keep probability
  • Explain inverted dropout scaling
  • State that dropout is disabled at inference
  • Diagnose nondeterministic serving outputs
  • Mention where dropout is and is not used today
Key Topics to Cover
Dropout
Regularization
Inverted dropout
Train versus eval mode
Model serving
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How does dropout interact with batch normalization?
  • What is Monte Carlo dropout useful for?
  • Why do large LLM pretraining runs often use little or no dropout?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Assume a feedforward ranking model with dropout rate p=0.2p=0.2 (drop probability) on hidden layers....

Approach

During training, each unit is zeroed with probability pp, independently per example, which prevents co-adaptation of units and acts like averaging many thinned networks. Inverted dropout divides kept...


Submit Your Answer
Markdown supported