# Attention

Date: 1 September 2014 · Era: IV · Deep learning · Category: theory · Significance: 5/5
People: Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio
Organisations: Université de Montréal, Jacobs University Bremen

Canonical: https://shapeofintelligence.com/timeline/2014-bahdanau-attention/ · Dataset and text CC BY 4.0

> Bahdanau, Cho and Bengio let a translation model look back at every source word and learn which to weigh; the mechanism at the heart of the transformer appears.

## What had to happen

12 events back to 1943, oldest first. Direct influences are marked *direct*.

- [1943 · A logical calculus of nervous activity](https://shapeofintelligence.com/md/timeline/1943-mcculloch-pitts-neuron/)
- [1949 · Cells that fire together wire together](https://shapeofintelligence.com/md/timeline/1949-hebb-organization-of-behavior/)
- [1958 · The perceptron learns](https://shapeofintelligence.com/md/timeline/1958-perceptron/)
- [1960 · ADALINE and the least-mean-squares rule](https://shapeofintelligence.com/md/timeline/1960-adaline-lms/)
- [1969 · Perceptrons](https://shapeofintelligence.com/md/timeline/1969-perceptrons-book/)
- [1970 · Reverse-mode automatic differentiation](https://shapeofintelligence.com/md/timeline/1970-linnainmaa-backprop/)
- [1974 · Werbos applies backpropagation to neural networks](https://shapeofintelligence.com/md/timeline/1974-werbos-backprop/)
- [1986 · Backpropagation](https://shapeofintelligence.com/md/timeline/1986-backpropagation/)
- [1990 · Finding structure in time](https://shapeofintelligence.com/md/timeline/1990-elman-network/)
- [1991 · The vanishing gradient problem](https://shapeofintelligence.com/md/timeline/1991-vanishing-gradient/)
- [1997 · Long short-term memory](https://shapeofintelligence.com/md/timeline/1997-lstm/) *direct*
- [2003 · A neural probabilistic language model](https://shapeofintelligence.com/md/timeline/2003-neural-language-model/) *direct*

The encoder–decoder models of 2014 compressed a whole source sentence into one vector and then generated the translation from it. That worked for short sentences and degraded for long ones, because a fixed vector cannot hold forty words. Dzmitry Bahdanau's fix, posted on 1 September 2014 with Kyunghyun Cho and Yoshua Bengio, was to let the decoder look back. At each output word the model computes a weight for every source word, takes a weighted average of their encodings, and uses that as its context. The weights are learned, and when you plot them, they draw the alignment between the two languages.

The paper called it soft alignment; the community called it attention, and the name stuck. It was the first mechanism that let a network choose what to look at, and it removed the bottleneck that had limited sequence models since Elman.

Three years later, Google researchers asked what happened if attention was the only mechanism, with no recurrence at all, and the transformer was the answer. Every large language model computes, at every layer, a version of the weighted average Bahdanau introduced here. The instrument on this site shows the weights a real model computes over a sentence you type.

## What it led to

57 events downstream, through 2026.

Built on it directly:

- [2016 · Google Translate goes neural](https://shapeofintelligence.com/md/timeline/2016-google-neural-translation/)
- [2017 · Attention is all you need](https://shapeofintelligence.com/md/timeline/2017-attention-is-all-you-need/)

And, through them, by era:

- V · Transformers: 12 events
- VI · Everyone: 29 events
- VII · Agents: 14 events

## Sources

- [Neural Machine Translation by Jointly Learning to Align and Translate (arXiv:1409.0473)](https://arxiv.org/abs/1409.0473) — paper
- [Neural Machine Translation by Jointly Learning to Align and Translate (ICLR, 2015)](https://iclr.cc/archive/www/doku.php%3Fid=iclr2015:accepted-main.html) — archive

---

The Shape of Intelligence by Jamie McKaye (https://jamiemckaye.com) · Markdown mirror of https://shapeofintelligence.com/timeline/2014-bahdanau-attention/

Before: [2014 · Superintelligence](https://shapeofintelligence.com/md/timeline/2014-superintelligence/) · After: [2014 · Sequence to sequence learning](https://shapeofintelligence.com/md/timeline/2014-seq2seq/)
