podcasts / The attention family / episode / question
Question

What is the matrix formula for simplified self-attention, and how does it relate to Attention Is All You Need?

Answered from Simplified self attention | The attention family series - Lecture 5 · The attention family · 2026-09-16

Sreedath Panat writes simplified self-attention as Z equals softmax of X times X transpose, divided by the square root of d, multiplied by X, where X holds one embedding per row and d is the embedding dimension. The Attention Is All You Need formula has the same shape, softmax of Q times K transpose over the square root of d, multiplied by V. The simplified version is what that formula becomes when query, key and value are all set equal to the input X.

▸In their words

“In today's lecture we are having query equal to key equal to value equal to x” Sreedath Panat · at 36:06 — open in the transcript →

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

▸More from this episode

Q1How does simplified self-attention compute context vectors without trainable weights, according to Vizuara?Q3What is the difference between self-attention and Bahdanau attention?Q4Why does a word need a context vector instead of its embedding, according to Vizuara?Q5Why doesn't a token always get its highest attention score against itself?Q6Why does self-attention use softmax instead of dividing attention scores by their sum?Q7Are self-attention scores and attention weights symmetric?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →