LESSON 7.C1 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
From RNN to attention
Watch six trained networks translate one sentence, from a plain RNN to attention.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 7.C1 · TRANSLATION BAYGRU · FIXED VECTOR · 5 WORDS
01
Stage 1 of 5 · Read English
Explain it simply
At the top you see the 5 English words. Under each word, the encoder writes its state, a row of 8 numbers. A bar up is a positive number, and a bar down is negative. The same GRU cell with the same weights does every step, so the last state has seen every word.
5 English words: "the black cat eats bread". Each has a GRU encoder state of 8 numbers under it, linked left to right.
English words, encoder states h, context cweights, gates (0 to 1)decoder states s, French words, attention weightswrong word
Toy: 6 trained networks, 8 numbers per state
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each state mixes the last state with the next word.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.