# Attention for translation (2014)

> The paper that introduced attention, letting a translator look back at the source sentence as it writes.

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

## Key facts

- Title: Neural Machine Translation by Jointly Learning to Align and Translate
- Authors: Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio
- Venue: ICLR 2015
- Category: Text
- Paper: https://www.alphaxiv.org/abs/1409.0473

## Why it matters

Attention was proposed as a fix for long sentences in translation, and it became the central idea of modern deep learning. The learned weights also gave readable word alignments, one of the first windows into what a neural network was doing. Three years later the Transformer kept the attention and dropped the recurrent network.

## The idea

Encoder–decoder translators squeezed the whole source sentence into one fixed vector. Here the decoder computes, for every word it outputs, a weighted average over all encoder states, with weights learned from the data, so it can focus on the source words that matter right now.

## The result

On WMT'14 English–French, quality no longer dropped on long sentences, and on sentences without unknown words it matched the phrase-based system Moses.

## 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.

## Builds on

- [Seq2seq (2014)](https://mralbu.github.io/ai-datasets/p/seq2seq.md)

## Led to

- [Transformer (2017)](https://mralbu.github.io/ai-datasets/p/transformer.md)

## Part of

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