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).
“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 →