Sequence-to-sequence with attention

Recurrent & sequence · neural · 2014 · text · speech

What it is

An encoder RNN compresses the input, a decoder generates the output, and attention lets the decoder look back at every encoder state.

When to use it

Machine translation and any input-length-mismatch task; the direct ancestor of the transformer.

Caveats

The recurrent encoder and decoder still process tokens sequentially, so training is slow compared with transformers. Teacher forcing creates a mismatch between training and generation (exposure bias).

Key ideas

  • Attention exists precisely because a single fixed vector cannot hold a long sentence
  • This is the paper the transformer then stripped to attention alone

Related architectures

Original paper

Neural Machine Translation by Jointly Learning to Align and Translate (2014, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted