Additive attention is a mechanism that uses a small network to decide, each time a translated word is produced, which words of the input sentence to look at and how much. Bahdanau, Cho, and Bengio proposed it in 2014 in the paper "Neural Machine Translation by Jointly Learning to Align and Translate" (ICLR 2015). It is the starting point of today's attention mechanisms.
Earlier encoder-decoder translation models (Sequence to Sequence) packed the entire input sentence into a single fixed-length vector and generated the translation from it. The paper argued that this single vector becomes a bottleneck, so translation quality drops as sentences get longer. Additive attention keeps the input sentence as a sequence of per-word vectors and pulls out the parts it needs each time it emits a word.
The context vector used to emit the target word is computed as follows (Eqs. (5) and (6) in the paper).
The score is computed by an MLP with one hidden layer (Appendix A.1.2 of the paper).
- : the vector of the -th word of the input sentence (the encoder output). is the length of the input sentence.
- : the previous decoder state. It represents "what is about to be translated."
- : learned weights. Because and are added before passing through tanh, the mechanism is called "additive" attention.
- : the weight on the -th input word when emitting the -th target word. It sums to 1 over .
This resembles a human translator who glances back at the source text after writing each word and focuses on the area around the part currently being translated. Where to look is decided while translating.
The left side of the figure at the top of the article shows the computation flow, and the right side shows how the score is computed. On the right, it is placed next to multiplicative attention, proposed later, which computes the score with a dot product alone.

