Paper notes

Seq2Seq: Encoder-decoder learning for variable-length sequences

Seq2Seq uses one deep LSTM to encode a variable-length input and another to generate output. Reversing source sentences improves optimization, reaching 34.8 BLEU on WMT14 English-French.

Published Updated 1 min read

On this page
  1. How it works
  2. What the evidence shows
  3. A reproducible check
  4. Limitations and common misreadings
  5. The key takeaway
  6. Further reading
  7. FAQ

Seq2Seq established one neural framework for inputs and outputs of different lengths. The encoder summarizes the source in a fixed vector and the decoder emits tokens conditionally.

How it works

Deep LSTMs maximize target-sequence likelihood and decode with beam search. Reversing the English source shortens early source-target dependencies without reversing the target.

What the evidence shows

The paper reports 34.8 BLEU on WMT14 English-French and meaningful sentence representations. The fixed vector becomes a long-sentence bottleneck, later addressed by attention over encoder states.

A reproducible check

This snippet checks a public formula or configuration; it does not reproduce full training.

source = "ABC"
target = "WXYZ"
print("reversed source =", source[::-1])
print("target unchanged =", target)
print("reported BLEU =", 34.8)
reversed source = CBA
target unchanged = WXYZ
reported BLEU = 34.8

The arithmetic is reproducible, but model quality still depends on the full experiments in the paper.

Limitations and common misreadings

The score depends on data, vocabulary and beam settings. Source reversal is an optimization trick rather than a universal requirement.

The key takeaway

Seq2Seq established encoder-decoder learning, and its information bottleneck directly motivated attention.

Further reading

FAQ

What are its two components?
An encoder reads the source into a representation and a decoder generates the target.
Why reverse the source?
It shortens early corresponding-word dependencies and improves optimization in the experiments.
What is its main bottleneck?
The fixed vector must retain the entire input, especially difficult for long sentences.