podcasts / The attention family / episode / question
Question

What does an attention-weighted sum of value vectors mean in the transformer formula?

Answered from Q, K, V intuition - self attention with trainable weights | The attention family series - Lecture 6 · The attention family · 2026-09-18

Vizuara's Sreedath Panat unpacks the Attention Is All You Need formula, softmax(QK transpose over the square root of d) times V, as a weighted sum: each token's context vector is the sum over j of attention weight w_j times value vector v_j. For the word ball in a five-token sentence, softmax weights of 0.17, 0.16, 0.25, 0.10 and 0.31 multiply value vectors v1 to v5, and their sum is the context vector z5. Changing the query to token 3 gives a new set of weights and z3.

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

▸More from this episode

Q1What do query, key and value mean in self-attention, according to Vizuara?Q2Why can't self-attention use raw input embeddings for attention scores?Q3How does a key weight matrix change attention scores in Vizuara's dog and ball example?Q5Can the query, key and value space have a different dimension from the input embeddings?Q6How are the W_Q, W_K and W_V weight matrices learned in an LLM?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →