Where inside the attention sub-layer is dropout typically applied during training, and what does dropping there teach the model?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Where inside the attention sub-layer is dropout typically applied during training, and what does dropping there teach the model? Mention the dominant placement and any secondary placements.
Attention dropout is applied to the post-softmax weight matrix to discourage single-key collapse; a second slot lives after the output projection as residual dropout.
Imagine a student doing a group project who only ever asks one teammate for help. When the test comes, that teammate is sick and the student panics. A teacher who randomly tells the student 'pretend that teammate is unavailable today, work with someone else' is forcing the student to learn to ask many teammates. That is what attention dropout does. It randomly silences some of the attention links during training so the model has to spread its bets and not get addicted to one particular key. At test time everyone is available, but the student has learned not to depend on any single source.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Place attention dropout on the post-softmax weight matrix, explain the spread the mass semantics, note the secondary residual slot after W_O, and close with the modern pretraining trend toward 0.0.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Applying dropout on Q, K, or V before the dot product instead of on the post-softmax weights. The standard attention-specific slot is on A, not on the inputs.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.