179 questions
No questions match those filters.
A network trained with 0.5 dropout validates perfectly...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe obvious answer — “you forgot to disable dropout at inference” — is true in the trivial framework sense but misses what’s actually happening numerically when you export raw weights into an engine with no framework scaffolding to bail you out. During training with a 0.5 dropout rate, roughly half the neurons in the layer are zeroed out on any given forward pass, and the downstream weights adapt to that halved signal — they were never trained against the full, undropped magnitude of the previous layer’s output.
At inference, when every neuron fires, the expected sum flowing into the next layer is roughly double what the network’s weights were calibrated for. That mismatch is exactly what pushes activations into saturation: the network is seeing an input distribution shift it was never trained to handle, purely as a side effect of disabling dropout without correcting for it.
Modern frameworks avoid this by using Inverted Dropout: instead of scaling down at inference, they scale up by a factor of 1/(1-p) during the training forward pass itself, so the raw weights that come out of training are already calibrated for full-activation inference with zero additional steps needed. That’s invisible if you only ever deploy through the same framework you trained in.
The moment you export raw weights into a hand-rolled C++ engine, that invisible scaling comes along only if you know to check for it. If the training code didn’t use inverted dropout, you have to manually multiply the exported weights by the keep probability (0.5 here) before they leave the framework, to bring the inference-time magnitude back down to what the network expects. Either way, the fix is a scaling correction applied once at export time — not a runtime flag you forgot to flip.