papers / bahdanau2014
Next task →
Research Papers/Sequence models and attention/Neural Machine Translation by Jointly Learning to Align and Translate
Sequence models and attention · #3 · seminal

Neural Machine Translation by Jointly Learning to Align and Translate

Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio · 2014 · ICLR (2015)
reproduction difficulty: mediumNLPSequence ModelsAttention

1. Research problem

Encoder-decoder translation compresses the entire source sentence into one vector, so performance degrades on long sentences.

2. Motivation

The authors wanted the decoder to consult relevant parts of the source directly, jointly learning alignment and translation without explicit alignment labels.

3. Previous approaches

Seq2seq used a single fixed representation; statistical translation used separate alignment models trained independently of translation.

4. Core contribution

Introduced soft attention over all encoder hidden states, letting the decoder compute a context vector as a learned weighted sum at each output step.

5. Mathematical formulation

Alignment scores a_ij = f(s_{i-1}, h_j) are softmax-normalized over source positions; context c_i = sum_j a_ij*h_j and the decoder state depends on c_i.

6. Methodology

Bidirectional RNN encoder plus attention-based decoder trained end to end by backpropagation; attention weights inspected as an implicit alignment.

7. Architecture

Bidirectional GRU-style encoder, attention layer, and recurrent decoder.

8. Experimental setup

English-to-French translation compared against the fixed-vector seq2seq baseline, with analysis by sentence length.

9. Datasets

WMT 2014 English-French parallel corpus.

10. Results

Improved translation quality, especially on long sentences, and produced plausible soft alignments without supervision.

11. Limitations

Attention still requires sequential RNN computation, and soft attention over all positions is costly for very long sequences.

12. Critical analysis

The paper that made attention a central mechanism; the Transformer later removed the recurrent backbone but kept this core idea.

13. Implementation tasks

  • 1.Implement additive attention over encoder states in a small seq2seq model.
  • 2.Visualize the attention matrix for sample translations and compare with word alignment intuition.
  • 3.Measure BLEU as a function of source sentence length with and without attention.

14. Follow-up work

  • 1.Effective Approaches to Attention-based Neural Machine Translation (Luong et al., 2015)
  • 2.Attention Is All You Need (Vaswani et al., 2017)

15. Open research questions

  • 1.Do learned attention weights reliably explain model decisions?
  • 2.How should attention scale to very long sequences without quadratic cost?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.