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
November 29, 20260
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
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- 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 PrepSample Answer
Clarify
Assume a feedforward ranking model with dropout rate (drop probability) on hidden layers....
Approach
During training, each unit is zeroed with probability , independently per example, which prevents co-adaptation of units and acts like averaging many thinned networks. Inverted dropout divides kept...