Skip to content
Road to Intelligence

Concept · Chapter 6: Language Before Transformers

Neural Machine Translation

Should knowUnderstand10 minDifficulty

Neural machine translation trains an encoder and decoder to map a source-language sequence to a target-language sequence.

The problem

Languages differ in word order and length, so translation requires a flexible mapping between two sequences.

The solution

Learn the mapping end to end with a sequence encoder, an autoregressive decoder, and eventually attention over source positions.

The consequence

Translation became a proving ground for seq2seq, attention and then the Transformer.

Why translation forced better sequence models

Translation cannot be solved by assigning one class label to a sentence. "The blue house" and "la maison bleue" differ in both language and word order. A decoder has to generate a variable-length answer and decide which source detail matters for each output word.

Early recurrent encoder-decoders showed the pattern. Attention made it stronger by letting the decoder build a fresh context from the source states at each step. The original 2017 Transformer kept the encoder-decoder translation task but replaced recurrence with attention-based blocks.

This history matters even if you never build a translator: the same source-to-output pattern later appears in summarization and many other conditional generation tasks.

What to remember

  • The target sentence can change word order and length.
  • The decoder predicts each target unit conditioned on previous target units and the encoded source.

Key papers

Essential

Sequence to Sequence Learning with Neural Networks

Ilya Sutskever, Oriol Vinyals, Quoc V. Le · 2014 · NeurIPS 2014

Established the encoder–decoder pattern: read an input sequence into a vector, then generate an output sequence from it. Its central weakness motivated attention.

How to read it: Notice the trick of reversing the source sentence — a hint that long-range dependencies were the real problem.

~45 min readarXiv:1409.3215✓ verified 2026-09-26
Essential

Neural Machine Translation by Jointly Learning to Align and Translate

Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio · 2014 · ICLR 2015

Introduced attention in neural networks for language: instead of squeezing a sentence into one vector, the decoder looks back at every input word and decides which ones matter right now.

How to read it: Figure 3's alignment heat-maps are the best picture of 'attention' ever drawn — look at them first.

~1 h readarXiv:1409.0473✓ verified 2026-09-26