podcasts / The attention family / episode / question
Question

How does an RNN encoder build the context vector in neural machine translation?

Answered from Before Attention: The bottleneck of a single context vector | The Attention Family, Lecture 2 · The attention family · 2026-09-04

In Vizuara's explanation, the encoder is one recurrent neural network applied over several time steps. At each step it takes the previous hidden state and the embedding of the current token and outputs a new hidden state: h0, which starts as a random vector, plus the first token gives h1, and so on. For the four-word sentence 'this is a car', the final hidden state h4 is the context vector carrying the sentence's meaning.

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

▸More from this episode

Q1Why is a single context vector a bottleneck in seq2seq, according to Vizuara?Q3What does the decoder rely on in a pre-attention seq2seq translation model?Q4Why do RNN seq2seq models struggle with long-range dependency, according to Vizuara?Q5At what sentence length does seq2seq translation quality drop without attention?Q6How does attention fix the context vector bottleneck in machine translation?Q7When were Bahdanau, dot-product and scaled dot-product attention introduced?
Transcribe your links. Paste a YouTube, Google Drive or podcast link and WhipScribe gives you the transcript. Transcribe a link →