# Seq2seq (2014)

> One network reads a sentence, another writes its translation, with no hand-built rules in between.

Page: https://mralbu.github.io/ai-datasets/p/seq2seq

## Key facts

- Title: Sequence to Sequence Learning with Neural Networks
- Authors: Ilya Sutskever, Oriol Vinyals, Quoc V. Le
- Venue: NeurIPS 2014
- Category: Text
- Paper: https://www.alphaxiv.org/abs/1409.3215

## Why it matters

Machine translation had been a pipeline of aligned phrases, reordering rules and language models. Seq2seq showed that a general network trained end to end could compete, and its encoder–decoder shape became the template for translation, summarization and speech recognition. Its single fixed-length vector was also the bottleneck that attention was invented to remove.

## The idea

A deep LSTM reads the source sentence word by word and compresses it into a single fixed-size vector; a second LSTM generates the translation from that vector, one word at a time. Feeding the source sentence in reverse order put the first words of each sentence close together and made training much easier.

## The result

On WMT'14 English–French an ensemble of five LSTMs reached 34.8 BLEU, above a phrase-based system's 33.3, and 36.5 when used to rescore that system's candidates, close to the best published 37.0.

## The data

- [WMT14 English–German (2014)](https://mralbu.github.io/ai-datasets/d/wmt14.md): 4.5M English–German sentence pairs: the benchmark in the Transformer paper.

## Led to

- [Attention for translation (2014)](https://mralbu.github.io/ai-datasets/p/bahdanau-attention.md)

## Part of

- [Pretrain, then fine-tune](https://mralbu.github.io/ai-datasets/t/pretrain-then-finetune.md) (step 1 of 5)
