podcasts / The attention family / episode / question
Question

What is the weight split approach to multi-head attention that Vizuara teaches?

Answered from Introduction to Multi-Head Attention (MHA) | The attention family series - Lecture 8 · The attention family · 2026-10-03

In Vizuara's Lecture 8, weight split means joining the separate per-head query weight matrices, for example two 6 by 3 matrices, into one 6 by 6 query matrix, and doing the same for keys and values. One matrix multiplication then produces all queries at once, and the result is split into heads afterwards. Sreedath Panat prints both versions in Colab to show the first three columns of the big query matrix exactly match head one's queries and the last three match head two's, so the output is identical while the GPU does one large multiplication instead of many.

▸In their words

“So, what it shows is it does not matter if you split into two different matrix multiplication” Sreedath Panat · at 54:06 — open in the transcript →

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

▸More from this episode

Q1Why do transformers use multiple attention heads, according to Vizuara?Q2How are the outputs of multiple attention heads combined into one context vector per token?Q3How many dimensions does each attention head get in GPT-2 and GPT-3?Q4Why is implementing multi-head attention with a for loop slow?Q6Why do you transpose dimensions 1 and 2 when computing batched multi-head attention?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →