← Back to Deep Learning Mind Map
⚡Flashcard Drill➔
🧠 Deep LearningID: dropout

Dropout

🎯Core Definition
Dropout randomly zeroes neurons with probability pp during training to prevent co-adaptation. The standard implementation is Inverted Dropout: sample a Bernoulli mask m∼Bernoulli(1−p)m \sim \text{Bernoulli}(1-p) and scale y=11−pm⊙xy = \frac{1}{1-p} m \odot x so that E[y]=E[x]\mathbb{E}[y] = \mathbb{E}[x]; at inference no scaling is applied and the full network is used.
💡Use Cases
the main regularizer for fully-connected and attention layers (attention output and FFN in Transformers), typically p=0.1p = 0.1–0.30.3 for LLM pretraining/finetuning; interviews ask about the train/inference formula difference, why inference must disable it, and its order with BN.
⚡Key Problems Solved
it performs implicit ensembling over 2n2^n subnetworks, substantially reducing overfitting (original paper: test error reduced by roughly 4–5%). Inverted dropout moves the scaling into training so inference is cost-free — this is PyTorch's default (torch.nn.Dropout acts only in train mode). When combined with BN, apply dropout BEFORE normalization: BN's re-normalization would absorb dropout's scaling and noise, weakening the regularization.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Dropout.
Use Cases
In production engineering, what are the primary use cases for Dropout and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Write the inverted-dropout training formula y=11−pm⊙xy = \frac{1}{1-p} m \odot x (m∼Bernoulli(1−p)m \sim \text{Bernoulli}(1-p)) and explain why inference needs no scaling to preserve the expectation.
2
What is the mathematical relationship between naive dropout (scaling at test) and inverted dropout (scaling at train)? Why does every framework implement the inverted version?
3
Why does dropout regularize: its link to ensemble learning and co-adaptation — and which layers is it usually applied to?
4
What happens if dropout is not disabled at inference (model.eval())? What problems arise from train/inference inconsistency?
5
What order should be used when combining dropout with BatchNorm, and why is dropout usually applied before BN?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Dropout"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
← Previous CardNorm Methods ComparisonNext Card →Label Smoothing

🔗 More Deep Learning Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/DL/card/dropout