podcasts / The attention family / episode / question
Question

How is dropout applied to attention weights, and why scale by 1/(1-p)?

Answered from Causal attention (masked self attention) | The attention family series - Lecture 7 · The attention family · 2026-09-24

In Lecture 7, Sreedath Panat applies dropout to the causal attention weights during training only, so the weights cannot simply memorise the training text. Each element is dropped with probability p, and the survivors are multiplied by 1/(1-p) so that the average output magnitude stays the same. With p of 0.5 surviving weights double, for example 0.52 becomes 1.04, and with p of one third they are multiplied by 3/2.

▸In their words

“The dropout is only done during training during inference you don't do dropout.” Sreedath Panat · at 34:37 — open in the transcript →

Source: our own transcription of the episode. The full conversation is on The attention family (2026-09-24). Read the whole episode summary →

▸More from this episode

Q1Why does causal attention mask future tokens, according to Vizuara?Q2What does the causal attention mask look like in the attention weights matrix?Q3Why is zeroing attention weights after softmax the wrong way to do causal masking?Q4How does masking attention scores with minus infinity before softmax work?Q6What are the full steps of causal self-attention in Vizuara's attention family series?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →