AI & ML Atlas
Deep LearningarchitectureAnimated walkthrough
Encoder-Decoder Architecture
One network reads the input into a representation; another writes the output.
The idea
The encoder turns the input into a rich internal representation; the decoder generates the output one step at a time, conditioned on that representation (and, with attention, able to look back at every encoder state). It suits tasks where the input and output differ in length or form.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Encode the whole input into hidden states.
- 2Start the decoder with a start token.
- 3At each step the decoder uses its own history and the encoder states.
- 4Emit a token and feed it back until an end token.
1/4
Step by step
- 1Encode the whole input into hidden states.
- 2Start the decoder with a start token.
- 3At each step the decoder uses its own history and the encoder states.
- 4Emit a token and feed it back until an end token.
Where it is used
Translation, summarisation, speech-to-text, image captioning.
Watch out for
Errors accumulate when generating step by step.