LandmarkICLR 2015Peer reviewedIntermediate

Neural Machine Translation by Jointly Learning to Align and Translate

Introduced attention: instead of squeezing a sentence into one vector, the model learns where to look in the source for each word it writes.

Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio · Jacobs University Bremen, Université de Montréal

TL;DR

Keep one vector per source word, and for every output word compute a weighted mix of them, with the weights learned by a small alignment network. Long sentences stopped falling apart, and the learned alignments made sense to humans.

01 · Problem

Encoder-decoder models compressed the whole source sentence into one fixed-length vector, a bottleneck that made quality drop fast on long sentences.

02 · Method

A bidirectional RNN encoder gives one annotation per source word. For each target word, an alignment model scores every annotation, and a softmax turns the scores into attention weights.

03 · Key result

On WMT 2014 English to French, BLEU rose from 17.8 to 26.8 against a same-size encoder-decoder, and 28.5 with longer training, with no clear drop on sentences of 50+ words.

Why it matters

This is where attention comes from. Three years later the Transformer kept the attention and dropped the recurrent network around it.

Deep dive coming

This is a lite card. The full version adds the core idea in technical detail, limitations and open questions, what it builds on and led to, and key terms.