podcasts / The attention family / episode / question
Question

How does Bahdanau additive attention compute alignment scores, according to Vizuara?

Answered from Additive Attention (Bahdanau Attention) | The Attention Family, Lecture 3 · The attention family · 2026-09-08

The Vizuara instructor explains that each score comes from a tiny neural network that takes the previous decoder state s and one encoder hidden state h. It multiplies s by a weight matrix W1 and h by W2, adds the two projected vectors, applies tanh for non-linearity, then takes a dot product with a learned vector v to collapse the result into a single number: score = v · tanh(W1·s + W2·h).

▸In their words

“Vector v is actually a learned parameter; it is not something which we define.” Instructor · at 33:58 — open in the transcript →

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

▸More from this episode

Q2Why is Bahdanau attention called additive attention?Q3What problem did Bahdanau attention solve in RNN sequence-to-sequence translation?Q4What is the difference between attention scores and attention weights in Bahdanau attention?Q5How do you read an attention weights matrix in neural machine translation, according to Vizuara?Q6How does a Bahdanau attention decoder predict the next token, as Vizuara explains it?Q7How does additive attention differ from Luong dot-product and scaled dot-product attention?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →