podcasts / The attention family / episode / question
Question

What does the causal attention mask look like in the attention weights matrix?

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

In Vizuara's Lecture 7 the causal mask turns the square attention weights matrix into a lower-triangular one: every entry above the diagonal is 0. Because a context vector is an attention-weighted sum of value vectors, a zero weight means the matching future value vector contributes nothing, without the value vectors themselves being touched. Each row still sums to 1, so the first row becomes 1, 0, 0 and so on, the second might be 0.48 and 0.52, and the third 0.33, 0.37 and 0.3.

▸In their words

“So here this is a very smart mathematical trick. So we are not touching the value vectors.” Sreedath Panat · at 14:21 — 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?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?Q5How is dropout applied to attention weights, and why scale by 1/(1-p)?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 →